Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Chapter: 134
Q1921:
Fill in the blank: The goal of the object-oriented paradigm is to identify the ________ in the system and understand how they interact.
A. Functions
B. Objects
C. Processes
D. Variables
Correct Answer:
B
Chapter: 134
Q1922:
Fill in the blank: In the structure chart of the tennis game example, the function ________ is responsible for updating the score.
A. Serve
B. ComputePath
C. Return
D. UpdateScore
Correct Answer:
D
Chapter: 134
Q1923:
Fill in the blank: The imperative paradigm focuses on ________ that must be performed and designing modules accordingly.
A. Tasks
B. Objects
C. Interactions
D. Processes
Correct Answer:
A
Chapter: 134
Q1924:
Fill in the blank: The structure chart indicates that the function ________ calls on the services of Serve, Return, ComputePath, and UpdateScore.
A. ControlGame
B. Serve
C. ComputePath
D. Return
Correct Answer:
A
Chapter: 135
Q1925:
What is the main goal when designing a modular system?
A. Maximize linkage between modules
B. Minimize the size of each module
C. Maximize independence among modules
D. Increase the complexity of the modules
Correct Answer:
C
Chapter: 135
Q1926:
What does intermodule coupling refer to?
A. The interaction between modules
B. The time it takes to execute a module
C. The memory usage of a module
D. The internal complexity of a module
Correct Answer:
A
Chapter: 135
Q1927:
What type of coupling occurs when a module passes control of execution to another module?
A. Data coupling
B. Control coupling
C. Procedural coupling
D. Temporal coupling
Correct Answer:
B
Chapter: 135
Q1928:
Which form of coupling involves sharing data between modules?
A. Control coupling
B. Integration coupling
C. Data coupling
D. Behavioral coupling
Correct Answer:
C
Chapter: 135
Q1929:
In the context of modular systems, what does data coupling involve?
A. Passing control from one module to another
B. Sharing data between modules explicitly via parameters
C. Sharing data between modules implicitly via global data
D. None of the above
Correct Answer:
B
Chapter: 135
Q1930:
Which type of coupling is represented by an arrow between functions in a structure chart?
A. Control coupling
B. Data coupling
C. External coupling
D. Internal coupling
Correct Answer:
B
Chapter: 135
Q1931:
How does the object-oriented paradigm help reduce data coupling between objects?
A. By passing data explicitly between objects
B. By using global data accessible to all objects
C. By including all methods that manipulate an object’s internal data within the object itself
D. By sharing data among all objects implicitly
Correct Answer:
C
Chapter: 135
Q1932:
What is the main disadvantage of using global data in a modular system?
A. It makes modules more independent
B. It makes modifying modules easier
C. It can make it difficult to identify how a module interacts with others
D. It reduces the complexity of the software
Correct Answer:
C
Chapter: 135
Q1933:
Fill in the blank: Control coupling occurs when a module passes ________ to another module.
A. Data
B. Control
C. Instructions
D. Parameters
Correct Answer:
B
Chapter: 135
Q1934:
Fill in the blank: Data coupling between functions can occur by explicitly passing data ________.
A. Through global variables
B. Through local variables
C. As parameters
D. Indirectly
Correct Answer:
C
Chapter: 135
Q1935:
Fill in the blank: In object-oriented design, the object PlayerA contains information and ________ that require that information.
A. Variables
B. Functions
C. Constants
D. Methods
Correct Answer:
D
Chapter: 135
Q1936:
Fill in the blank: Global data are data items that are automatically available to ________ throughout the system.
A. Specific modules
B. All modules
C. Only local modules
D. Private methods
Correct Answer:
B
Chapter: 135
Q1937:
Fill in the blank: Data coupling in an object-oriented design is minimized because methods within an object ________ the object’s internal data.
A. Share
B. Ignore
C. Manipulate
D. Discard
Correct Answer:
C
Chapter: 136
Q1938:
What does cohesion refer to in software engineering?
A. The degree of relatedness of a module’s internal parts
B. The degree of dependency between different modules
C. The degree of complexity in a module
D. The extent of code duplication within a module
Correct Answer:
A
Chapter: 136
Q1939:
Which form of cohesion involves internal elements performing activities logically similar in nature?
A. Logical cohesion
B. Functional cohesion
C. Temporal cohesion
D. Procedural cohesion
Correct Answer:
A
Chapter: 136
Q1940:
What is a stronger form of cohesion where all parts of the module are focused on a single activity?
A. Logical cohesion
B. Functional cohesion
C. Sequential cohesion
D. Communicational cohesion
Correct Answer:
B