Introduction to Computing MCQs with Answers
Practice important Introduction to Computing MCQs with answers and explanations.
Multiple Choice Questions
Q1911: What is the main goal of modularity in software engineering?
- A: To simplify the code by reducing its size
- B: To divide software into manageable units
- C: To increase the complexity of the program
- D: To ensure that all code is written in one place
View Answer
B
Q1912: In the imperative paradigm, what is a common form of a module?
- A: Objects
- B: Functions
- C: Classes
- D: Attributes
View Answer
B
Q1913: In the object-oriented paradigm, what is used as the basic modular constituent?
- A: Functions
- B: Variables
- C: Objects
- D: Procedures
View Answer
C
Q1914: Which of the following best describes the imperative paradigm approach to modularity?
- A: Representing the overall task as individual objects
- B: Identifying actions and creating functions for them
- C: Dividing the software into classes and methods
- D: Understanding interactions between objects
View Answer
B
Q1915: In a simple modular program to simulate a tennis game, which function might compute the initial speed and direction of the ball in the imperative paradigm?
- A: Serve
- B: ComputePath
- C: Return
- D: UpdateScore
View Answer
A
Q1916: Which function in the tennis game simulation example is responsible for computing the ball's new speed and direction after a return?
- A: Serve
- B: ComputePath
- C: Return
- D: UpdateScore
View Answer
C
Q1917: What does the structure chart for the tennis game simulation primarily depict?
- A: The order of function calls and their dependencies
- B: The specific code for each function
- C: The data types used in the functions
- D: The user interface design of the game
View Answer
A
Q1918: In the tennis game simulation, which function is responsible for overseeing the entire game according to the structure chart?
- A: Serve
- B: ComputePath
- C: Return
- D: ControlGame
View Answer
D
Q1919: What does the structure chart in the tennis game example not indicate?
- A: The specific code for each function
- B: The dependencies among functions
- C: The modules and their roles
- D: The overall design of the game
View Answer
A
Q1920: Fill in the blank: In the imperative paradigm, modules often appear as ________.
- A: Classes
- B: Functions
- C: Objects
- D: Variables
View Answer
B