1. | Consider the following program in Pascal |
|||||||
Answer: Option B Explanation: (2.57 + 0.06) 10 = 26.3 → |
2. |
|
|||||||
Answer: Option A Explanation: Real constant must have a decimal point. |
3. |
|
|||||||
Answer: Option A Explanation: The operator + = means add and assign. |
4. |
|
|||||||
Answer: Option C Explanation: The range is from - 32768 to + 32767. |
5. | 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. |
6. |
|
|||||||
Answer: Option D Explanation: Integer constant should not have decimal point. |
7. |
|
|||||||
Answer: Option B Explanation: 0.562 is not an integer constant. |
8. | Read the following statements about files in Pascal
Which of the above are correct? |
|||||||
Answer: Option A Explanation: All statements are true. |