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?
In Python, modifying a mutable object (like a list) inside a function will affect the original object outside the function.
How is Python code executed by the CPython interpreter?
What is the difference between 'mouseenter' and 'mouseover'?
When comparing ES2015 classes to ES5 function constructors, what is the 'super()' call used for?
How would you define a closure in JavaScript?
Which of the following is a typical use case for anonymous functions in JavaScript?
What is the primary difference between `.call()` and `.apply()`?
What is the key difference between `<script async>` and `<script defer>` for external scripts?
What determines the value of `this` in a regular function call (non-arrow, non-method)?
Event delegation involves attaching an event listener to a parent element instead of individual child elements.
In the JavaScript event loop, how are microtasks handled relative to macrotasks?
Which modern techniques can center a block-level element both horizontally and vertically?
What is margin collapsing and how can it be prevented?
When would you use the universal selector `*` and the adjacent sibling combinator `+`?
Which combinator selects direct children and which selects any descendant?
What are pseudo-elements like ::before and ::after used for?
Why use a CSS reset (or normalize) at the start of a stylesheet?
What are CSS pseudo-classes used for?