Solution:
Let me define the term function first, A function is a rule or mapping such that each value in the domain called preimage has unique image in range.
For example , S={(1,2),(3,5)(6,5)(4,3)} is a function but two Same values in the Range have different Pre-images.
The ordered pair (x,y) has x= Domain , and y= Range.
If, y=x +5, here x is an independent variable and y is a dependent variable. For different x values ,we get unique y value.
So, Yes the Statement is true that , A function is a rule that assigns each value of the independent variable to exactly one value of the dependent variable.