wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Grade 8 - C ++

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

which manipulator is similar to that of “\n” escape sequence character.

a)

setw()

b)

endl

c)

const

d)

new line

2.

Which operator is called as remainder operator ?

a)

+

b)

+=

c)

%

d)

/

3.

Logical NOT operator results "True" if the expression is....

a)

True

b)

False

c)

Both are True

d)

Both are false

4.

(10 >= 9) && ( 50 >=9) = ?

a)

0

b)

1

5.

(10 >= 99) && ( 50 >=20) = ?

a)

0

b)

1

6.

(10 >= 9) || ( 50 >=9) = ?

a)

0

b)

1

7.

Which one of the following is not a Built-in data type?

a)

int

b)

float

c)

void

d)

struct

8.

Which one of the following is a correct variable declaration ?

a)

int a = 10

b)

float 2x = 22.3;

c)

int a = 10,b =20, c;

d)

int a = 10 ; b = 20; c;

9.

In "cin>>" statement, ">>" represent ........ operator.

a)

Assignment

b)

Logical

c)

Insertion

d)

Extraction

10.

If a = 7 and b = 5 then, b+=a is

a)

10

b)

11

c)

12

d)

13

11.

Data type "Double" occupies, how many bytes ?

a)

2

b)

4

c)

8

d)

10

12.

The expression a ++ is same as a +=1.

a)

True

b)

False

13.

Logical operator OR (||) returns TRUE if any one of the expression evaluates to TRUE.

a)

True

b)

False

14.

............ controls the way that the data is displayed.

a)

Operator

b)

Constant

c)

Manipulator

d)

Variables

15.

Ternary operator is represented by

a)

>>

b)

? :

c)

: ?

d)

+=