1. Which of the following best describes a "use case" in software development?
A. A list of all software bugs
B. A model describing the interaction between the user and the system
C. A type of software testing
D. A part of the coding process
Answer: B) A model describing the interaction between the user and the system
Rationale: A use case is a detailed description of how a user interacts with a system
to achieve a specific goal.
2. Which of the following is a feature of functional programming?
A. Emphasizes functions as the primary building blocks
B. Focuses on manipulating objects
C. Requires explicit memory management
D. Uses only class-based structures
Answer: A) Emphasizes functions as the primary building blocks
,Rationale: Functional programming focuses on using functions to process data,
avoiding side effects and mutable state.
3. What is the primary advantage of using modular programming?
A. It reduces the need for documentation
B. It increases the complexity of the code
C. It improves code reusability and maintainability
D. It eliminates the need for testing
Answer: C) It improves code reusability and maintainability
Rationale: Modular programming divides the software into smaller, manageable
modules, which enhances reusability and makes maintenance easier.
4. Which of the following is not a feature of object-oriented programming?
A. Encapsulation
B. Inheritance
C. Polymorphism
D. Compilation
Answer: D) Compilation
, Rationale: Compilation is not a feature of object-oriented programming. The core
principles of OOP are encapsulation, inheritance, and polymorphism.
5. What is the primary benefit of test-driven development (TDD)?
A. It speeds up the coding process
B. It ensures that the software is bug-free
C. It improves code quality by writing tests before coding
D. It eliminates the need for code reviews
Answer: C) It improves code quality by writing tests before coding
Rationale: TDD focuses on writing tests before writing code, ensuring that the
code meets the defined requirements and behaves as expected.
6. Which of the following is the first phase of the SDLC?
A. Design
B. Implementation
C. Testing
D. Planning
Answer: D) Planning
A. A list of all software bugs
B. A model describing the interaction between the user and the system
C. A type of software testing
D. A part of the coding process
Answer: B) A model describing the interaction between the user and the system
Rationale: A use case is a detailed description of how a user interacts with a system
to achieve a specific goal.
2. Which of the following is a feature of functional programming?
A. Emphasizes functions as the primary building blocks
B. Focuses on manipulating objects
C. Requires explicit memory management
D. Uses only class-based structures
Answer: A) Emphasizes functions as the primary building blocks
,Rationale: Functional programming focuses on using functions to process data,
avoiding side effects and mutable state.
3. What is the primary advantage of using modular programming?
A. It reduces the need for documentation
B. It increases the complexity of the code
C. It improves code reusability and maintainability
D. It eliminates the need for testing
Answer: C) It improves code reusability and maintainability
Rationale: Modular programming divides the software into smaller, manageable
modules, which enhances reusability and makes maintenance easier.
4. Which of the following is not a feature of object-oriented programming?
A. Encapsulation
B. Inheritance
C. Polymorphism
D. Compilation
Answer: D) Compilation
, Rationale: Compilation is not a feature of object-oriented programming. The core
principles of OOP are encapsulation, inheritance, and polymorphism.
5. What is the primary benefit of test-driven development (TDD)?
A. It speeds up the coding process
B. It ensures that the software is bug-free
C. It improves code quality by writing tests before coding
D. It eliminates the need for code reviews
Answer: C) It improves code quality by writing tests before coding
Rationale: TDD focuses on writing tests before writing code, ensuring that the
code meets the defined requirements and behaves as expected.
6. Which of the following is the first phase of the SDLC?
A. Design
B. Implementation
C. Testing
D. Planning
Answer: D) Planning