wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Chap 1: What is a program made of?

Total questions: 13

Worksheet time: 9mins

Name
Class
Date
1.


C++ program requires compiler, interpreter and linker in order to make the program run.

a)

True

b)

False

2.

Compiler and interpreter's goals are different.

a)

True

b)

False

3.


C++ is a compiled language.

a)

True

b)

False

4.

What pre-processor is for?

a)

To prepare the compiler to process the code which has been written

b)

To convert source program/code into machine language

c)

To convert directive lines in the source code file to take specific actions

d)

To perform preliminary operations on C++ files before they are passed to the compiler.

5.

Linker is necessary for a compiled language to...

a)

Connect the hardware with the instruction specified in the program/code

b)

Use the machine instruction to execute the command given

c)

Use the program written to execute the command in the program

d)

Change back the machine instruction into human readable language

6.

In every programming language, the following are elements one would have:

a)

Keywords

b)

Programmer-defined Identifiers

c)

Operators

d)

Punctuation

e)

Syntax

7.

Keywords are also known as reserve word.

a)

True

b)

False

8.

Identify which of the following are reserve words for C++?

a)

number

b)

int

c)

double

d)

symbol

e)

return

9.


Among the labelled items, identify which are C++ keywords

a)

A

b)

B

c)

D

d)

E

e)

F

10.

What is a programmer-defined identifiers?

a)

Can use reserve words

b)

Names made up by the programmer

c)

Can be variables used in the program

d)

Can be an address of a memory slot

11.

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)

a)

"

b)


,

c)

:

d)

;

e)

.

12.

Among the following, what is not C++ type of operators:

a)

Arithmetic operators

b)

Assignment operators

c)

Relational Operators

d)

Logical Operators

e)

None of the above

13.


Identify all the syntactically correct English sentences:

a)

Zhi Ren's cat is sleeping.

b)

Ben Yi beautifully play the piano.

c)

The gate tree loves Lingges.

d)

Even when she is busy, Asreena will fine the time to enjoy nature.

e)

After every semester Irsyad rewards himself by traveling to new places.