Exercise :: Microprocessors - Section 1
- Microprocessors - Section 1
- Microprocessors - Section 2
- Microprocessors - Section 3
- Microprocessors - Section 4
- Microprocessors - Section 5
- Microprocessors - Section 6
- Microprocessors - Section 7
- Microprocessors - Section 8
- Microprocessors - Section 9
- Microprocessors - Section 10
- Microprocessors - Section 11
- Microprocessors - Section 12
46. | Which of the following is not an integer constant? |
|||||||
Answer: Option D Explanation: Integer constant should not have decimal point. |
47. | Let JCOKE = 98 and LPEPSI = 42 Consider the statement |
|||||||
Answer: Option A 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? |
|||||||
Answer: Option A Explanation: Real constant must have a decimal point. |
49. | Which of the following is not a valid integer constant in C (for 16 bit)? |
|||||||
Answer: Option C 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 |
|||||||
Answer: Option A Explanation: The operator + = means add and assign. |