Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C++

Total questions: 10

Worksheet time: 5mins

Name
Class
Date
1.

What is the only function all C++ programs must contain?

a)

start()

b)

system()

c)

main()

d)

program()

2.

What punctuation is used to signal the beginning and end of code blocks?

a)

{ }

b)

-> and <-

c)

BEGIN and END

d)

( and )

3.
What is the output of this program?
Program
int main()
{
cout<<"Hi everybody";
return 0;
}
a)
"Hi everybody"
b)
Hi everybody"
c)
Hi everybody
d)
"Hi everybody
4.
... is a set of ordered steps for solving a particular  problem. 
a)
An algorithm
b)
Program language
c)
Operator
d)
Variable
5.
Programming is ......
a)
instructing a computer to perform a task for you with the help of a functions. 
b)
instructing a computer to perform a task for you with the help of a procedures
c)
instructing a computer to perform a task for you with the help of a programming language. 
d)
instructing a computer to perform a task for you with the help of a English language
6.
Addition, Subtraction, Multiplication, Division are :
a)
Arithmetic Operators
b)
Relational Operators
c)
Logical Operators
d)
Conditional Operators
7.

What is Computer Language?

a)

It Manipulates information, or data. It has the ability to store, retrieve, and process data.

b)

It is used in computer programming to implement algorithms.

c)

It is a software application that provides comprehensive facilities to computer programmers for software development.

d)

Aa vocabulary and set of grammatical rules for instructing a computer or computing device to perform specific tasks.

8.

What is the meaning of C++?

a)

Compile ++

b)

Compilation + +

c)

Computer + Linking

d)

Compilation + Linking

9.

Who developed C++?

a)

Bjarne Stroustrup

b)

Sigmund Freud

c)

Daniel Stroustrup

d)

Dennis Ritchie

10.

What are the advantages of C++?

a)

C++ is an object-oriented programming language and includes classes, inheritance, polymorphism, data abstraction and encapsulation.

b)

It handles the complexity of a real-world application quite well.

c)

It's easier to think in terms of class and objects.

d)

C++ is a powerful, efficient and fast language.