wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

C++ Bootcamp 2k24

Total questions: 20

Worksheet time: 11mins

Name
Class
Date
1.

Who developed C++ programming language?

a)

Dennis Ritchie

b)

Prajwal Shah

c)

James Gosling

d)

Bjarne Stroustrup

2.

What are the features of C++? (Multiple correct)

a)

Object Oriented Programming Language

b)

Standard Template Library (STL)

c)

Very very simple language

d)

Worst memory management

3.

Which one of the following is not a Keyword in C++ Language?

a)

free

b)

auto

c)

if

d)

int

4.

Which one of the following is a Derived Data Type?

a)

int

b)

float

c)

pointer

d)

char

5.

Which of the following is a correct identifier in Cpp?

a)

INT_1234

b)

7VAR_NAME

c)

$var_name

d)

5variable

6.

 Which is more effective while calling the C++ functions?

a)

call by surname

b)

call by name

c)

call by reference

d)

call by value

7.

What will be the output (if possible)?

a)

Compilation Error

b)

We Love C Plus Plus

c)

We Love C Plus Plus

0

d)

WeLoveCPlusPlus0

8.

Which operators can be used to find if the number is odd or even?

a)

&

(bitwise and)

b)

%

(modulo)

c)
  • -

  • (arithmetic subtraction)

d)

!

(not operator)

9.

What is a function in C++?

a)

A variable declaration

b)

A way to define classes

c)

A code block that performs a specific task

d)

A data structure for storing elements

10.

Consider A is a 3 X 3 matrix, Eren wants to access the number 8 to do the rumbling! How can he access the number 8?

a)

A[2][1]

b)

A[1][1]

c)

A[2][2]

d)

A[2][0]

11.

What are the parts of Recursion?

a)

Base case

b)

initialization case

c)

Recursive case

d)

Iteration case

12.

Where the default value of parameter have to be specified?

a)

Function Call

b)

Function Definition

c)

Function Prototype

d)

Both B and C

13.

Which keyword is used to allocate dynamic memory?

a)

allocate

b)

new

c)

this

d)

auto

14.

Which of the following types is the language C++?

a)

None of the above

b)

Statically typed

c)

Dynamically typed

d)

All of the above

15.

What is do-while loop also known as?

a)

Exit Control

b)

Entry Control

c)

Per tested

d)

For Each

16.

Guess the output.

a)

No output

b)

I'm Ok

c)

Compilation Error

d)

None of the above

17.

Guess the output.

a)

-5 -6

b)

-6 -7

c)

-4 -5

d)

NO OUTPUT

18.

Guess the output.

a)

Infinite Loop

b)

C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP

c)

C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP
C++ BOOTCAMP

d)

Compilation Error

19.

What is correct syntax of defining a pointer?

a)

char *a

b)

void *a

c)

int *a

d)

int a

20.

'?:' is called (a)   operator