wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C++

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

If-else

a)

Optional value for the program to execute

b)

Is a condition followed by a statement or a set of statements

c)

Is a statement followed by a condition or a set of conditions

d)

Function with a value

2.

Do while loops

a)

Runs a statement once

b)

Runs a statement twice

c)

Runs a statement multiple times or not within a boolean condition

d)

Doesn't run at all

3.

Switch Statement

a)

Is a statement with a set of conditions called cases

b)

Is a case

c)

Is a condition with no cases

d)

Is a boolean statement

4.

Secondary Functions

a)

Is a function executed inside the main function

b)

Is a function executed in another program

c)

Is a function executed outside the main function

d)

Is the main function

5.

Voids

a)

A statement that returns a value

b)

A statement that doesn't return a value

c)

A function that return a value

d)

A function that doesn't return a value

6.

iostream

a)

Displays output from the screen and input from the keyboard

b)

Has all the math equations

c)

Counts the time

d)

Checks if the code has a function

7.

cmath

a)

Simple math

b)

Stands for complicated math

c)

Add, subtract, divide, multiply

d)

Timming

8.

cstdlib

a)

Can convert a number into a letter

b)

It doesn't have any use

c)

Is the same as iostream

d)

Can convert a number into absolute number

9.

ctime

a)

Manipulates your CPU

b)

Manipulates other libraries

c)

Manipulates date and time information

d)

It just counts

10.

For a random number generator, you write it as

a)

sin()

b)

rand()

c)

cos()

d)

abs()