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

Macbeth Quiz
PatrickNoonan
Mathematics Overview
PatrickNoonan
10 Study Techniques
PatrickNoonan
OCR GCSE Latin Vocab flash cards - all
jess99
Characters in Lord of the Flies
lowri_luxton
GCSE Chemistry C2 topic notes
imogen.shiels
Mapas mentales con ExamTime
julii.perci
English Language Techniques
lewis001
Maths GCSE - What to revise!
livvy_hurrell
Chemistry (C3)
Amy Lashkari
Romeo & Juliet Quotes
Lucy Hodgson