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 over 8 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

Tir na nOg - Treithe an bhealoidis
08aliso.burge
Dr Jekyll and Mr Hyde
Rosie:)
20 Study Hacks To Improve Your Memory
jen.sch.ca
AQA - English Language Unit 1
Alice Love
Ma Famille
caitlindavies8
| GCSE Busniness Studies | AQA | Key Terms | "Starting A Business" |
Spuddylicious
AQA Biology 12.1 cellular organisation
Charlotte Hewson
Mind Maps with GoConqr
Elysa Din
Black Civil Rights in the 1950s
c7jeremy
Study timetables importance
elena navarro
Arrested by Police - 1976 Bail Act (Section 3 & 4)
Mark Hughes