Modularity Principles - Software Design Question and Answers

1.

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

2.

What is the Aesthetic principle among the following?

   A.) High quality programs can be constructed from self contained, understandable parts or modules
   B.) A design will be more or less easy to be build
   C.) Beauty is one of the important factor to be acknowledged as design principle
   D.) None of the mentioned

Answer: Option 'C'

Beauty is one of the important factor to be acknowledged as design principle
 

3.

Which of these distinctions of modular programs over non modular are true?

   A.) They are not that easier to understand and explain
   B.) They are not easier to document
   C.) They are easier to change
   D.) Testing and Debugging is complex comparatively

Answer: Option 'C'

They are easier to change

4.

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

5.

What does Coupling mean?

   A.) Coupling is the degree of connection between pair of module
   B.) Coupling is the degree to which a module’s part are related to one another
   C.) All of the mentioned
   D.) None of the mentioned

Answer: Option 'A'

Coupling is the degree of connection between pair of module

6.

Which of the following is true?

   A.) Module coupling should be maximized
   B.) Module cohesion should be minimized
   C.) Modules should not have access to unneeded resources
   D.) Design with small modules are not better

Answer: Option 'C'

Modules should not have access to unneeded resources
 

7.

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

8.

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
 

9.

Which of these is correct with context to coupling?

   A.) Failure to hide information leads to loose coupling and cannot be avoided
   B.) Modules that communicate using special data types and structures are less tightly coupled than modules with simple values
   C.) When modules communicate only through public module interface, their coupling strength is proportional to the number of messages and number of data passed in between
   D.) All of the mentioned

Answer: Option 'C'

When modules communicate only through public module interface, their coupling strength is proportional to the number of messages and number of data passed in between
 

10.

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