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

Mind Maps Essay Template
linda_riches
The Geography Of Earthquakes
eimearkelly3
Biology Unit 2 - DNA, meiosis, mitosis, cell cycle
DauntlessAlpha
AQA Biology B1 Questions
Bella Statham
B3, C3, P3
George Moores
Rights and Responsibilities Flashcards - Edexcel GCSE Religious Studies Unit 8
nicolalennon12
AQA GCSE Chemistry Unit 2
Gabi Germain
GCSE REVISION TIMETABLE
holbbox
GCSE REVISION TIMETABLE
Sonia Christopher
3.1 Keywords - Marketing
Mr_Lambert_Hungerhil
NSI Course
Yuvraj Sunar