wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C++ Quiz

Total questions: 25

Worksheet time: 14mins

Name
Class
Date
1.

When was C++ named so?

a)

1975

b)

1979

c)

1980

d)

1983

2.

C++ is .....

a)

Dynamically typed

b)

Statically typed

c)

Syntactically typed

d)

Disgustingly typed

3.

Which of these isn't a feature of OOP?

a)

Encapsulation

b)

Class

c)

Inheritance

d)

Polymerism

4.

Which of these is true for C++?

a)

Platform Dependent

b)

Machine Dependent

c)

Platform Independent

d)

Machine Independent

5.

What keyword is used to print the given statements in C++?

a)

cout

b)

print

c)

compl

d)

printf

6.

What is also known as "blueprint"?

a)

attributes

b)

class

c)

methods

d)

objects

7.

When was C++ developed?

a)

1975

b)

1979

c)

1980

d)

1983

8.

Is C++ used for web app development?

a)

Yes

b)

No

9.

Can compiled programs of C++ on one OS run on another?

a)

Yes

b)

No

10.
The process of creating a new variable without value
a)
declaration
b)
naming
c)
instantiation
d)
assigning
11.

Evaluate the following expressions to true or false


3!=4-1

a)

true

b)

False

12.

C++ supports

a)

Top down programming Approach

b)

Bottom Up programming Approach

c)

Both Top down & Bottom Up programming Approach

d)

Non of these

13.

Which of the following is a correct comment?

a)

*/ Comments */

b)

** Comment **

c)

/* Comment */

d)

{ Comment }

14.

How many objects can present in a single class?

a)

2

b)

4

c)

As many as possible

d)

0

15.

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

a)

Abstraction

b)

Encapsulation

c)

Polymorphism

d)

Modularity

16.

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?

17.

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

18.

Which of the following is called insertion operator?

a)

<<

b)

>>

c)

*

d)

<

19.

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

20.

Which of the following is an exit-controlled loop?

a)

for

b)

while

c)

do-while

d)

all of above

21.

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

a)

cout

b)

cin

c)

scanf

d)

input

22.

Current version of C++

a)

C++98

b)

C++03

c)

C++17

d)

C++11

23.

First version of C++ is called

a)

C++ Initial

b)

C increment

c)

C with Classes

d)

C++98

24.

As of 2019, C++ is now the _____most popular programming language.

a)

Third

b)

second

c)

fourth

d)

Fifth

25.

As of Year 2020, Order the following programming languages on the basis of most popular used in industry

a)

C, C++, Java, Python

b)

Python, Java, C++ C

c)

Java, C, Python, C++

d)

Java, Python, C, C++