Question Bank

1085 approved questions from the community

Event delegation allows you to attach a single event listener to a parent element to handle events for multiple child elements.

EASY
TRUE FALSE
25s
Javascript
by Mohamed

Variables declared with 'var' are block-scoped.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

WeakMap and WeakSet allow garbage collection of their keys/elements when there are no other references.

EASY
TRUE FALSE
30s
Javascript
by Mohamed

What is event bubbling?

EASY
SINGLE CHOICE
35s
Javascript
by Mohamed

isNaN() checks if a value is NaN.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

In Java, the type of a variable can change during runtime.

EASY
TRUE FALSE
20s
Java
by Mohamed

Java supports multiple inheritance of classes.

EASY
TRUE FALSE
20s
Java
by Mohamed

Calling System.gc() in Java guarantees that garbage collection will run immediately.

EASY
TRUE FALSE
25s
Java
by Mohamed

Which of the following are examples of Java's rich standard library features?

EASY
MULTIPLE CHOICE
35s
Java
by Mohamed

What is the try-catch block used for in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What is multi-threading in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What is the marking phase in Java's garbage collection process?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What keyword is used to achieve inheritance in Java?

EASY
SINGLE CHOICE
25s
Java
by Mohamed

What is encapsulation in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

What command is used to view Java bytecode?

EASY
SINGLE CHOICE
25s
Java
by Mohamed

What is the purpose of bytecode verification in Java?

EASY
SINGLE CHOICE
30s
Java
by Mohamed

Java's platform independence means the same compiled bytecode can run on different operating systems without modification.

EASY
TRUE FALSE
25s
Java
by Mohamed

What is the difference between method overloading and method overriding?

EASY
SINGLE CHOICE
35s
Java
by Mohamed

What does 'WORA' stand for in Java?

EASY
SINGLE CHOICE
25s
Java
by Mohamed

The finally block in Java's exception handling is always executed regardless of whether an exception occurs.

EASY
TRUE FALSE
25s
Java
by Mohamed
PreviousPage 41 of 55Next