




























































































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!





























































































Question 1. What is the primary purpose of a Software Requirements Specification (SRS) document? A) To provide a detailed design of the software architecture B) To specify the functional and non-functional requirements of the system C) To implement the system modules D) To test the software for defects Answer: B Explanation: The SRS document captures the complete set of functional and non-functional requirements, serving as a reference for development and validation. Question 2. Which technique is most effective for eliciting requirements through direct stakeholder interaction?
A) Document analysis B) Prototyping C) Interviews D) Observation Answer: C Explanation: Interviews involve direct communication with stakeholders, making them highly effective for gathering detailed requirements. Question 3. Which non-functional requirement focuses on the system's ability to operate continuously without failure? A) Performance B) Reliability
Explanation: Requirements traceability helps ensure that each requirement can be traced from its origin through to implementation and testing. Question 5. Which requirement type describes how users interact with the system? A) Business requirement B) User requirement C) System requirement D) Non-functional requirement Answer: B Explanation: User requirements specify the needs and interactions of users with the system, often captured through user stories or use cases.
Question 6. In requirements analysis, what does the MoSCoW method help prioritize? A) Non-functional requirements only B) System architecture components C) Requirements based on their importance and urgency D) Testing activities Answer: C Explanation: MoSCoW categorizes requirements into Must have, Should have, Could have, and Won't have, prioritizing them accordingly. Question 7. Which document format is commonly used to specify detailed system requirements?
D) Load testing Answer: B Explanation: Prototypes help validate requirements by providing stakeholders a visual and interactive model to review and refine needs. Question 9. Which of the following best describes "requirements baseline"? A) The initial set of requirements before any changes B) A fixed version of requirements that serves as a reference point C) The list of requirements that are optional D) Requirements that have been rejected Answer: B
Explanation: A baseline is a formally approved version of requirements that can be referred to for managing changes. Question 10. Which design principle involves hiding internal details of modules from other parts of the system? A) Coupling B) Cohesion C) Information hiding D) Abstraction Answer: C Explanation: Information hiding encapsulates internal details, exposing only necessary interfaces to promote modularity.
B) Reliability C) Usability D) Performance Answer: A Explanation: Maintainability refers to how easily changes can be made to the system. Question 13. What is a key characteristic of a layered architectural style? A) All components are interconnected directly B) Functionality is divided into hierarchical layers with defined interfaces C) Components communicate via message queues only D) Data is stored in a single monolithic database
Answer: B Explanation: Layered architecture organizes functionality into layers, each with specific responsibilities, promoting separation of concerns. Question 14. Which pattern is most appropriate for separating user interface, business logic, and data storage? A) Singleton B) Layered pattern C) Observer pattern D) Factory pattern Answer: B Explanation: The layered pattern separates concerns by dividing system components into distinct layers.
B) GUI (Graphical User Interface) C) Text-based interface D) Voice command interface Answer: B Explanation: GUIs involve manipulating visual elements like buttons, menus, and forms directly. Question 17. Which activity is part of software construction? A) Requirements elicitation B) Coding and unit testing C) System deployment D) Maintenance planning
Answer: B Explanation: Construction involves coding, unit testing, and integrating components. Question 18. Which programming principle promotes writing code that is easy to read, understand, and modify? A) Encapsulation B) Clean code principles C) Code obfuscation D) Hardcoding values Answer: B Explanation: Clean code principles emphasize clarity, simplicity, and maintainability.
B) System testing C) User acceptance testing D) Unit testing Answer: D Explanation: Unit testing focuses on validating small, isolated parts of the codebase. Question 21. In secure coding, what is a common vulnerability caused by improper input validation? A) Buffer overflow B) Race condition C) SQL injection D) Deadlock
Answer: C Explanation: SQL injection occurs when input validation fails, allowing malicious SQL code execution. Question 22. What is the primary benefit of code reviews? A) To find and fix bugs early B) To increase development time C) To replace testing D) To document requirements Answer: A Explanation: Code reviews help detect defects early, improve code quality, and ensure adherence to standards.
B) Least privilege C) Fail-safe defaults D) Open access Answer: B Explanation: Least privilege restricts users to only the permissions necessary for their roles, reducing security risks. Question 25. Which is an example of a dynamic model used in software design? A) Class diagram B) State machine diagram C) ER diagram D) Data flow diagram
Answer: B Explanation: State machine diagrams model dynamic behavior by illustrating states and transitions over time. Question 26. Which document describes how different system modules interact at an interface level? A) Requirements specification B) Interface specification document C) Test plan D) User manual Answer: B Explanation: Interface specifications detail the inputs, outputs, and communication protocols between modules.