Sunday, May 20, 2007

Question 2

Function f (x) has a parameter and a return value that are both real. Consider a procedure that consists of steps 1 through 5 shown below. After a sufficient number of cycles through this procedure, the value of y show in step 3 no longer changes. Which of the following relational expressions holds when this occurs?

step 1 x ← a
step 2 y ← f (x)
step 3 Display value of y.
step 4 x ← y
step 5 Return to step 2.

a) f (a) = y
b) f (y) = 0
c) f (y) = a
d) f (y) = Y


No comments: