Post-Test Creational Design Pattern

Quiz
•
Computers
•
University
•
Medium
Asfiolitha Wilmarani
Used 11+ times
FREE Resource
10 questions
Show all answers
1.
MULTIPLE SELECT QUESTION
30 sec • 1 pt
Singleton is appropriate when:
You need a single instance of a class
You need to choose what type of object to create
You need to access an object anywhere in the program
You need to use an object without knowing its subclass
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
This provides an interface for creating objects in a superclass but allows subclasses to alter the type of object that will be created.
Singleton Pattern
Factory Method Pattern
Prototype Pattern
Abstract Factory Pattern
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
When you want to create concrete products without having many conditionals in the code, you can use:
Singleton
Builder
Factory Method
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A Singleton is used when you want to guarantee one instance:
true
false
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The SOLID principles of object-oriented design are applied to software development projects to make software easier to change when requirements changes.
True
False
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following best describes a creational design pattern?
A pattern that describes how objects communicate with each other
A pattern that describes how to store and retrieve objects from a database
A pattern that describes how to create objects
A pattern that describes how to modify objects
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of these design principles does the factory method pattern follow?
The Open-Closed Principle (OCP)
The Single Responsibility Principle (SRP)
The Dependency Inversion Principle (DIP)
The Liskov Substitution Principle (LSP)
Create a free account and access millions of resources
Similar Resources on Wayground
10 questions
SPRING INTRODUCTION

Quiz
•
University
10 questions
AdvancedProgramming_intro

Quiz
•
University
13 questions
Google Slides Review (4th)

Quiz
•
4th Grade - University
15 questions
Principles of 3D Animation Quiz 1

Quiz
•
University
10 questions
Session 1

Quiz
•
University
15 questions
GENERAL QUESTIONS

Quiz
•
University
9 questions
Scratch Vocabulary

Quiz
•
3rd Grade - University
10 questions
Preguntas sobre API REST y Angular

Quiz
•
University
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
21 questions
Spanish-Speaking Countries

Quiz
•
6th Grade - University
20 questions
Levels of Measurements

Quiz
•
11th Grade - University
7 questions
Common and Proper Nouns

Interactive video
•
4th Grade - University
12 questions
Los numeros en español.

Lesson
•
6th Grade - University
7 questions
PC: Unit 1 Quiz Review

Quiz
•
11th Grade - University
7 questions
Supporting the Main Idea –Informational

Interactive video
•
4th Grade - University
12 questions
Hurricane or Tornado

Quiz
•
3rd Grade - University
7 questions
Enzymes (Updated)

Interactive video
•
11th Grade - University