Question Bank

1899 approved questions from the community

Which block in a try-except statement executes only if no exception was raised in the try block?

MEDIUM
SINGLE CHOICE
35s
Python
by Mohamed

In Python, modifying a mutable object (like a list) inside a function will affect the original object outside the function.

MEDIUM
TRUE FALSE
25s
Python
by Mohamed

How is Python code executed by the CPython interpreter?

MEDIUM
SINGLE CHOICE
40s
Python
by Mohamed

What is the difference between 'mouseenter' and 'mouseover'?

MEDIUM
SINGLE CHOICE
35s
Javascript
by Mohamed

When comparing ES2015 classes to ES5 function constructors, what is the 'super()' call used for?

MEDIUM
SINGLE CHOICE
35s
Javascript
by Mohamed

How would you define a closure in JavaScript?

MEDIUM
SINGLE CHOICE
45s
Javascript
by Mohamed

Which of the following is a typical use case for anonymous functions in JavaScript?

MEDIUM
SINGLE CHOICE
30s
Javascript
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
Javascript
by Mohamed

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

MEDIUM
SINGLE CHOICE
40s
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

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

MEDIUM
SINGLE CHOICE
35s
CSS
by Mohamed

What is margin collapsing and how can it be prevented?

MEDIUM
SINGLE CHOICE
35s
CSS
by Mohamed

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

MEDIUM
SINGLE CHOICE
30s
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

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

MEDIUM
SINGLE CHOICE
35s
CSS
by Mohamed

What are CSS pseudo-classes used for?

MEDIUM
SINGLE CHOICE
30s
CSS
by Mohamed
PreviousPage 95 of 95