Question 22
Consider the following public procedures function1 and function2 that are defined inside a class Function (not shown here). Assume that variables and are private variables of Function.
Procedure function1( ) a = 2 * (b/2) a = a * b return (a)End function1Procedure function2( ) a = 4 * (b/2) a = a * b return (b)End function2We execute function1 and function2 in parallel, that is, at each step we execute either one statement from function1 or one statement from function2. If and are initialized to 1 and 2 respectively, then which of the following are not possible values returned by function1? (It is a Multiple Select Question)(MSQ)
8
12
16
14