wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C++ 2nd Online Quiz

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

Use the _________ statement to specify a block of code to be executed if the condition is false.

a)

if

b)

ladder else if

c)

else

d)

else if

2.

Use __________ statement to specify a block of code to be executed, if a specified condition is true

a)

else if

b)

else

c)

ladder if

d)

if

3.

Use ____________ statement to specify a new condition to test, if the first condition is false

a)

else

b)

else if

c)

if

d)

ladder else if

4.

A _________ statement allows us to execute a statement or group of statements multiple times

a)

while loop

b)

do...while loop

c)

for loop

d)

loop

5.

in this type of loop, the condition is evaluated first and if it returns true then the statements inside execute.

a)

for loop

b)

do...while

c)

while loop

6.

this type of loop is a repetition control structure that allows you to efficiently write a loop that needs to execute a specific number of times.

a)

while loop

b)

for loop

c)

do...while loop

7.

this type of loop is similar to while loop

a)

for loop

b)

do...while loop

c)

nested loop

8.

how many types of loops we have in the C++ platform?

a)

4

b)

5

c)

3

9.

how many types of conditional statements we have in the C++ paltform?

a)

6

b)

5

c)

4

10.

what is the function of these symbol ++ in loop statements?

a)

condition

b)

initialization

c)

increment