JavaScript: promises, async, and the event loop
Untangle JavaScript’s async behavior with questions on Promises, async/await, microtasks, and the event loop. You’ll practice predicting execution order, spotting subtle timing bugs, and choosing the ...
Start Quiz
Pick a difficulty and question count to begin.
About this quiz
What you’ll practice
From promise chains to async/await, this quiz focuses on how JavaScript schedules work across the call stack, task queue, and microtask queue.
Each question has 4 options and there’s no timer, so you can reason through tricky execution-order scenarios without rushing.
Difficulty and quiz setup
Difficulty is mixed on purpose: you’ll see quick concept checks alongside deeper “predict the output” items that test real understanding.
Choose your question count and difficulty before starting to tailor the session - short for warm-ups, longer for thorough review.
Common pitfalls to watch for
Many bugs come from assuming promises behave like setTimeout, or from forgetting that microtasks run before the next macrotask.
- Confusing microtasks (Promise callbacks) with macrotasks (timers, I/O) - Forgetting that async functions return a Promise immediately - Misreading then/catch/finally chaining and return values - Assuming await “blocks” the thread instead of yielding to the event loop - Missing error propagation rules and unhandled rejection behavior n## Tips for improving fast
Aim to explain the scheduling step-by-step (stack → microtasks → macrotasks) rather than guessing the final output.
Replaying missed questions with a smaller question count is a great way to lock in the patterns that keep showing up in real projects.
Sample questions
What does a Promise represent in JavaScript?
- A.A value that may be available now, or in the future, or never.
- B.A loop that runs indefinitely.
- C.A function that always returns a value.
- D.An object that cannot be modified.
What method is used to handle the fulfillment of a Promise?
- A..then()
- B..catch()
- C..finally()
- D..resolve()
Which of the following is NOT a state of a Promise?
- A.Suspended
- B.Pending
- C.Fulfilled
- D.Rejected
Quiz FAQ
How many questions are in this quiz?
This quiz has 106 questions covering promises, async/await, and event loop behavior.
Is there a timer or time limit?
No. Every question is untimed, so you can work through execution order carefully.
What answer format does the quiz use?
Each question is multiple-choice with 4 options.
Can I choose the number of questions and difficulty?
Yes. You can select your preferred question count and difficulty before you start.
What topics are most emphasized?
Expect microtasks vs macrotasks, promise chaining, async/await semantics, and common error-handling pitfalls.
Play this quiz in another language(7)
Related Quizzes

Python: scopes, closures, and decorators
Untangle how Python finds names and keeps state across calls with this focused quiz on scopes, closures, and decorators. You’ll work through real-world patterns like nested functions, nonlocal/global usage, and wrapper functions. Pick your question count and difficulty to match your comfort level, then learn from each explanation as you go.

Rust: ownership, borrowing, and lifetimes
Sharpen your understanding of Rust’s ownership model, borrowing rules, and lifetime annotations with practical, code-focused questions. You’ll work through common compiler errors, choose the safest fixes, and build intuition for how the borrow checker thinks. Pick your preferred difficulty and question count, then learn at your own pace with no timer.
Computer Hardware Components And Roles
Match key PC components to what they do and how they affect performance. Covers CPU, GPU, RAM, storage types, motherboards, power supplies, and ports.
Cloud Computing Service Models Explained
Check your understanding of how cloud services are delivered and used. Covers IaaS, PaaS, SaaS, containers vs VMs, regions/availability zones, and shared responsibility basics.
Cybersecurity Threats And Defenses
Identify common cyber threats and the best defensive practices used to reduce risk. Covers phishing, malware, passwords, MFA, encryption basics, and safe browsing habits.
Programming Language Syntax Basics
Test your knowledge of common programming syntax across popular languages. Questions focus on variables, loops, functions, and basic data structures without requiring deep computer science theory.