Skip to main content

Introduction to Computing MCQs with Answers

Practice important Introduction to Computing MCQs with answers and explanations.

Chapter: 136
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
Correct Answer: B
Chapter: 136
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
Correct Answer: A
Chapter: 136
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
Correct Answer: B
Chapter: 136
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
Correct Answer: A
Chapter: 136
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
Correct Answer: A
Chapter: 136
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
Correct Answer: B
Chapter: 136
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
Correct Answer: A
Chapter: 136
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
Correct Answer: A
Chapter: 136
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
Correct Answer: B
Chapter: 137
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
Correct Answer: A
Chapter: 137
Q1951:
Which of the following is NOT an example of information hiding?
A. Using local variables
B. Minimizing coupling
C. Using global variables
D. Applying encapsulation
Correct Answer: C
Chapter: 137
Q1952:
What can be compromised if a module does not restrict access to its internal data?
A. The validity of the module
B. The performance of the system
C. The usability of the module
D. The development speed of the software
Correct Answer: A
Chapter: 137
Q1953:
What are the two incarnations of information hiding?
A. Design goal and implementation goal
B. Internal goal and external goal
C. Functional goal and structural goal
D. Design goal and user goal
Correct Answer: A
Chapter: 137
Q1954:
What design practice helps to ensure that other modules do not need access to a module's internal information?
A. Maximizing cohesion
B. Minimizing coupling
C. Using global variables
D. Applying encapsulation
Correct Answer: A
Chapter: 137
Q1955:
Which practice involves using local variables and encapsulation to reinforce module boundaries?
A. Implementation goal
B. Design goal
C. External goal
D. Structural goal
Correct Answer: A
Chapter: 137
Q1956:
In the context of information hiding, what does the concept of an abstract tool represent?
A. A "black box" whose internal features can be ignored by its user
B. A tool that requires detailed knowledge of its internal workings
C. A module that exposes all its internal data to users
D. A complex system that does not need any encapsulation
Correct Answer: A
Chapter: 137
Q1957:
Fill in the blank: Information hiding aims to prevent other modules from having unnecessary ________ on a module.
A. Dependencies
B. Interactions
C. Knowledge
D. Access
Correct Answer: A
Chapter: 137
Q1958:
Fill in the blank: To ensure a module’s boundaries are reinforced, it is important to use ________ variables and apply encapsulation.
A. Global
B. Local
C. Static
D. Dynamic
Correct Answer: B
Chapter: 137
Q1959:
Fill in the blank: The concept of an abstract tool is similar to information hiding because both protect users from ________ and protect their interiors from intrusion.
A. Complexity
B. Errors
C. Internal details
D. Unintended access
Correct Answer: C
Chapter: 137
Q1960:
Fill in the blank: When a module’s internal structure is altered, it may cause ________ in modules designed to take advantage of that structure.
A. Errors
B. Performance issues
C. Optimizations
D. Redundancy
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Introduction to Computing

🚀 Start Quiz Now