



































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!




































Domain 1: Software Engineering Fundamentals & SDLC (Questions 1–20) Q1. What is the primary definition of software engineering? A) The process of writing computer code B) A systematic, disciplined, and quantifiable approach to the development, operation, and maintenance of software C) The study of computer hardware D) The art of designing user interfaces only Answer: B Rationale: Software engineering encompasses the entire lifecycle of software, including requirements, design, construction, testing, and maintenance. It applies engineering principles to software development, not just coding. Q2. Which phase of the SDLC involves gathering and documenting what the software should do? A) Design phase B) Implementation phase C) Requirements analysis phase D) Maintenance phase Answer: C
Rationale: Requirements analysis is the first phase where stakeholders are interviewed, functional and non-functional requirements are gathered, and a Software Requirements Specification (SRS) is produced. Q3. What is the main characteristic of the Waterfall model? A) Iterative development with frequent customer feedback B) Sequential phases where each phase must be completed before the next begins C) Continuous deployment to production D) No planning or documentation Answer: B Rationale: The Waterfall model is linear and sequential. Requirements, design, implementation, testing, deployment, and maintenance follow in strict order with little backtracking. Each phase must be completed before the next begins. Q4. Which SDLC model emphasizes small, iterative development cycles with continuous customer involvement? A) Waterfall B) V-Model C) Agile (e.g., Scrum, Kanban) D) Spiral model Answer: C Rationale: Agile methodologies prioritize individuals and interactions, working software, customer collaboration, and responding to change. Development occurs in short iterations (sprints) with continuous feedback. Q5. What does SDLC stand for?
Rationale: Waterfall assumes requirements are known upfront. If a requirement is wrong, testing may reveal it late, forcing costly rework of earlier phases. Agile mitigates this with short iterations. Q8. Which phase of the SDLC typically consumes the most effort and cost over a system's lifetime? A) Requirements analysis B) Design C) Coding D) Maintenance Answer: D Rationale: Maintenance (fixing bugs, adapting to changes, enhancing features) often accounts for 50% to 80% of total software lifecycle cost, especially for long- lived systems. Q9. What is the purpose of a Software Requirements Specification (SRS) document? A) To describe how the software will be coded B) To formally define what the software must do C) To list customer complaints D) To replace user manuals Answer: B Rationale: The SRS formally defines what the software must do. It is agreed upon by stakeholders and developers and serves as the basis for design, testing, and acceptance. Q10. Which SDLC model combines elements of Waterfall with prototyping to manage risk through repeated cycles?
A) Agile B) Spiral model C) V-Model D) Big Bang model Answer: B Rationale: The Spiral model, proposed by Barry Boehm, iteratively cycles through four phases: determine objectives, identify risks, develop and test, and plan the next iteration. It emphasizes risk analysis at each cycle. Q11. What is the difference between verification and validation? A) Verification checks if the product is built correctly; validation checks if the correct product was built B) Verification is done by customers; validation is done by developers C) Verification happens after deployment; validation happens before coding D) There is no difference Answer: A Rationale: Verification ensures the software conforms to specifications ("Are we building the product right?"). Validation ensures the software meets user needs ("Are we building the right product?"). Q12. Which software development model uses time-boxed iterations (usually 2 to 4 weeks) called sprints? A) Waterfall B) Scrum C) V-Model D) Incremental model Answer: B
C) Product Owner D) Project Manager Answer: C Rationale: The Product Owner represents stakeholders, defines features, and prioritizes backlog items to maximize value. The Scrum Master facilitates the process, and the team delivers increments. Q16. What is technical debt? A) The cost of borrowing money for software projects B) The implied cost of additional rework caused by choosing an easy but limited solution instead of a better approach that would take longer C) A loan taken by the IT department D) The salary of software engineers Answer: B Rationale: Technical debt occurs when teams take shortcuts (e.g., messy code, no tests) to meet deadlines. Refactoring later incurs interest. Managed well, it can be strategic; unmanaged, it slows future development. Q17. Which factor is most likely to cause a software project to fail? A) Using the latest programming language B) Poorly defined requirements and lack of user involvement C) Having too many testers D) Writing too much documentation Answer: B Rationale: Studies (e.g., Standish Group Chaos Report) consistently show that unclear requirements, lack of stakeholder input, and poor communication are the leading causes of project failure, not technical choices.
Q18. What is the purpose of a prototype in software development? A) To act as the final production code B) To explore requirements, test feasibility, or gather user feedback early in the lifecycle C) To replace documentation D) To measure developer productivity Answer: B Rationale: Prototypes are early, incomplete models of software. They can be throwaway (explore ideas) or evolutionary (gradually refined into the final product). They reduce risk and clarify requirements. Q19. Which of the following is NOT a software development methodology? A) Agile B) Scrum C) DevOps D) HTTP Answer: D Rationale: HTTP is a communication protocol used for web data transfer, not a software development methodology. Agile, Scrum, and DevOps are all methodologies or frameworks for software development. Q20. What does the Spiral Model emphasize that other models do not? A) Customer satisfaction B) Risk analysis C) Fast delivery D) Documentation
Q23. What is coupling in software design? A) The degree to which a module performs one function B) The degree to which a module is connected to other modules in the system C) The overall architecture of the system D) The user interface design Answer: B Rationale: Coupling quantifies interdependencies between modules. High coupling (strong dependencies) reduces modularity and maintainability, whereas low coupling promotes independent module design and easier testing. Q24. Which SOLID principle states that classes should be open for extension but closed for modification? A) Single Responsibility Principle B) Liskov Substitution Principle C) Open/Closed Principle D) Interface Segregation Principle Answer: C Rationale: The Open/Closed Principle dictates that software entities should allow behavior to be extended without altering existing code, promoting maintainability and reducing regression risks. Q25. What does encapsulation mean in Object-Oriented Programming? A) Copying files between directories B) Hiding implementation details and protecting internal state C) Running multiple threads simultaneously D) Compiling source code into machine code Answer: B
Rationale: Encapsulation protects object data by restricting direct access and exposing controlled interfaces (methods). This improves security, maintainability, and reduces unintended interference between components. Q26. What is inheritance in OOP? A) Copying files from one directory to another B) Reusing code from another class (parent/child relationship) C) Encrypting sensitive data D) Compressing software for distribution Answer: B Rationale: Inheritance allows a class (child) to reuse properties and methods of another class (parent), promoting code reuse and establishing hierarchical relationships. It supports the "is-a" relationship. Q27. What is polymorphism in programming? A) The ability to run multiple programs simultaneously B) The ability of functions or methods to take many forms (same interface, different implementations) C) A data encryption method D) A memory allocation technique Answer: B Rationale: Polymorphism allows methods or functions to behave differently based on the object or input context. It improves flexibility, extensibility, and reusability (e.g., method overloading and overriding). Q28. What is the main advantage of using a microservices architecture compared to a monolithic architecture?
Rationale: The Observer pattern enables a subject (observable) to broadcast state changes to registered observers, promoting decoupled and reactive system design. It is commonly used in event handling systems. Q31. What is refactoring? A) The process of writing new features B) The process of changing a software system in such a way that it does not alter the external behavior of the code yet improves its internal structure C) The process of debugging code D) The process of deploying software to production Answer: B Rationale: Refactoring improves the internal structure of code without changing its external behavior. It is done to enhance readability, reduce complexity, and improve maintainability. Q32. What is abstraction in object-oriented programming? A) Showing all implementation details to the user B) Hiding internal implementation while exposing only essential features C) Running multiple programs simultaneously D) Duplicating data across multiple storage locations Answer: B Rationale: Abstraction hides complexity by exposing only essential features while hiding internal implementation details. It helps manage complexity and reduces the impact of changes. Q33. Which of the following is NOT an element of a design pattern according to standard descriptions?
A) Name B) Problem description C) Solution description D) Use case E) Consequences Answer: D Rationale: Standard design pattern documentation includes a name, problem description, solution description, and consequences (trade-offs). A "use case" is not a required element of a design pattern specification. Q34. Which of the following best describes the "Singleton" design pattern? A) Encapsulates a family of algorithms B) Ensures a class has only one instance and provides a global point of access to it C) Defines a one-to-many dependency between objects D) Composes objects into tree structures Answer: B Rationale: The Singleton pattern restricts a class to a single instance and provides a global access point. It is used for resources like configuration managers, connection pools, or logging services. Q35. What is the primary advantage of using a layered architecture pattern? A) Eliminates the need for documentation B) Reduces code compilation time C) Promotes separation of concerns and modularity D) Guarantees high availability Answer: C
Q38. Which type of testing is performed by end-users to validate that the system meets business requirements? A) Unit Testing B) Integration Testing C) System Testing D) User Acceptance Testing (UAT) Answer: D Rationale: User Acceptance Testing (UAT) is conducted by actual users to ensure the software satisfies functional and business requirements before formal release. It is the final validation step. Q39. What is the difference between alpha and beta testing? A) Alpha is automated; beta is manual B) Alpha is performed by developers; beta is performed by testers C) Alpha testing is performed by in-house testers/customers at the development site; beta testing is performed by end-users in their own environments D) There is no difference Answer: C Rationale: Alpha testing occurs at the developer's site with in-house testers or customers "looking over the shoulder." Beta testing involves real end-users testing the software in their own environments before general release. Q40. What is the main focus of boundary value analysis in software testing? A) Testing random inputs B) Testing inputs at the edge of input domains (boundaries) C) Testing the user interface layout D) Testing performance under heavy load Answer: B
Rationale: Boundary Value Analysis (BVA) targets the edges of input ranges because errors often occur at minimum, maximum, or just beyond allowed limits (e.g., off-by-one errors). It is a black-box testing technique. Q41. Which type of testing focuses on the integration points between different modules or systems? A) Unit Testing B) Integration Testing C) System Testing D) Acceptance Testing Answer: B Rationale: Integration testing ensures that combined modules interact correctly, detecting interface and data flow issues between components. It occurs after unit testing and before system testing. Q42. What is the purpose of system testing? A) Testing individual components B) Testing the complete, integrated system prior to delivery C) Testing the user interface only D) Testing database queries Answer: B Rationale: System testing evaluates the fully integrated software product as a whole against requirements. It verifies end-to-end functionality, performance, security, and other non-functional attributes. Q43. What does a "stub" refer to in integration testing?
Rationale: Continuous Integration (CI) automates building and testing whenever code changes are committed to a shared repository. It enables early detection of integration problems, reduces merge conflicts, and improves software quality. Q46. Which tool is commonly used for continuous integration/continuous delivery (CI/CD)? A) Photoshop B) GitHub Actions C) Microsoft Excel D) Adobe Acrobat Answer: B Rationale: GitHub Actions automates building, testing, and deploying code as part of CI/CD pipelines. Other popular CI/CD tools include Jenkins, GitLab CI, and CircleCI. Q47. What is Test-Driven Development (TDD)? A) Writing tests after the code is complete B) Writing tests before writing the code (red-green-refactor cycle) C) Avoiding testing until the final phase D) Having testers write all documentation Answer: B Rationale: In TDD, developers write a failing test first (red), then write minimal code to pass the test (green), then refactor. This ensures tests drive design and results in high test coverage. Q48. Which of the following is TRUE about Test-Driven Development?
A) Tests are written after the code is complete B) Tests are written before the code C) Tests are written by the QA team only D) Tests are written during deployment Answer: B Rationale: In Test-Driven Development, tests are written before the code. This ensures the code is designed to be testable and that all code has corresponding tests, following the red-green-refactor cycle. Q49. What is the difference between a stub and a mock in testing? A) Stubs are for databases; mocks are for APIs B) Stubs return preprogrammed values; mocks also verify interactions (e.g., which methods were called with which parameters) C) There is no difference D) Stubs are used in unit testing; mocks are used in integration testing Answer: B Rationale: Stubs provide preprogrammed return values to control test inputs. Mocks do the same but also record and verify expected interactions (e.g., that a method was called a specific number of times with specific arguments). Q50. Which software metric measures how much one module depends on other modules? A) Cohesion B) Coupling C) Complexity D) Reliability Answer: B