Skip to main content

Software Engineering-I MCQs with Answers

Practice important Software Engineering-I MCQs with answers and explanations.

Chapter: 12
Q241:
What is the advantage of using abstraction in programming?
A. It makes code more complex
B. It allows users to understand only the implementation details
C. It helps manage complexity by focusing on essential characteristics
D. It prevents code reuse
Correct Answer: C
Chapter: 12
Q242:
What is the main focus of object-oriented design compared to function-oriented design?
A. Functions only
B. Data only
C. Decentralized control
D. Functions and data together
Correct Answer: D
Chapter: 12
Q243:
In the selection sort function, what does the auxiliary function `swap` do?
A. Finds the minimum value
B. Swaps two values
C. Calculates the sum of an array
D. Sorts the array
Correct Answer: B
Chapter: 12
Q244:
How does encapsulation facilitate maintenance in software systems?
A. It keeps all data visible
B. It hides data from all functions
C. It allows changes to be localized
D. It centralizes function calls
Correct Answer: C
Chapter: 12
Q245:
What happens if the implementation of a class changes in a loosely coupled system?
A. No changes needed in dependent functions
B. Dependent functions need rewriting
C. All modules need modification
D. No impact on performance
Correct Answer: A
Chapter: 12
Q246:
What defines a cohesive class in object-oriented programming?
A. Has many unrelated functions
B. Contains many methods that use most data members
C. Has public data members
D. Contains no data members
Correct Answer: B
Chapter: 12
Q247:
What does the 'order' class example demonstrate?
A. Strong cohesion with unrelated methods
B. Weak cohesion due to mixed responsibilities
C. Cohesion is irrelevant in design
D. Encapsulation of data and functions
Correct Answer: B
Chapter: 12
Q248:
What is a significant disadvantage of high coupling between software components?
A. Easy maintenance and updates
B. High performance degradation
C. Complexity in identifying affected components
D. Reduced logical relationships among components
Correct Answer: C
Chapter: 12
Q249:
Which approach emphasizes the encapsulation of data and related functions?
A. Action-oriented design
B. Object-oriented design
C. Procedural design
D. Function-based design
Correct Answer: B
Chapter: 13
Q250:
What does object-oriented technology primarily help to bridge?
A. Functionality and performance
B. Real-life objects and software processes
C. Static and dynamic information
D. Database design and structure
Correct Answer: B
Chapter: 13
Q251:
The primary unit of object-oriented design is an _______.
A. object
B. function
C. process
D. method
Correct Answer: A
Chapter: 13
Q252:
Object-oriented design emphasizes the relationship between which two components?
A. Data and functions
B. Classes and instances
C. Objects and messages
D. Structures and behaviors
Correct Answer: A
Chapter: 13
Q253:
What is a key advantage of object-oriented technology?
A. Code reusability through low inter-dependence among objects
B. High interdependence among modules
C. Static behavior of functions
D. Complex data management
Correct Answer: A
Chapter: 13
Q254:
In an object-oriented approach, changes to data structures are _______ compared to action-oriented approaches.
A. easy
B. difficult
C. irrelevant
D. mandatory
Correct Answer: B
Chapter: 13
Q255:
What defines a subclass in object-oriented design?
A. A class that shares behavior and structure from another class
B. A function that executes a specific task
C. A method that alters data properties
D. A variable that stores object state
Correct Answer: A
Chapter: 13
Q256:
Which of the following best describes encapsulation in object-oriented design?
A. Hiding the internal state and behavior of an object
B. Separating functions from data
C. Combining different classes
D. Reducing code complexity
Correct Answer: A
Chapter: 13
Q257:
Inheritance in object-oriented design specifies a _______ relationship among classes.
A. has-a
B. kind of
C. part of
D. uses
Correct Answer: B
Chapter: 13
Q258:
What does abstraction focus on in object-oriented design?
A. The internal behavior of an object
B. The implementation details of a system
C. The external behavior of an object and its interface
D. The physical properties of an object
Correct Answer: C
Chapter: 13
Q259:
What does aggregation imply about the relationship between two objects?
A. They are loosely connected
B. They are tightly coupled and dependent on each other
C. They can exist independently
D. They have a "kind of" relationship
Correct Answer: B
Chapter: 13
Q260:
The life span of objects in an aggregation relationship is _______ to each other.
A. independent
B. dependent
C. interdependent
D. temporary
Correct Answer: A

Test Your Knowledge

Take a timed quiz on Software Engineering-I

🚀 Start Quiz Now