wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

CSNP 04103 C++ Midterm preparation

Total questions: 11

Worksheet time: 6mins

Name
Class
Date
1.

The "cout" statement can't be broken across multiple lines

a)

True

b)

False

2.

Which of the following is not one of the three parts of a function declaration?.

a)

Name

b)

Return type

c)

Parameters

d)

Arguments

3.

What is the first know computing device?

a)

Eniac

b)

Abacus

c)

IBM Mainframe

d)

Enigma Machine

4.

Which variable identifier is valid?.

a)

3rdPlace

b)

Third Place

c)

thirdPlace!

d)

thirdPlace

5.

What statement ends the main program?.

a)

return 0;

b)

}

c)

;

d)

)

6.

An escape sequence is a two character sequence starting with / that represents a special character such as /t or /n?

a)

True

b)

False

7.

The four parts of a conditional while loop are: initialization, test condition, execution and update condition?.

a)

True

b)

False

8.

The three logical operators are

a)

AND, OR, NOT

b)

>, <, =

c)

!=, <=, >=

d)

++, --, ==

9.

Is a general good practice is that a function definition shouldn't have more than 30 lines?.

a)

True

b)

False

10.

Non-VOID functions that return a result do not require a return statement.

a)

False

b)

True

11.

What is the first known computer?.

a)

The Abacus

b)

The Eniac

c)

The IBM Mainframe

d)

The Enigma Machine