Professional Documents
Culture Documents
NAME:_____________________________________ID NO:_________________________
SECTION: ______________
COURSE CODE: MEng1052 Wednesday, Jan 16, 2019 TIME ALLOWED: 2:00 hrs.
BASIC INSTRUCTIONS:
Sum 20.
GOOD LUCK!!!
2. C++ has strict rules for naming identifiers. Which one of the following is not correct about that rule?
A. identifier can be as long as you like. B. you can use uppercase and lowercase letters, and the digits.
A. are typically one byte in size. B. in C++, it is represented as any value inside a single quote.
5. Which one of the ff. is used to translate the source code into some intermediate form?
D. None
9. Which one of the ff. variables can be referred/accessed anywhere in the code, within any function, as
long as it is declared first?
10. __________ is a low level programming language in which a mnemonic is used to represent
instructions.
A. assembly language. B. machine language. C high level programming language D. source code
# include<iostream>
int main()
return 0; }
The algorithm for programming with C++ is listed above in question 1. Arrange it in correct order!.
Write only letters.