Discussion :: Microprocessors
-
LET JCOKE = 11 and LPEPSI = 19. Consider the statement
The value of JCOKE after the execution of above statement will be
IF (JCOKE - LPEPSI) 5, 5, 7
5 JCOKE = JCOKE + 2
7 JCOKE = JCOKE + 5
Answer : Option A
Explanation :
(J COKE - L PEPSI) is 11 - 19 = - 8 Since (J COKE - L PEPSI) is negative statement 5 is executed and result is 11 + 2 = 13.
Be The First To Comment