wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

C++ Quiz-1

Total questions: 15

Worksheet time: 9mins

Name
Class
Date
1.

Pick out the defination of objects?

a)

Member of the class

b)

Associate of the class

c)

Attributes of the class

d)

Instance of the class

2.

How many objects can present in a single class?

a)

2

b)

4

c)

As many as possible

d)

0

3.

Wrapping of data & its related functionality in to a single entity is called

a)

Abstraction

b)

Encapsulation

c)

Polymorphism

d)

Modularity

4.

Which concept allows you to reuse the written code?

a)

Encapsulation

b)

Inheritance

c)

Polymorphism

d)

Class

5.

What does modularity means?

a)

Hiding part of program

b)

Subdividing programs into small independent parts

c)

Overriding parts of programs

d)

Wrapping things into single unit?

6.

C++ is _____________

a)

Both procedural & object oriented programming language

b)

Procedural programming language

c)

Functional programming language

7.

What are the actual parameters in c++?

a)

Parameters with which functions are called

b)

Parameters used in function definition

c)

Variables that are never used in function

d)

Variables other then passed parameter in function

8.

Which of the following is called insertion operator?

a)

<<

b)

>>

c)

*

d)

<

9.

Which of the following is called extraction or get from operator?

a)

>>

b)

<<

c)

>

d)

**

10.

Which of the following explains Polymorphism?

a)

int func(int, int);

float func1(float, float);

b)

int func(float);

int func(int, int, char);

c)

int func();

int new_func();

d)

int func(int);

int func(int);

11.

Which of the following is not a fundamental type is not present in C but present in C++?

a)

int

b)

void

c)

bool

d)

char

12.

What is the size of a boolean variable in C++?

a)

1 bit

b)

2bit

c)

1byte

d)

2byte

13.

Which of the following is C++ equivalent for scanf()?

a)

cout

b)

cin

c)

scanf

d)

input

14.

Which of the following is an exit-controlled loop?

a)

for

b)

while

c)

do-while

d)

all of above

15.

Which of the following is an entry-controlled loop?

a)

for

b)

none

c)

do-while

d)

all of above