Font size
WorksheetsChap 1: What is a program made of?
Total questions: 13
Worksheet time: 9mins
C++ program requires compiler, interpreter and linker in order to make the program run.
True
False
Compiler and interpreter's goals are different.
True
False
C++ is a compiled language.
True
False
What pre-processor is for?
To prepare the compiler to process the code which has been written
To convert source program/code into machine language
To convert directive lines in the source code file to take specific actions
To perform preliminary operations on C++ files before they are passed to the compiler.
Linker is necessary for a compiled language to...
Connect the hardware with the instruction specified in the program/code
Use the machine instruction to execute the command given
Use the program written to execute the command in the program
Change back the machine instruction into human readable language
In every programming language, the following are elements one would have:
Keywords
Programmer-defined Identifiers
Operators
Punctuation
Syntax
Keywords are also known as reserve word.
True
False
Identify which of the following are reserve words for C++?
number
int
double
symbol
return
Among the labelled items, identify which are C++ keywords
A
B
D
E
F
What is a programmer-defined identifiers?
Can use reserve words
Names made up by the programmer
Can be variables used in the program
Can be an address of a memory slot
Identify which of the following are C++ punctuation symbol:
(punctuation in C++ are characters that mark the end of a statement, or those separate items in a list)
"
,
:
;
.
Among the following, what is not C++ type of operators:
Arithmetic operators
Assignment operators
Relational Operators
Logical Operators
None of the above
Identify all the syntactically correct English sentences:
Zhi Ren's cat is sleeping.
Ben Yi beautifully play the piano.
The gate tree loves Lingges.
Even when she is busy, Asreena will fine the time to enjoy nature.
After every semester Irsyad rewards himself by traveling to new places.
