Home » Electronics and Communication Engineering » Microprocessors

Let JCOKE = 98 and LPEPSI = 42 Consider the statement IF (JCOKE - 3 * LPEPSI) 5, 6, 7 5 JCOKE = JCOKE + 5 6 JCOKE = JCOKE + 8 7 JCOKE = JCOKE + 11 The value of JCOKE after the execution of above statement will be

Correct Answer: 103

Explanation:

Since (J COKE - 3 x L PEPSI) is negative, statement 5 is executed and the result is 98 + 5 = 103.

← Previous Question Next Question→

Discussion & Comments

No comments yet. Be the first to comment!
Join Discussion