











































































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 objective of software testing? A) To fix all defects in the code B) To demonstrate that the software works perfectly C) To identify defects and provide information about product quality D) To replace the need for code reviews Answer: C Explanation: Testing aims to uncover defects and give stakeholders insight into the software’s quality; it does not guarantee defect-free code nor replace other quality activities. Question 2. Which activity distinguishes testing from debugging? A) Executing test cases B) Analyzing the root cause of a failure and correcting the code C) Reporting the status of test execution D) Designing test data Answer: B Explanation: Debugging is the process of locating and fixing the cause of a defect found during testing; testing itself focuses on defect detection, not correction. Question 3. In the context of the software development life cycle, the tester’s role is most closely associated with which phase? A) Requirements gathering only B) Coding only C) All phases, providing verification and validation activities D) Deployment only Answer: C Explanation: Testers participate throughout the SDLC, from requirements validation to post-deployment verification, ensuring quality at each stage.
Question 4. Which statement best defines Quality Assurance (QA)? A) The process of executing test cases to find bugs B) A set of activities that ensure the software development process is adequate to produce quality products C) The act of fixing defects after they are reported D) The measurement of performance metrics Answer: B Explanation: QA focuses on the processes used to develop the product, aiming to prevent defects rather than just detecting them. Question 5. Which of the following is NOT a typical cause of software defects? A) Complex business logic B) Tight project schedules C) Clear and complete requirements D) Poor communication among team members Answer: C Explanation: Clear, complete requirements reduce defect introduction; the other options are well-known contributors to defects. Question 6. An “error” in software engineering terminology is best described as: A) A failure observed by the end user B) A mistake made by a developer that may lead to a defect C) A defect that has been logged in the tracking system D) A test case that fails during execution Answer: B Explanation: An error is a human mistake; it may introduce a defect (fault) which can later cause a failure.
Question 10. The “Pesticide paradox” states that: A) Repeating the same test cases over and over eventually finds no new defects B) Test cases become less effective as the software grows C) Test data must be refreshed regularly to avoid contamination D) Automated tests are more reliable than manual tests Answer: A Explanation: If the same tests are run repeatedly, they lose their ability to uncover new defects; test suites need to be refreshed or expanded. Question 11. Which principle explains why testing must be tailored to the project’s context? A) Defect clustering B) Testing is context-dependent C) Early testing D) Absence-of-errors fallacy Answer: B Explanation: Different domains, technologies, and risk levels require customized testing strategies. Question 12. The “Defect clustering” principle suggests that: A) Defects are evenly distributed across the codebase B) Most defects are concentrated in a few modules or components C) Defects appear only after integration testing D) All defects can be found in the requirements phase Answer: B Explanation: Empirical evidence shows that a small number of modules contain the majority of defects. Question 13. The “Absence-of-errors fallacy” warns against: A) Assuming that a system with no reported defects is of high quality
B. Assuming that testing can find all possible defects C. Assuming that manual testing is superior to automation D. Assuming that performance testing is unnecessary Answer: A Explanation: A product may have no known defects yet still fail to meet user needs or quality expectations. Question 14. Which activity is performed during the “Planning” phase of the STLC? A) Writing test scripts B) Defining test objectives, scope, resources, and schedule C) Executing test cases D) Logging defects Answer: B Explanation: Planning establishes the overall test approach, including objectives, resources, schedule, and deliverables. Question 15. During the “Design” phase of the STLC, the tester primarily: A) Executes test cases B) Creates test data and writes test cases based on requirements C) Reviews code for defects D. Deploys the application to production Answer: B Explanation: Test design involves deriving test conditions, test cases, and test data from requirements and specifications. Question 16. Traceability in testing refers to: A) Mapping test cases to requirements and defects to ensure coverage B) Tracking the execution time of each test case C. Recording the version of the test automation framework used
D) The QA Lead Answer: B Explanation: The Product Owner defines the acceptance criteria that a user story must meet for the team to consider it “Done”. Question 20. Continuous Integration (CI) most directly supports which testing activity? A. Manual exploratory testing B. Automated regression testing on every code commit C. End-to-end performance testing only after release D. User acceptance testing Answer: B Explanation: CI servers trigger automated test suites (including regression tests) each time code is committed, providing rapid feedback. Question 21. Unit testing is primarily concerned with: A) Verifying interactions between multiple components B) Validating the behavior of individual functions or methods in isolation C. Assessing system-level performance D. Confirming compliance with regulatory standards Answer: B Explanation: Unit testing targets the smallest testable parts of the software, typically at the function or method level. Question 22. Which integration testing strategy starts testing from the top of the call hierarchy and proceeds downwards? A) Bottom-Up B) Big-Bang C) Top-Down D) Sandwich
Answer: C Explanation: Top-Down integration testing begins with higher-level modules and replaces lower-level modules with stubs. Question 23. System testing differs from integration testing in that it: A) Focuses on individual units only B) Validates the complete, integrated system against functional and non-functional requirements C. Is performed by developers only D. Does not require test environments Answer: B Explanation: System testing evaluates the fully integrated system as a whole, covering both functional and non-functional aspects. Question 24. User Acceptance Testing (UAT) is typically performed by: A) Developers B) Test automation engineers C) End users or business representatives D. System administrators Answer: C Explanation: UAT validates that the system meets business needs and is performed by the actual users or their proxies. Question 25. Which type of acceptance testing focuses on verifying that the system complies with contractual or regulatory obligations? A) Operational Acceptance Testing (OAT) B) User Acceptance Testing (UAT) C) Contractual/Regulatory Acceptance Testing D) Beta testing
Explanation: Confirmation testing re-executes the failed test case to confirm the fix works. Question 29. Regression testing is essential because: A) It validates new features only B) It ensures that recent changes have not introduced new defects in previously working functionality C. It replaces the need for unit testing D. It is performed only once at the end of a project Answer: B Explanation: Regression testing checks that existing behavior remains correct after modifications. Question 30. Maintenance testing is typically triggered by: A) Initial development of the product B) Changes such as bug fixes, enhancements, or platform migrations C. Only by performance tuning activities D. The completion of the test plan Answer: B Explanation: Any modification to the system (bug fixes, enhancements, migrations) can affect existing behavior, prompting maintenance testing. Question 31. Static testing differs from dynamic testing in that static testing: A) Executes the code to find runtime errors B) Involves reviewing documentation, code, and design without executing the program C. Requires a fully deployed environment D. Is performed only after system testing Answer: B
Explanation: Static testing examines work products without running the software, enabling early defect detection. Question 32. Which of the following is NOT a typical work product examined during static testing? A) Requirements specification B) Source code C) Test execution logs D. Design diagrams Answer: C Explanation: Test execution logs are generated during dynamic testing; static testing reviews artifacts created before execution. Question 33. One major benefit of static testing is: A) It eliminates the need for any dynamic testing B) It can detect defects early, reducing rework costs C. It guarantees zero defects in the final product D. It requires no skilled personnel Answer: B Explanation: Early detection through static testing often reduces the cost and effort required to fix defects later. Question 34. In a formal inspection, the role of the “Moderator” is to: A) Write the code under review B) Facilitate the meeting, ensure the process is followed, and record findings C. Approve the final product D. Execute the test cases Answer: B Explanation: The moderator manages the inspection process, keeping it on track and documenting outcomes.
Question 38. In Boundary Value Analysis (BVA), which of the following is a typical test input for a range 1-100? A) 0, 1, 100, 101 B) 50 C) 25, 75 D) 1, 50, 100 Answer: A Explanation: BVA selects values at, just below, and just above the boundaries (0, 1, 100, 101) to uncover edge-related defects. Question 39. Decision table testing is most useful when: A) The system has a simple linear flow B) There are multiple interrelated conditions and actions that need to be covered systematically C. The application is a single-page web app D. Only performance attributes are being evaluated Answer: B Explanation: Decision tables model complex business rules by enumerating combinations of conditions and corresponding actions. Question 40. State transition testing is primarily applied to: A) Data-driven batch processes B) Systems where the output depends on the current state and input, such as a vending machine C) Static code analysis tools D. UI layout verification Answer: B Explanation: State transition testing maps states and transitions, ideal for systems whose behavior changes based on state.
Question 41. Use case testing derives test cases from: A) Code coverage metrics B) User stories, use cases, and business scenarios describing interactions with the system C. Database schema definitions D. Network topology diagrams Answer: B Explanation: Use case testing creates scenarios that reflect real user interactions as described in use cases. Question 42. Statement coverage requires that: A) Every possible path through the code is executed at least once B) Every executable statement in the program is executed at least once C. Every condition in decision statements evaluates to true and false D. All loops execute zero, one, and many times Answer: B Explanation: Statement coverage ensures each line of code (statement) runs at least once during testing. Question 43. Branch (decision) coverage is achieved when: A) Each statement is executed once B) Each possible outcome (true/false) of every decision point is executed at least once C. All possible paths are covered D. All data values are tested Answer: B Explanation: Branch coverage focuses on exercising each edge of a decision (e.g., both sides of an if statement).
Question 47. Exploratory testing is characterized by: A) Strict adherence to pre-written test scripts B) Simultaneous learning, test design, and execution, guided by a charter C. Executing only automated test suites D. Testing only after the product is released Answer: B Explanation: Exploratory testing is a hands-on, adaptive approach where testers design and run tests on the fly. Question 48. Checklist-based testing is especially useful when: A) The system is completely new with no documentation B. There are regulatory or industry standards that define required test items C. Test automation is the only strategy D. Performance testing is the focus Answer: B Explanation: Checklists provide a predefined set of items derived from standards, regulations, or best practices. Question 49. Acceptance Test-Driven Development (ATDD) primarily involves which participants? A) Developers only B) Testers only C. Business customers, developers, and testers collaborating to define acceptance criteria before coding D. Operations staff Answer: C Explanation: ATDD encourages a three-way conversation to create shared acceptance tests prior to implementation.
Question 50. A “test double” that provides canned responses to calls made by the component under test is called a: A) Driver B) Stub C. Mock D. Spy Answer: B Explanation: Stubs simulate lower-level components by returning predefined data, allowing isolation of the component under test. Question 51. Which of the following is NOT typically part of a test plan? A) Test objectives and scope B) Detailed design of the application’s user interface C. Resource allocation and schedule D. Entry and exit criteria Answer: B Explanation: The test plan describes testing activities, not the detailed UI design of the product. Question 52. Entry criteria for a test phase usually include: A) All defects are fixed B) Test environment is ready and test cases are prepared C. The product is released to customers D. The test team has left the project Answer: B Explanation: Entry criteria define the conditions that must be satisfied before testing can begin, such as environment readiness and test case availability. Question 53. Which estimation technique uses a range of optimistic, most likely, and pessimistic values to calculate an expected effort?
B. Detailed source code listings of the application C. Defect trends and severity distribution D. Recommendations for release Answer: B Explanation: Source code listings are not part of a test summary; the report focuses on test outcomes and recommendations. Question 57. Which activity is performed during test completion? A) Writing new test cases B. Verifying that exit criteria have been met and archiving testware C. Deploying the application to production D. Conducting a design review Answer: B Explanation: Test completion involves confirming exit criteria, preparing final reports, and preserving test artifacts. Question 58. Configuration Management (CM) in testing primarily ensures: A) All test data is generated randomly B. Version control of testware, test environments, and baseline artifacts C. Test cases are executed in alphabetical order D. All defects are automatically fixed Answer: B Explanation: CM tracks and controls versions of test artifacts, ensuring consistency across test cycles. Question 59. In the defect life cycle, the state “Re-tested” indicates: A) The defect has been fixed and is now being verified by the tester B. The defect is being assigned to a developer C. The defect is closed without verification
D. The defect is deferred for future releases Answer: A Explanation: After a fix is applied, the tester re-executes the failed test case; the defect moves to “Re-tested”. Question 60. Which field in a defect report captures the seriousness of the defect’s impact on the system? A) Priority B. Severity C. Status D. Component Answer: B Explanation: Severity describes the functional impact, while priority indicates how soon it should be fixed. Question 61. Which test management tool is widely used for tracking requirements, test cases, and defects in a single repository? A) Selenium B. JIRA with Zephyr or Xray add-ons C. JMeter D. SonarQube Answer: B Explanation: JIRA combined with test-management plugins provides integrated tracking of requirements, tests, and defects. Question 62. A static analysis tool that examines source code for security vulnerabilities is: A) LoadRunner B. SonarQube (with security plugins) C. TestNG