Courses / Machine Coding and Low-Level Design in TypeScript / Chapter 28
Module 11 · Mock interview · Chapter 28 of 28
Mock Interview: Five Timed Design Prompts with Model Answers
Builds on The Machine Coding and LLD Round: Format, Scoring and a Method and Solving a Design Problem: Requirements to Tested Code in Six Steps.
Part 1 · How to run the mock and score it
Five prompts, five time boxes
The mock round is five prompts, each with a time box, a model answer and a short rubric. None of the five is a problem the case chapters solved, so you cannot answer from memory and have to use the method.
Treat each prompt as the real thing. Set a timer for the time box, work alone, and stop when it rings. If a prompt says 90 minutes, that is a machine coding round: you write code, a driver and tests. If it says 45 minutes, it is a low-level design discussion: you produce diagrams and a code sketch, and you talk through your choices. The interview chapter at the start of this course explains the two forms, and the approach chapter gives the six steps to follow in either.
| Prompt | Form | Time box | What it exercises |
|---|---|---|---|
| 1. Expense sharing for a trip | Machine coding | 90 minutes | Money in paise, an algorithm, tests |
| 2. Food delivery orders |