Wayground logo

Free Printable Worksheets

Font size

S
M
L
XL
Worksheets

Technical Quiz 2

Total questions: 10

Worksheet time: 3mins

Name
Class
Date
1.

What will be the output?

a)

36

b)

16

c)

25

d)

Undefined Behaviour

2.

Which of the following is true about constructors in C++?

a)

Constructors cannot be overloaded

b)

Constructors are inherited

c)

Constructors have no return type

d)

Constructors can return values

3.

What will typeof null return in JavaScript?

a)

"null"

b)

"Object"

c)

"Undefined"

d)

"Number"

4.

Which of the following correctly declares an arrow function?

a)

let f = -> { return 1; }

b)

let f = () => 1;

c)

let f = => { return 1; }

d)

function f() => 1;

5.

Which layer in the OSI model is responsible for reliable data transfer?

a)

Network layer

b)

Transport layer

c)

Data Link layer

d)

Application layer

6.

Which of the following IP addresses is a loopback address?

a)

127.0.0.1

b)

192.168.0.1

c)

255.255.255.255

d)

10.0.0.1

7.

In TCP, the process of breaking messages into smaller packets is called:

a)

Routing

b)

Fragmentation

c)

Segmentation

d)

Multiplexing

8.

Which of the following best defines encapsulation?

a)

Hiding data and methods together as a single unit

b)

Inheriting features from parent class

c)

Binding data at runtime

d)

Overloading functions

9.

Which of these is not a type of inheritance in OOP?

a)

Multiple

b)

Multilevel

c)

Hybrid

d)

Encapsulated

10.

Polymorphism allows:

a)

Using the same name for different functions

b)

Creating many objects from one class

c)

Combining multiple classes

d)

Protecting data members