Chapter 8 SOLID

Descrição

Quiz for CleanCode Chapter 8
Arpit Garg
Quiz por Arpit Garg, atualizado more than 1 year ago
Arpit Garg
Criado por Arpit Garg mais de 8 anos atrás
62
0

Resumo de Recurso

Questão 1

Questão
What is Software Design Document
Responda
  • UML
  • TestCase
  • Data Flow Diagram
  • SourceCode

Questão 2

Questão
What is the Software Product
Responda
  • Documentation
  • SourceCode of Program
  • Running Executable Program

Questão 3

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

Questão 4

Questão
the tendency of a system to be hard to change is called
Responda
  • Rigidity
  • Fragility
  • Immobility
  • Viscosity

Questão 5

Questão
When small code changes force system rebuilds it indicates
Responda
  • High Coupling
  • Loose Coupling
  • High Cohesion
  • Low Cohesion

Questão 6

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

Questão 7

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

Questão 8

Questão
What forms SOLID principles
Responda
  • 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

Questão 9

Questão
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.
Responda
  • True
  • False

Questão 10

Questão
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.
Responda
  • True
  • False

Questão 11

Questão
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?
Responda
  • 1200
  • 1800
  • 800
  • 1000

Semelhante

Python Quiz
karljmurphy
Angular
Kingsley Bawuah
Java & Programming Quizz
gouber
National 5 - Computing
Ryan Thompson
Resistor Color Codes
That Yeti Dog Person
PSYC406 Final Exam Study Quiz (Ch.8)
Kendra Hewlett
C H A P T E R 8
Kris S
Basic HTML Code
paula10eddy
Pears of Wisdom - Java Programming
Alex Poiry
Codes and Conventions of Film Trailers
Mollie Green