1. What is Event loop ? Senior A. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state B. all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle C. syntax that pauses an async function until a promise settles and itself returns a promise D. the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats Reveal the answer + AI explanation — free account
2. Which term means: "the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats"? Senior A. Event loop B. async/await C. Macrotask vs microtask ordering D. Promise.all vs Promise.race Reveal the answer + AI explanation — free account
3. Which statement is correct? Senior A. Event loop — the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering B. Event loop — all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle C. Event loop — syntax that pauses an async function until a promise settles and itself returns a promise D. Event loop — the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats Reveal the answer + AI explanation — free account
4. What is Microtask queue ? Senior A. syntax that pauses an async function until a promise settles and itself returns a promise B. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state C. all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle D. the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering Reveal the answer + AI explanation — free account
5. Which term means: "the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering"? Senior A. Promise B. Microtask queue C. async/await D. Event loop Reveal the answer + AI explanation — free account
6. Which statement is correct? Senior A. Microtask queue — the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats B. Microtask queue — the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering C. Microtask queue — an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state D. Microtask queue — all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle Reveal the answer + AI explanation — free account
7. What is Promise ? Junior A. the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats B. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state C. the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering D. a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) Reveal the answer + AI explanation — free account
8. Which term means: "an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state"? Junior A. Microtask queue B. Event loop C. Promise D. Promise.all vs Promise.race Reveal the answer + AI explanation — free account
9. Which statement is correct? Junior A. Promise — all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle B. Promise — a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) C. Promise — an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state D. Promise — the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering Reveal the answer + AI explanation — free account
10. What is async/await ? Mid A. the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering B. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state C. a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) D. syntax that pauses an async function until a promise settles and itself returns a promise Reveal the answer + AI explanation — free account
11. Which term means: "syntax that pauses an async function until a promise settles and itself returns a promise"? Mid A. Promise B. async/await C. Microtask queue D. Macrotask vs microtask ordering Reveal the answer + AI explanation — free account
12. Which statement is correct? Mid A. async/await — the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering B. async/await — syntax that pauses an async function until a promise settles and itself returns a promise C. async/await — the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats D. async/await — an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state Reveal the answer + AI explanation — free account
13. What is Promise.all vs Promise.race ? Mid A. a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) B. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state C. all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle D. the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering Reveal the answer + AI explanation — free account
14. Which term means: "all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle"? Mid A. Promise B. async/await C. Macrotask vs microtask ordering D. Promise.all vs Promise.race Reveal the answer + AI explanation — free account
15. Which statement is correct? Mid A. Promise.all vs Promise.race — all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle B. Promise.all vs Promise.race — the runtime loop that empties the call stack, drains all microtasks, then runs one macrotask, and repeats C. Promise.all vs Promise.race — a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) D. Promise.all vs Promise.race — an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state Reveal the answer + AI explanation — free account
16. What is Macrotask vs microtask ordering ? Senior A. all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle B. the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering C. a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) D. an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state Reveal the answer + AI explanation — free account
17. Which term means: "a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask)"? Senior A. Promise B. Promise.all vs Promise.race C. async/await D. Macrotask vs microtask ordering Reveal the answer + AI explanation — free account
18. Which statement is correct? Senior A. Macrotask vs microtask ordering — the queue of promise callbacks and queueMicrotask jobs, drained fully after each task and before rendering B. Macrotask vs microtask ordering — a resolved promise's .then (microtask) runs before a setTimeout(0) callback (macrotask) C. Macrotask vs microtask ordering — all resolves when every promise resolves and rejects on the first rejection; race settles with the first promise to settle D. Macrotask vs microtask ordering — an object representing the eventual result of an async operation, in a pending, fulfilled, or rejected state Reveal the answer + AI explanation — free account