# Chapter 8 SOLID

Quiz by Arpit Garg, updated more than 1 year ago
 Created by Arpit Garg over 5 years ago
44
0

### Description

Quiz for CleanCode Chapter 8

## Resource summary

### Question 1

Question
What is Software Design Document
• UML
• TestCase
• Data Flow Diagram
• SourceCode

### Question 2

Question
What is the Software Product
• Documentation
• SourceCode of Program
• Running Executable Program

### Question 3

Question
"A design that works, but can’t be maintained. Something that is unstable, and hard to change." is sometimes called
• Big Bang Theory
• Big Bucket
• Black Hole
• Big Ball of Mud

### Question 4

Question
the tendency of a system to be hard to change is called
• Rigidity
• Fragility
• Immobility
• Viscosity

### Question 5

Question
When small code changes force system rebuilds it indicates
• High Coupling
• Loose Coupling
• High Cohesion
• Low Cohesion

### Question 6

Question
When a small change in one module causes other unrelated modules to misbehave, its called
• Rigidity
• Fragility
• Immobility
• Viscosity

### Question 7

Question
When a system's internal components cannot be easily extracted and reused in novel new environments, its called
• Rigidity
• Fragility
• Immobility
• Viscosity

### Question 8

Question
What forms SOLID principles
• the Single Responsibility Principle
• the Open-Closed Principle
• the Liskov Substitution Principle
• the Interface Segregation Principle
• the Dependency Inversion Principle
• the Reuse Release Equivalency Principle
• the Common Closure Principle
• the Common Reuse Principle
• the Acyclic Dependencies Principle
• the Stable Dependencies Principle

### Question 9

Question
Thus the sender does not depend upon the recipient. Nor does the recipient depend upon the sender. They both depend upon the message; and the message is an abstraction. The dependency opposes the Flow of control. This is the essence of OO.
• True
• False

### Question 10

Question
The essential quality of OO is the ability to invert key dependencies in order to protect high level policies from low level details. It helps in Dependency Management.
• True
• False

### Question 11

Question
A very simple but confusing puzzle. A lady buys goods worth Rs.200 from a shop. (shopkeeper is selling the goods with zero profit). The lady gives him Rs.1000 note. The shopkeeper gets the change from the next shop and keeps Rs.200 for himself and returns Rs.800 to the lady. Later the shopkeeper of the next shop comes with the Rs.1000 note saying “duplicate” and takes his money back. What is the loss of first shopkeeper?
• 1200
• 1800
• 800
• 1000

### Similar

Python Quiz
Angular
Java & Programming Quizz
National 5 - Computing
PSYC406 Final Exam Study Quiz (Ch.8)
C H A P T E R 8
House Chores
Pears of Wisdom - Java Programming
Codes and Conventions of Film Trailers
AG History, Chapter 9
Test Yourself, Chapter 8