Skip to the guide

Practice: Modelling patterns

MixedPractice3 pages

Here are eight questions on the moves LLD prompts keep repeating: lifecycles, allocation, prices, money and time, storing and searching data, events, games, and undo. Each question gives you a small system and asks which move fits, with numbers. Each one also asks where the move is too much, and a reasoned "not here" is often the strongest answer. The last question puts several moves together on a small design.

How to use this page. Set a timer for each question, and answer out loud or on paper before opening anything. Open a hint only if you have been stuck for more than a minute. When you are done, open Check your answer, read the worked answer and the list of what a strong answer covers, and compare them with yours. If yours missed most of it, reread the guide the question practises and try again in a day or two. Where an answer counts wiring, it counts the lines a new class adds to Main, plus an import line in JavaScript and Python.