Discussion :: Microprocessors
-
Let JCOKE = 20 and LPEPSI =15. Consider the statement
The value of JCOKE after the execution of above statement will be
IF(2* JCOKE. LE. LPEPSI)
JCOKE = JCOKE + 5
JCOKE = JCOKE + 3
Answer : Option B
Explanation :
Since 2 x J COKE = 40 and (LPEPSI) is 15 control goes to statement J COKE = J COKE + 3 and result is 23.
Be The First To Comment