{"id":"6b0857af5a2625e44ecaad13","slug":"design-patterns-basics-quiz","title":"Design patterns – basics","summary":"Six questions about classic GoF patterns: groups, intent and differences.","servedLang":"en","availableLangs":["pl","en"],"kind":"quiz","category":null,"status":"published","difficulty":"easy","topics":["builder","adapter","strategy","decorator","composite","facade","observer"],"techs":["general"],"tags":["quiz","gof","basics"],"languages":[],"questionCount":6,"xp":10,"stats":{"attempts":1,"solves":1,"solutions":0,"comments":0},"solveRate":100,"publishedAt":"2026-11-26T16:00:47.960Z","requestedLang":"en","statement":{"type":"doc","content":[{"type":"paragraph","content":[{"type":"text","text":"Check that you recognize the most common patterns. Passing score "},{"type":"text","text":"80%","marks":[{"type":"bold"}]},{"type":"text","text":" (5 of 6). XP is awarded for the first attempt – after every attempt you see the answers with explanations."}]}]},"hints":[],"hintsCount":1,"quiz":[{"index":0,"question":"Which group does Builder belong to?","options":["Creational","Structural","Behavioral"],"multiple":false},{"index":1,"question":"Which pattern lets classes with incompatible interfaces work together?","options":["Facade","Adapter","Proxy","Bridge"],"multiple":false},{"index":2,"question":"Which pattern defines a family of interchangeable algorithms?","options":["Template Method","State","Strategy","Command"],"multiple":false},{"index":3,"question":"Which of these patterns are structural? (select all)","options":["Decorator","Composite","Observer","Facade"],"multiple":true},{"index":4,"question":"What does the subject in the Observer pattern notify observers about?","options":["Changes of its state","Creation of a new class instance","Compilation errors"],"multiple":false},{"index":5,"question":"What does a Facade provide?","options":["A single instance of a class for the whole application","A simplified interface to a complex subsystem","A copy of an existing object","An undo queue of operations"],"multiple":false}],"solutionNotes":null,"unlocked":false,"external":[],"articles":[{"id":"6b093dc091bd8fbaf2a0c8b2","slug":"specification","title":"Specification: business rules as objects you can combine"},{"id":"6b08bd3e80884893657cca1a","slug":"strategy","title":"Strategy: interchangeable algorithms instead of an if-else ladder"},{"id":"6b08bd3d80884893657cca05","slug":"singleton","title":"Singleton – one instance, and the reasons to hand it to a DI container"},{"id":"6b08bd3d80884893657cc9fb","slug":"proxy","title":"Proxy – a stand-in that controls access to the real object"},{"id":"6b08bd3c80884893657cc9dd","slug":"observer","title":"Observer: notify everyone without knowing anyone"},{"id":"6b08bd3480884893657cc96a","slug":"flyweight","title":"Flyweight – how to fit 60,000 stadium seats in memory"}],"topicsInfo":[{"slug":"builder","title":"Builder","group":"creational","icon":"hammer"},{"slug":"adapter","title":"Adapter","group":"structural","icon":"plug"},{"slug":"strategy","title":"Strategy","group":"behavioral","icon":"route"},{"slug":"decorator","title":"Decorator","group":"structural","icon":"layers"},{"slug":"composite","title":"Composite","group":"structural","icon":"network"},{"slug":"facade","title":"Facade","group":"structural","icon":"building"},{"slug":"observer","title":"Observer","group":"behavioral","icon":"eye"}],"author":{"id":"6b0857a15a2625e44ecaabec","name":"Anna Autorka","avatar":"/api/files/6b0857ec5a2625e44ecab0c6","handle":"anna-autorka","community":true},"capabilities":{"judge0":false,"aiReview":false},"createdAt":"2026-11-26T16:00:47.964Z","updatedAt":"2026-11-26T16:01:49.860Z"}