Question Bank

133 approved questions from the community

What is the primary difference between `.call()` and `.apply()`?

MEDIUM
MULTIPLE CHOICE
30s
Javascript
by Mohamed

What is the key difference between `<script async>` and `<script defer>` for external scripts?

MEDIUM
MULTIPLE CHOICE
40s
Javascript
by Mohamed

What determines the value of `this` in a regular function call (non-arrow, non-method)?

MEDIUM
MULTIPLE CHOICE
40s
Javascript
by Mohamed

Event delegation involves attaching an event listener to a parent element instead of individual child elements.

MEDIUM
TRUE FALSE
20s
Javascript
by Mohamed

In the JavaScript event loop, how are microtasks handled relative to macrotasks?

MEDIUM
MULTIPLE CHOICE
45s
Javascript
by Mohamed

Which modern techniques can center a block-level element both horizontally and vertically?

MEDIUM
MULTIPLE CHOICE
35s
CSS
by Mohamed

What is margin collapsing and how can it be prevented?

MEDIUM
MULTIPLE CHOICE
35s
CSS
by Mohamed

When would you use the universal selector `*` and the adjacent sibling combinator `+`?

MEDIUM
MULTIPLE CHOICE
30s
CSS
by Mohamed

Which combinator selects direct children and which selects any descendant?

MEDIUM
MULTIPLE CHOICE
30s
CSS
by Mohamed

What are pseudo-elements like ::before and ::after used for?

MEDIUM
MULTIPLE CHOICE
30s
CSS
by Mohamed

Why use a CSS reset (or normalize) at the start of a stylesheet?

MEDIUM
MULTIPLE CHOICE
35s
CSS
by Mohamed

What are CSS pseudo-classes used for?

MEDIUM
MULTIPLE CHOICE
30s
CSS
by Mohamed

After calling a `useState` setter, what should you expect?

MEDIUM
MULTIPLE CHOICE
35s
React
by Mohamed

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

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

Render props pattern means a component receives:

MEDIUM
MULTIPLE CHOICE
35s
React
by Mohamed

Why might SSR improve perceived performance?

MEDIUM
MULTIPLE CHOICE
35s
React
by Mohamed

For async fetching in React, what helps avoid stale response bugs?

MEDIUM
MULTIPLE CHOICE
40s
React
by Mohamed

What does one-way data flow in React imply?

MEDIUM
MULTIPLE CHOICE
30s
React
by Mohamed

What is code splitting mainly intended to improve?

MEDIUM
MULTIPLE CHOICE
30s
React
by Mohamed
PreviousPage 6 of 7Next