Clean Coder, Session-9. Single Responsibility Principle

Description

Clean Coder, Session-9. Single Responsibility Principle
Arpit Garg
Quiz by Arpit Garg, updated more than 1 year ago
Arpit Garg
Created by Arpit Garg about 9 years ago
50
0

Resource summary

Question 1

Question
What is the secondary value of a software system?
Answer
  • Hardness
  • Behavior
  • Rigidity
  • Softness

Question 2

Question
Which of the following probably would lead to a break in SRP?
Answer
  • Less Fragile
  • Low Coupling
  • Class having too many dependencies.
  • Large number of small modules.

Question 3

Question
Ability of software to tolerate and facilitate on-going change is the:
Answer
  • Primary value of the system
  • Secondary value of the system
  • Not a value to be considered in the system

Question 4

Question
Sustainable profitability is tied to the secondary value of the software system.
Answer
  • True
  • False

Question 5

Question
Responsibilities are tied to
Answer
  • individuals
  • actors

Question 6

Question
Which of these software systems are more profitable in the long run?
Answer
  • Low primary value, high secondary value
  • High primary value and low secondary value
  • Low primary value and low secondary value

Question 7

Question
According to SRP, a class should have only __________ reason to change..
Answer
  • 1
  • 2
  • 3
  • many

Question 8

Question
In a new Engineering Hostels containing 100 rooms. Ankit was hired to paint the numbers 1 to 100 on the doors. How many times will Ankit have to paint the number eight ?
Answer
  • 11
  • 18
  • 19
  • 20
  • 21

Question 9

Question
Which of the values help to determine whether the code follows SRP? To put it simply, SRP is all about __________________. Select all that apply.
Answer
  • Modules
  • Parameters
  • Users
  • Roles
  • Cost
Show full summary Hide full summary

Similar

Physics - Energy, Power & Work
dominique22
Bayonet Charge flashcards
katiehumphrey
Harry Potter Trivia Quiz
Andrea Leyden
A-level Sociology Quiz
Chuck Amobi
Chemical Symbols
Keera
Of Mice and Men - Themes
Hafsa A
GCSE REVISION TIMETABLE
gracemiddleton
GCSE REVISION TIMETABLE
Joana Santos9567
Cell Transport
Elena Cade
FV modules 1-4 infinitives- ENTER SPANISH
Pamela Dentler
OP doplnovaci otazky II.
Helen Phamova