Question Bank

3705 approved questions from the community

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

MEDIUM
SINGLE CHOICE
30s
Javascript
by Mohamed

In JavaScript, the expression `typeof null` returns 'object'.

EASY
TRUE FALSE
20s
Javascript
by Mohamed

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

MEDIUM
SINGLE CHOICE
40s
Javascript
by Mohamed

Which browser storage mechanism is sent to the server with every HTTP request?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

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

MEDIUM
SINGLE 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
SINGLE CHOICE
45s
Javascript
by Mohamed

What is the primary difference between `==` and `===`?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

Which statement about `var`, `let`, and `const` is correct regarding their scope?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What is hoisting in JavaScript?

EASY
SINGLE CHOICE
30s
Javascript
by Mohamed

What is the difference between block, inline, and inline-block elements?

EASY
SINGLE CHOICE
25s
CSS
by Mohamed

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

MEDIUM
SINGLE CHOICE
35s
CSS
by Mohamed

Which `box-sizing` value includes padding and border within the element's specified width?

EASY
SINGLE CHOICE
25s
CSS
by Mohamed

What is margin collapsing and how can it be prevented?

MEDIUM
SINGLE CHOICE
35s
CSS
by Mohamed

What are the main parts of the CSS box model?

EASY
SINGLE CHOICE
25s
CSS
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
CSS
by Mohamed

How do you select all direct child `<li>` elements of a `<ul>`?

EASY
SINGLE CHOICE
20s
CSS
by Mohamed

Which combinator selects direct children and which selects any descendant?

MEDIUM
SINGLE CHOICE
30s
CSS
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
CSS
by Mohamed

Which selector matches elements by attribute presence or value?

EASY
SINGLE CHOICE
25s
CSS
by Mohamed
PreviousPage 185 of 186Next