wayground logo

Free Printable Worksheets

NEW

Font size

S
M
L
XL
Worksheets

BrightChamps Technical Round - C++ language

Total questions: 15

Worksheet time: 8mins

Name
Class
Date
1.

What is the output of 23%7

a)

2

b)

3

c)

3.28

d)

21

2.

C++ is a _______ programming language

a)

Structured Query Language

b)

Scripting language

c)

Procedural

d)

Object Oriented

3.

Any mathematical operation between an integer and float will always

a)

return an integer

b)

return a string

c)

return a float

d)

will give an error

4.

Which of the following is not an OOPS concept?

a)

Encapsulation

b)

Pointers

c)

Inheritance

d)

Polymorphism

5.

Which of the following is not an access specifier

a)

public

b)

private

c)

protected

d)

main

6.

Which class cannot create its instance?

a)

Parent Class

b)

Nested Class

c)

Derived Class

d)

Abstract Class

7.

The operator == is a

a)

Relational operator

b)

Bitwise operator

c)

Mathematical operator

d)

Logical operator

8.

What is the purpose of the continue statement ?

a)

to continue the execution of a loop

b)

to jump to another statement in the program and continue from here

c)

to skip the iteration of the loop

d)

exit and return to the main function

9.

Which definition best defines the concept of abstraction?

a)

Showing the important data

b)

Encapsulating the data

c)

Hides the important data

d)

Hides the implementation and showing only the features

10.

//What is the value of a in below program?


int main()

{

int a, b=45;

a = 90/b;

return 0;

}

a)

90

b)

2

c)

45

d)

0

11.

int arr[] = { 10, 20, 30, 40 }

cout << arr[2]

What will be the output of the above code ?

a)

10

b)

20

c)

30

d)

error

12.

Exception handling in C++ is used to handle

a)

Runtime Errors

b)

Logical Errors

c)

Syntax Errors

d)

Compilation error

13.

What are mandatory parts in the function declaration?

a)

return type, function name

b)

return type, function name, parameters

c)

parameters, function name

d)

parameters, arguments

14.

Which of the following is a derived data type ?

a)

Structure Data Type

b)

Boolean Data Type

c)

Integer Data Type

d)

Character Data Type

15.

Which one of the following is a keyword in C++?

a)

Switch

b)

Key

c)

cout

d)

scanf