
ESS Exercise 6
Quiz
•
Information Technology (IT)
•
University
•
Practice Problem
•
Medium
An My B
Used 2+ times
FREE Resource
Enhance your content in a minute
11 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Single-Responsibility Principle (SRP) state?
Handle multiple tasks at once
Be reusable in different projects
Have only one reason to change
Be open for modification
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following violates SRP?
A class that handles user authentication
A class that manages database connections
A class that performs unit tests
A class that handles both user authentication and database management
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Open/Closed Principle (OCP) state?
Be closed for extension but open for modification
Be open for extension but closed for modification
Have multiple reasons to change
Handle concrete implementations directly
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which design pattern often supports the OCP?
Singleton
Factory
Observer
Strategy
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is an example of violating the Open/Closed Principle?
Adding new if-else blocks to handle additional types
Extending a class without changing the original
Using interfaces for all dependencies
Using a for-loop to iterate over a list of objects
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does the Liskov Substitution Principle (LSP) state?
Subtypes should add additional functionality to the base class.
Subtypes should reduce the behavior of the base class.
Subtypes must completely override the base class.
Subtypes must be substitutable for their base types.
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What would violate the Liskov Substitution Principle?
A subclass that changes the behavior expected by the base class
A subclass that does not use inheritance
A subclass that implements an abstract method
A subclass that implements an abstract method
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
10 questions
GDPR and Advertising Standards Quiz
Quiz
•
University
15 questions
Mobile Programming - POCC
Quiz
•
University
15 questions
Adding Interactive Elements in HTML
Quiz
•
12th Grade - University
15 questions
Exploring Software Development and UX
Quiz
•
University
12 questions
Revisão N2
Quiz
•
University
16 questions
Linguagem de Programação II
Quiz
•
University
10 questions
Quiz sobre Pontos de Função
Quiz
•
University
10 questions
Data Visualization with Qlik Cloud
Quiz
•
University
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Information Technology (IT)
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
20 questions
christmas songs
Quiz
•
KG - University
20 questions
Holiday Trivia
Quiz
•
9th Grade - University
15 questions
Holiday Movies
Quiz
•
University
14 questions
Christmas Trivia
Quiz
•
3rd Grade - University
20 questions
Christmas Trivia
Quiz
•
University
8 questions
5th, Unit 4, Lesson 8
Lesson
•
KG - Professional Dev...
20 questions
Disney Trivia
Quiz
•
University
