Lecture 34 Quiz: Design Patterns — Factory & Strategy

Note

Review before quiz: Lectures | Week 11 Content | Lab 8

Lecture 34 Self-Check

Question 1: The Factory pattern belongs to which Gang of Four category?
Select an item
Question 2: What is the core intent of the Factory pattern?
Select an item
Question 3: The Strategy pattern belongs to which Gang of Four category?
Select an item
Question 4: How do Spring's core features map to the Factory and Strategy patterns?
Select an item
Question 5: A Sorter class holds a reference to a SortStrategy interface and delegates sort() to it — QuickSort and MergeSort are interchangeable implementations. Which pattern is this?
Select an item