Discussion :: Microprocessors
-
Let JCOKE = 98 and LPEPSI = 42 Consider the statement
The value of JCOKE after the execution of above statement will be
IF (JCOKE - 3 * LPEPSI) 5, 6, 7
5 JCOKE = JCOKE + 5
6 JCOKE = JCOKE + 8
7 JCOKE = JCOKE + 11
Answer : Option A
Explanation :
Since (J COKE - 3 x L PEPSI) is negative, statement 5 is executed and the result is 98 + 5 = 103.
Be The First To Comment