Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1941: In an imperative design, how can functional cohesion be increased?
- A: By combining all tasks into one module
- B: By isolating subtasks in other modules
- C: By minimizing the number of modules
- D: By including more activities in each module
View Answer
B
Q1942: In object-oriented designs, what is typically the level of cohesion of entire objects?
- A: Logical cohesion
- B: Functional cohesion
- C: Sequential cohesion
- D: Communicational cohesion
View Answer
A
Q1943: How should individual methods within an object be designed to achieve high cohesion?
- A: By performing multiple loosely related tasks
- B: By performing only one functionally cohesive task
- C: By combining different methods into a single task
- D: By focusing on general tasks rather than specific ones
View Answer
B
Q1944: What example is used to illustrate functional cohesion in the module?
- A: A tennis simulation with the ControlGame module using other modules as abstract tools
- B: A weather forecasting system with various unrelated modules
- C: A database management system with loosely related functionalities
- D: A user interface module with multiple unrelated activities
View Answer
A
Q1945: What is the purpose of achieving high cohesion within a module?
- A: To simplify the process of making changes and improve the manageability of the module
- B: To increase the number of activities within a module
- C: To enhance the interaction between different modules
- D: To make the module less dependent on external factors
View Answer
A
Q1946: Fill in the blank: Logical cohesion involves internal elements performing activities that are ________.
- A: Unrelated
- B: Logically similar in nature
- C: Physically connected
- D: Functionally distinct
View Answer
B
Q1947: Fill in the blank: Functional cohesion means that all parts of a module are focused on the performance of a ________.
- A: Single activity
- B: Set of activities
- C: Group of loosely related tasks
- D: Variety of functions
View Answer
A
Q1948: Fill in the blank: In object-oriented designs, methods within an object should be ________ cohesive to perform a single task efficiently.
- A: Functionally
- B: Logically
- C: Sequential
- D: Communicational
View Answer
A
Q1949: Fill in the blank: The ControlGame module in the tennis simulation example demonstrates ________ cohesion by using other modules as abstract tools.
- A: Logical
- B: Functional
- C: Sequential
- D: Communicational
View Answer
B
Q1950: What is the primary goal of information hiding in software design?
- A: To restrict information to specific portions of the system
- B: To increase the interdependency between modules
- C: To make internal data easily accessible to other modules
- D: To enhance the visibility of internal module structure
View Answer
A