Question Bank

1899 approved questions from the community

Which access modifier restricts member access to the declaring class and its subclasses in TypeScript?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What is a tuple in TypeScript?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What is the purpose of the `tsconfig.json` file?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What does the `readonly` modifier do in TypeScript?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What is the purpose of the `super` keyword in TypeScript classes?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What are rest parameters in TypeScript functions?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

Which keyword is used to define an abstract method in an abstract class?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

What does structural typing mean in TypeScript?

MEDIUM
SINGLE CHOICE
35s
TypeScript
by Mohamed

What is the purpose of call signatures in TypeScript interfaces?

MEDIUM
SINGLE CHOICE
30s
TypeScript
by Mohamed

React automatically batches multiple state updates in event handlers.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

Using array indices as keys is always safe, even for reorderable lists.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Hooks can be called inside loops if the loop always has the same length.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

`useRef` updates trigger rerenders by default.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Hydration is attaching React behavior to server-rendered HTML on the client.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

React Strict Mode can intentionally run some logic twice in development.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Copying props into state without clear need can create anti-patterns.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

Reconciliation is React's diffing process to decide what to update in the UI.

MEDIUM
TRUE FALSE
20s
React
by Mohamed

React.memo() performs a deep comparison of props by default.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

React automatically binds event handlers in class components.

MEDIUM
TRUE FALSE
25s
React
by Mohamed

What is the correct way to update state based on the previous state value?

MEDIUM
SINGLE CHOICE
35s
React
by Mohamed
PreviousPage 55 of 95Next