Arpit Garg
Quiz by , created more than 1 year ago

Clean Coder, Session-9. Single Responsibility Principle

50
0
0
Arpit Garg
Created by Arpit Garg over 8 years ago
Close

Clean Coder, Session-9. Single Responsibility Principle

Question 1 of 9

1

What is the secondary value of a software system?

Select one of the following:

  • Hardness

  • Behavior

  • Rigidity

  • Softness

Explanation

Question 2 of 9

1

Which of the following probably would lead to a break in SRP?

Select one of the following:

  • Less Fragile

  • Low Coupling

  • Class having too many dependencies.

  • Large number of small modules.

Explanation

Question 3 of 9

1

Ability of software to tolerate and facilitate on-going change is the:

Select one of the following:

  • Primary value of the system

  • Secondary value of the system

  • Not a value to be considered in the system

Explanation

Question 4 of 9

1

Sustainable profitability is tied to the secondary value of the software system.

Select one of the following:

  • True
  • False

Explanation

Question 5 of 9

1

Responsibilities are tied to

Select one of the following:

  • individuals

  • actors

Explanation

Question 6 of 9

1

Which of these software systems are more profitable in the long run?

Select one of the following:

  • Low primary value, high secondary value

  • High primary value and low secondary value

  • Low primary value and low secondary value

Explanation

Question 7 of 9

1

According to SRP, a class should have only __________ reason to change..

Select one of the following:

  • 1

  • 2

  • 3

  • many

Explanation

Question 8 of 9

1

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 ?

Select one of the following:

  • 11

  • 18

  • 19

  • 20

  • 21

Explanation

Question 9 of 9

1

Which of the values help to determine whether the code follows SRP?
To put it simply, SRP is all about __________________. Select all that apply.

Select one or more of the following:

  • Modules

  • Parameters

  • Users

  • Roles

  • Cost

Explanation