Microprocessors

Q1:
Let JCOKE = 3 and LPEPSI = 5. Consider the statement

IF (3 * JCOKE. EQ. LPESPSI)
JCOKE = JCOKE + 2
JCOKE = JCOKE + 5

What will be the final value of JCOKE after the above statement is executed?

A 8

B 1

C 15

D 10

ANS:A - 8

The logical IF statement means that IF (3 x J COKE) is equal to (L PEPSI), J COKE = 3 + 2 = 5 otherwise J COKE = 3+5 = 8 Since (3 x J COKE) is more than (L PEPSI), the result is 8.



img not found
img

For help Students Orientation
Mcqs Questions

One stop destination for examination, preparation, recruitment, and more. Specially designed online test to solve all your preparation worries. Go wherever you want to and practice whenever you want, using the online test platform.