Skip to main content
NBCP • MODULE 2 OF 24 25 Timed Sets • 125 Verified MCQs

Module 2: Advanced JavaScript and Asynchronous Programming — Node.js Mock Tests

Master how JavaScript truly works under the hood — execution contexts, closures, this binding, prototypes, OOP classes & #private encapsulation, destructuring/spread, CommonJS vs ESM, Promises, async/await, Promise.all/allSettled, microtasks vs macrotasks, async error propagation, and V8 garbage collection.

⚡ START MODULE 2 PRACTICE

Execution Context and the Call Stack

Start your baseline timed assessment for this module

Module 2 Assessment Rules & Format Every Attempt Helps You Improve • Track Your Progress, One Topic at a Time.
Question Bank 125 MCQs
Timed Sets 25 (25 Topics)
Duration 20 min / set
Pass Benchmark 70%
Negative Marking Up to -0.25 / wrong
Daily Access ∞ Unlimited Free

Integrity & Navigation: Questions can be revisited, changed, or flagged for review before final submission; answers auto-save across browser refreshes, and answer keys stay locked server-side until submitted.

Your Module 2 Progress

Completion Status & Revision Focus

Practice Today. Perform Better Tomorrow. No completed attempts recorded in Module 2 yet — start any topic below to generate your topic scorecard and unlock personalized revision suggestions.

Node.js Backend Development • Module 2

Topic-Wise Timed Mock Tests (25 Topics)

Instant scorecard + detailed explanations
Topic 2.1 1 Set

Execution Context and the Call Stack

5 Qs • 20 min • Pass 70%

Topic 2.2 1 Set

Lexical Scope and Closures

5 Qs • 20 min • Pass 70%

Topic 2.3 1 Set

The this Keyword and Binding Rules

5 Qs • 20 min • Pass 70%

Topic 2.4 1 Set

call(), apply() and bind()

5 Qs • 20 min • Pass 70%

Topic 2.5 1 Set

Prototypes and Prototypal Inheritance

5 Qs • 20 min • Pass 70%

Topic 2.6 1 Set

Constructor Functions and ES6 Classes

5 Qs • 20 min • Pass 70%

Topic 2.7 1 Set

Object-Oriented Programming in JavaScript

5 Qs • 20 min • Pass 70%

Topic 2.8 1 Set

Inheritance and Polymorphism

5 Qs • 20 min • Pass 70%

Topic 2.9 1 Set

Encapsulation (#private Fields) and Abstraction

5 Qs • 20 min • Pass 70%

Topic 2.10 1 Set

Object and Array Destructuring

5 Qs • 20 min • Pass 70%

Topic 2.11 1 Set

Spread and Rest Operators (Shallow vs Deep Clone)

5 Qs • 20 min • Pass 70%

Topic 2.12 1 Set

Template Literals and Tagged Templates

5 Qs • 20 min • Pass 70%

Topic 2.13 1 Set

Optional Chaining (?.) and Nullish Coalescing (??)

5 Qs • 20 min • Pass 70%

Topic 2.14 1 Set

Modules: CommonJS vs ES Modules Preview

5 Qs • 20 min • Pass 70%

Topic 2.15 1 Set

Callbacks and Error-First Callback Patterns

5 Qs • 20 min • Pass 70%

Topic 2.16 1 Set

Promises and Promise Chaining

5 Qs • 20 min • Pass 70%

Topic 2.17 1 Set

async and await Execution Mechanics

5 Qs • 20 min • Pass 70%

Topic 2.18 1 Set

Promise Combinators: all, allSettled, race and any

5 Qs • 20 min • Pass 70%

Topic 2.19 1 Set

Event Loop and Task Queues

5 Qs • 20 min • Pass 70%

Topic 2.20 1 Set

Microtasks vs Macrotasks Ordering

5 Qs • 20 min • Pass 70%

Topic 2.21 1 Set

Error Propagation in Asynchronous Code

5 Qs • 20 min • Pass 70%

Topic 2.22 1 Set

Memory Management and Garbage Collection Fundamentals

5 Qs • 20 min • Pass 70%

Topic 2.23 1 Set

Iterators, Generators (function*) and Async Generators (for await...of)

5 Qs • 20 min • Pass 70%

Topic 2.24 1 Set

Functional Composition, Currying, Memoization & Immutability Patterns

5 Qs • 20 min • Pass 70%

Topic 2.25 1 Set

Service-Based & Product Async Output-Tracing Master Drills

5 Qs • 20 min • Pass 70%

Sample Module 2 Practice Preview

Sample Advanced JavaScript and Asynchronous Programming MCQ Questions & Answers

Click “Reveal Answer & Explanation” to check yourself
Q1 • Execution Context and the Call Stack Module 2 Sample

In production Advanced JS & Async, what is the primary backend engineering purpose of 'Execution Context and the Call Stack'?

  • A. Reading multi-frame Node.js stack traces bottom-up and converting deep recursion into iterative loops for large payloads.
  • B. Blocking the single Node.js V8 event-loop thread with synchronous fs/crypto calls on every request.
  • C. Concatenating raw unvalidated req.body fields directly into SQL or MongoDB filter queries.
  • D. Exposing internal stack traces and database connection strings in 500 HTTP responses.
✓ Reveal Answer & Explanation

Correct Answer: Option A

'Execution Context and the Call Stack' is used in production Advanced JS & Async specifically for: Reading multi-frame Node.js stack traces bottom-up and converting deep recursion into iterative loops for large payloads.

Q2 • Execution Context and the Call Stack Module 2 Sample

Which critical production defect MUST a Node.js Backend Engineer avoid when implementing 'Execution Context and the Call Stack'?

  • A. Validating request inputs with strict Zod schemas and enforcing BOLA ownership checks.
  • B. Unbounded recursion on cyclic object graphs crashing the entire Node.js worker process with stack overflow!
  • C. Writing deterministic Vitest/Jest + Supertest integration tests with correlation IDs.
  • D. Monitoring p95/p99 latency, event-loop lag, and database query execution plans.
✓ Reveal Answer & Explanation

Correct Answer: Option B

A high-impact real-world backend failure mode with 'Execution Context and the Call Stack' is: Unbounded recursion on cyclic object graphs crashing the entire Node.js worker process with stack overflow!

Q3 • Execution Context and the Call Stack Module 2 Sample

Which technical scope accurately describes the mechanics of 'Execution Context and the Call Stack'?

  • A. Storing plaintext user passwords and unhashed refresh tokens in database columns.
  • B. Disabling timeouts, retries, rate limiting, and database transaction locks in production.
  • C. Global & Function Execution Contexts (Creation Phase vs Execution Phase), Variable Environment, Lexical Environment, LIFO Call Stack frames, and RangeError: Maximum call stack size exceeded
  • D. Using floating-point IEEE-754 numbers for financial wallet ledger balances.
✓ Reveal Answer & Explanation

Correct Answer: Option C

Core technical coverage of 'Execution Context and the Call Stack' comprises: Global & Function Execution Contexts (Creation Phase vs Execution Phase), Variable Environment, Lexical Environment, LIFO Call Stack frames, and RangeError: Maximum call stack size exceeded.

Q4 • Execution Context and the Call Stack Module 2 Sample

What is the expected hands-on deliverable when completing the practical lab for 'Execution Context and the Call Stack'?

  • A. Committing .env secrets and node_modules directly to the main branch without tests.
  • B. Using unsafe TypeScript any casts everywhere to silence compiler errors.
  • C. Testing only a single manual happy-path request while ignoring concurrency and error cases.
  • D. Diagram the Call Stack frame-by-frame across nested synchronous service calls and trigger/fix a stack overflow.
✓ Reveal Answer & Explanation

Correct Answer: Option D

Practical mastery of 'Execution Context and the Call Stack' is verified through: Diagram the Call Stack frame-by-frame across nested synchronous service calls and trigger/fix a stack overflow.

Q5 • Execution Context and the Call Stack Module 2 Sample

In a Node.js Backend Developer technical interview on 'Execution Context and the Call Stack', what demonstrates senior production readiness?

  • A. Explaining 'Global & Function Execution Contexts (Creation Phase vs Execution Phase), Variable Environment, Lexical Environment, LIFO Call Stack frames, and RangeError: Maximum call stack size exceeded' under the hood, preventing 'Unbound...
  • B. Assuming Express automatically catches unhandled errors in legacy callback timers without middleware.
  • C. Running database ports 5432, 27017, and 6379 open to 0.0.0.0 on the public internet.
  • D. Trusting client-supplied userId or price fields in req.body without server-side verification.
✓ Reveal Answer & Explanation

Correct Answer: Option A

Interviewers evaluate runtime/database depth (Global & Function Execution Contexts (Creation Phase vs Execution Phase), Variable Environment, Lexical Environment, LIFO Call Stack frames, and RangeError: Maximum call stack size exceeded), failure-mode prevention, and architecture trade-offs.

Need structured guidance on Advanced JavaScript and Asynchronous Programming? Review the full NBCP syllabus or practise speaking through Node.js concepts in an AI technical interview.

Backend Development & Distributed Systems

Continue Learning & Explore Related Resources

FAQs — Module 2: Advanced JavaScript and Asynchronous Programming (Node.js) Mock Tests

1. How many MCQ Mock Tests are included in Module 2: Advanced JavaScript and Asynchronous Programming (Node.js)?

Module 2 of Node.js Backend Development Training Course includes 25 active timed MCQ mock test sets (125 verified questions across 25 topics), with server-side scoring, instant scorecards, and detailed explanations after submission.

2. What are the attempt rules and answer-key policies for Advanced JavaScript and Asynchronous Programming mock tests?

You can preview sample questions on this page and launch up to 2 free timed attempts per topic per day without signup (enrolled cohort learners receive unlimited attempts). During a live test, answers auto-save across refreshes and answer keys remain protected on the server until submission.

3. Does scoring high on this Node.js module test guarantee interview selection?

No — module mock scores measure topic-level conceptual accuracy and highlight specific concepts to revise. Pair topic mocks with NBCP Spoken AI Interviews and hands-on coding practice to build well-rounded interview readiness; hiring decisions rest independently with employers.

Learn. Practise. Prove. Get Career-Ready.

Ready to Build Your IT Career?

Explore industry-led programmes and develop practical skills through training, assessments and interview preparation.