Quiz
Chapter 8 SOLID
Questions in this quiz (11)
1What is Software Design Document
- AUML
- BTestCase
- CData Flow Diagram
- DSourceCode
2What is the Software Product
- ADocumentation
- BSourceCode of Program
- CRunning Executable Program
3"A design that works, but can’t be maintained. Something that is unstable, and hard to change." is sometimes called
- ABig Bang Theory
- BBig Bucket
- CBlack Hole
- DBig Ball of Mud
4the tendency of a system to be hard to change is called
- ARigidity
- BFragility
- CImmobility
- DViscosity
5When small code changes force system rebuilds it indicates
- AHigh Coupling
- BLoose Coupling
- CHigh Cohesion
- DLow Cohesion
6When a small change in one module causes other unrelated modules to misbehave, its called
- ARigidity
- BFragility
- CImmobility
- DViscosity
7When a system's internal components cannot be easily extracted and reused in novel new environments, its called
- ARigidity
- BFragility
- CImmobility
- DViscosity
8What forms SOLID principles
- Athe Single Responsibility Principle
- Bthe Open-Closed Principle
- Cthe Liskov Substitution Principle
- Dthe Interface Segregation Principle
- Ethe Dependency Inversion Principle
- Fthe Reuse Release Equivalency Principle
- Gthe Common Closure Principle
- Hthe Common Reuse Principle
- Ithe Acyclic Dependencies Principle
- Jthe Stable Dependencies Principle
9Thus 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.
- ATrue
- BFalse
10The 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.
- ATrue
- BFalse
11A 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?- A1200
- B1800
- C800
- D1000
Information
- Description
- Quiz for CleanCode Chapter 8
- Author
- Arpit Garg
- Language
- English
- Views
- 102
- Tags
- Rating
- No ratings yet Rate this quiz