W3
Teacher
Explore
Browse by field
Artificial Intelligence
Accounting & Finance
Information Technology
Show all fields
Interview Q&A
All Interview Questions
Beginner
Intermediate
Advanced
Practice
MCQs
Quizzes
Mock Interviews
About
Light
Dark
Auto
Sign in
Get Started
Search interview questions
Search
20 questions for “Event Loop & Concurrency”
Found in 1 field. Select a question to see its full answer.
Matching topics
JavaScript
Event
Loop
&
Concurrency
10
Python
Concurrency
(asyncio/threading/multiprocessing)
3
Node.js
Event
Loop
& Non-blocking IO
2
Information Technology
20 questions in 3 technologies
#
Question
Technology
Topic
Level
1
How does the
event
loop
decide what to run next?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Intermediate
2
What's the relationship between requestAnimationFrame and the
event
loop
's rendering step?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Advanced
3
Why does a long synchronous function block UI updates and
event
handling?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Intermediate
4
Is JavaScript single-threaded, and what does that mean in practice?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Beginner
5
What is the call stack?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Beginner
6
What is the difference between the microtask queue and the macrotask (task) queue?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Intermediate
7
Why does Promise.resolve().then(cb) run before setTimeout(cb, 0), even with a 0ms delay?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Advanced
8
How would you break a large synchronous task into chunks to keep the UI responsive?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Advanced
9
What is 'starvation' of the macrotask queue, and how can recursive microtasks cause it?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Advanced
10
How does async/await map onto the microtask queue under the hood?
JavaScript › Event Loop & Concurrency
JavaScript
Event
Loop
&
Concurrency
Advanced
Show all 20 questions in Information Technology