wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

Object Oriented BTech

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

C++ was introduced by

a)

Bjarne Stroustrup

b)

Hellen Keller

c)

Linus Torvalds

d)

Bill Gates

2.

Which of these is NOT a C++ compiler

a)

Visual Studio

b)

Code Blocks

c)

Eclipse

d)

Webshots

3.

Identify the line containing Error:

a)

2

b)

3

c)

4

d)

5

4.

What is the output for following code, if x = 5?

cout << x * 3 + 4;

a)

14

b)

19

c)

35

d)

15

5.

How many decimal digits can be stored by declaring FLOAT?

a)

8

b)

2

c)

7

d)

9

6.

What is the output for : char x = 98 ; cout << x; ?

a)

98

b)

Data type mismatch error

c)

B

d)

'9'

7.

Which one of these is a Comparison operator?

a)

>

b)

++

c)

?

d)

&&

8.

Which is the correct method to join the two strings A and B?

a)

B.append(A)

b)

A.append(B)

c)

append(A,B)

d)

AB.append( )

9.

Which function is used to find the total no. of characters of String?

a)

len

b)

length

c)

totnum

d)

size

10.

The functions used to find a root of a number:

a)

root

b)

numrt

c)

sqrt

d)

sqroot

11.

The example : y = (x>20)?15:18 is called

a)

ternary operator

b)

conditional operator

c)

right hand logic

d)

looping

12.

Is it possible to have multiple data types in C++ arrays?

a)

Yes

b)

No

13.

What is the size of array declared as - string cars[ ] = {"Audi", "BMW", "Honda"}

a)

3

b)

12

c)

6

d)

8

14.

The mathematical functions are present in :

a)

Math

b)

CMath

c)

func

d)

arith

15.

The condition (x > y) is called as:

a)

for loop

b)

initialization

c)

boolean expression

d)

equation