Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Problem Solving and Programming Design (part 4)

Total questions: 17

Worksheet time: 9mins

Name
Class
Date
1.

// finding area of circle

a)

Comment

b)

Preprocessor directives

c)

Standard header file

d)

Main Function

e)

Block of Function

2.

#include <iostream.h>

a)

Comment

b)

Preprocessor directives

c)

Standard header file

d)

Main Function

e)

Block of Function

3.

The C++ standard library traditionally declare their standard functions in header files

a)

Comment

b)

Preprocessor directives

c)

Standard header file

d)

Main Function

e)

Block of Function

4.

int main ()

a)

Comment

b)

Preprocessor directives

c)

Standard header file

d)

Main Function

e)

Block of Function

5.

{

}

a)

Comment

b)

Preprocessor directives

c)

Standard header file

d)

Main Function

e)

Block of Function

6.

float radius,area;

const float pi=3.14

a)

Identifiers

b)

Reserved word

c)

statement

7.

if / while / do

a)

Identifiers

b)

Reserved word

c)

statement

8.

cout<<"please enter the radius for the circle : ";

a)

Identifiers

b)

Reserved word

c)

statement

9.

=

a)

Equal to

b)

not equal to

10.

!=

a)

Equal to

b)

not equal to

11.

>

a)

less than or equal

b)

greater than

c)

greater than or equal

d)

less than

12.

>=

a)

less than or equal

b)

greater than

c)

greater than or equal

d)

less than

13.

<

a)

less than or equal

b)

greater than

c)

greater than or equal

d)

less than

14.

<=

a)

less than or equal

b)

greater than

c)

greater than or equal

d)

less than

15.

The logical AND operator (&&) returns true only if both operands are ______

a)

return

b)

zero

c)

false

d)

non-zero

16.

The logical OR operator returns true if any one of the operands is ______

a)

return

b)

zero

c)

false

d)

non-zero

17.

If the given operand is true then the logical NOT operator will make it ______

a)

return

b)

zero

c)

false

d)

non-zero