# Electronics and Communication Engineering - Microprocessors

### Exercise :: Microprocessors - Section 1

46.

Which of the following is not an integer constant?

 A. 0 B. -8 C. 1074 D. -8.1

Explanation:

Integer constant should not have decimal point.

47.

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

 A. 103 B. 106 C. 109 D. none of the above

Explanation:

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

48.

Which of the following is not a valid real constant in C?

 A. 426 B. 321 C. -621.231 D. 201.231

Explanation:

Real constant must have a decimal point.

49.

Which of the following is not a valid integer constant in C (for 16 bit)?

 A. 321 B. -162 C. -65321 D. +1

Explanation:

The range is from - 32768 to + 32767.

50.

Assume that x = 5 and y = 2. Then in Java operation x + = y, the result is

 A. x = 7 B. x = 2 C. x = 3 D. x = 2