WorksheetsTechnical Quiz 2
Total questions: 10
Worksheet time: 3mins
What will be the output?
36
16
25
Undefined Behaviour
Which of the following is true about constructors in C++?
Constructors cannot be overloaded
Constructors are inherited
Constructors have no return type
Constructors can return values
What will typeof null return in JavaScript?
"null"
"Object"
"Undefined"
"Number"
Which of the following correctly declares an arrow function?
let f = -> { return 1; }
let f = () => 1;
let f = => { return 1; }
function f() => 1;
Which layer in the OSI model is responsible for reliable data transfer?
Network layer
Transport layer
Data Link layer
Application layer
Which of the following IP addresses is a loopback address?
127.0.0.1
192.168.0.1
255.255.255.255
10.0.0.1
In TCP, the process of breaking messages into smaller packets is called:
Routing
Fragmentation
Segmentation
Multiplexing
Which of the following best defines encapsulation?
Hiding data and methods together as a single unit
Inheriting features from parent class
Binding data at runtime
Overloading functions
Which of these is not a type of inheritance in OOP?
Multiple
Multilevel
Hybrid
Encapsulated
Polymorphism allows:
Using the same name for different functions
Creating many objects from one class
Combining multiple classes
Protecting data members
