Modularity Principles - Software Design Question and Answers

1.

Which of the following information should be kept hidden?

   A.) Internal data representation such as data types and structures
   B.) Volatile design decisions such as size, capacities, waiting time etc
   C.) Names, parameters, return types of operations provided by module
   D.) Internal data representation and volatile design decisions should be kept hidden

Answer: Option 'D'

Internal data representation and volatile design decisions should be kept hidden

2.

Which of these comes under the Modularity principle?

   A.) Small modules
   B.) Coupling
   C.) Cohesion
   D.) All of the mentioned

Answer: Option 'D'

All of the mentioned

3.

Which of the following violates principle of least privilege?

   A.) Modules that import packages
   B.) Modules with unneeded access to files
   C.) Classes with reference to Objects
   D.) All of the mentioned

Answer: Option 'D'

All of the mentioned
 

4.

Which of the following fall under constructive design principles?

   A.) Modularity principles
   B.) Implementary principles
   C.) Aesthetic principles
   D.) All of the mentioned

Answer: Option 'D'

All of the mentioned

5.

Which of these is correct with the context of cohesion?

   A.) Cohesion is least in modules that have a single clear, logically independent responsibility or role
   B.) Cohesion can not be achieved by forming modules that implement data types
   C.) One way to increase cohesion is to build a module hierarchy reflecting the level of abstraction in a program
   D.) All of the mentioned

Answer: Option 'C'

One way to increase cohesion is to build a module hierarchy reflecting the level of abstraction in a program

Modularity Principles MCQs Download Pdf

Recent Posts