


































































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 software testing? A) To eliminate all defects before release B) To verify that the software meets specified requirements and to identify defects C) To improve the aesthetic appeal of the user interface D) To replace the need for debugging Answer: B Explanation: The main goal of testing is to verify that the software functions as intended and to detect defects, aiding in quality assurance. It does not guarantee the elimination of all defects nor replace debugging entirely. Question 2. Which of the following best distinguishes testing from debugging? A) Testing involves identifying defects, while debugging involves fixing them B) Testing is performed after debugging C) Debugging is a type of testing D) Testing and debugging are synonymous Answer: A Explanation: Testing is the process of detecting defects, whereas debugging involves analyzing and fixing the identified defects. Question 3. In the context of SDLC, what role does testing play? A) It is only performed at the end of the development process B) It is integrated throughout the development lifecycle to ensure quality at each stage C) It replaces the need for requirements gathering D) It is optional and performed only if time permits Answer: B Explanation: Testing is an ongoing activity throughout the SDLC, contributing to early defect detection and ensuring quality at all phases. Question 4. Why is exhaustive testing considered impossible? A) Because it requires infinite resources and time to test all possible inputs and scenarios
B) Because it is unnecessary for small projects C) Because it only applies to black-box testing D) Because it guarantees the absence of errors Answer: A Explanation: Exhaustive testing involves testing all input combinations and scenarios, which is impractical due to the vast number of possibilities; hence, it is considered impossible. Question 5. Which principle of testing states that testing can only show the presence of defects, not their absence? A) Pesticide paradox B) Testing shows presence of defects, not absence C) Early testing D) Defect clustering Answer: B Explanation: This principle emphasizes that while testing can detect existing defects, it cannot prove that no defects remain. Question 6. What is the main objective of early testing? A) To find and fix defects as early as possible in the SDLC B) To delay testing until the system is fully developed C) To avoid the need for regression testing later D) To replace static testing techniques Answer: A Explanation: Early testing aims to identify defects as early as possible, reducing costs and effort associated with fixing issues later in the development cycle. Question 7. What does the principle of defect clustering imply? A) Defects tend to be concentrated in certain modules or areas of the system B) Defects are randomly distributed throughout the system C) Each defect is independent of others
Explanation: The fallacy indicates that even if no errors are found, the system may still not satisfy user requirements or have design issues. Question 11. Which activity is part of the test planning and control phase? A) Writing test cases B) Defining test scope, objectives, and schedules C) Executing test scripts D) Performing static analysis Answer: B Explanation: Test planning involves defining scope, objectives, resources, schedule, and entry/exit criteria, guiding the testing process. Question 12. During test analysis and design, what is a primary focus? A) Executing tests B) Designing test cases and identifying test data based on requirements C) Closing the testing project D) Preparing incident reports Answer: B Explanation: This phase involves analyzing requirements and designing test cases to ensure comprehensive coverage. Question 13. Which activity follows test implementation and execution in the basic test process? A) Test planning B) Evaluating exit criteria and reporting C) Test analysis and design D) Test closure activities Answer: B Explanation: After executing tests, the next step is to evaluate if exit criteria are met and to report findings.
Question 14. What is a key psychological aspect of a tester's mindset? A) Objectivity and persistence in identifying defects B) Indifference to defect findings C) Focus solely on test automation D) Avoiding communication with developers Answer: A Explanation: A tester must be objective, persistent, and detail-oriented to effectively identify and communicate defects. Question 15. Which of the following is a characteristic of a good communication skill for testers? A) Clearly articulating defect details and test results B) Avoiding feedback to developers C) Keeping findings secret to prevent conflicts D) Relying solely on written reports without verbal communication Answer: A Explanation: Clear communication ensures that defects are understood and addressed effectively, fostering collaboration. Question 16. How does testing contribute to project success? A) By ensuring the product is free of all defects B) By reducing risks, improving quality, and increasing customer satisfaction C) By completing the project faster at the expense of quality D) By replacing the need for user documentation Answer: B Explanation: Testing helps identify issues early, reducing risks, enhancing quality, and leading to higher customer satisfaction. Question 17. Which development model emphasizes continuous iteration and incremental development? A) Waterfall model
Answer: B Explanation: Integration testing checks whether multiple components or systems work together as intended. Question 21. Which type of testing is characterized by validating security vulnerabilities? A) Usability testing B) Security testing C) Performance testing D) Compatibility testing Answer: B Explanation: Security testing assesses the system for vulnerabilities and security flaws. Question 22. What is the focus of usability testing? A) System performance under stress B) Ease of use and user experience C) Data integrity during transactions D) Compatibility across platforms Answer: B Explanation: Usability testing evaluates how user-friendly and intuitive the system is. Question 23. Which non-functional testing type assesses how well the system performs under increasing load? A) Stress testing B) Load testing C) Scalability testing D) Reliability testing Answer: B Explanation: Load testing measures system behavior under expected user load to identify performance bottlenecks.
Question 24. Which white-box testing technique involves executing every decision outcome in the code? A) Statement testing B) Decision testing C) Boundary value analysis D) Equivalence partitioning Answer: B Explanation: Decision testing ensures all decision outcomes (true/false) are tested to achieve decision coverage. Question 25. Which black-box testing technique involves dividing input data into equivalent partitions? A) Boundary value analysis B) Equivalence partitioning C) State transition testing D) Statement testing Answer: B Explanation: Equivalence partitioning reduces test cases by dividing input data into valid and invalid classes. Question 26. What is the purpose of boundary value analysis in testing? A) To test the system's response at the edges of input ranges B) To test decision outcomes C) To verify data integrity D) To check system usability Answer: A Explanation: Boundary value analysis focuses on testing input values at, just below, and just above the boundaries of input ranges. Question 27. Which test design technique models system behavior as states and transitions? A) Equivalence partitioning B) State transition testing
Answer: A Explanation: Maintenance testing is prompted by changes such as modifications, migrations, or system retirements. Question 31. Which static testing activity involves reviewing software artifacts for defects without executing code? A) Dynamic testing B) Static testing C) Regression testing D) Load testing Answer: B Explanation: Static testing involves reviews and inspections without running the software. Question 32. What is the main benefit of static testing? A) Detects defects early, reducing later testing cost B) Replaces all dynamic testing activities C) Only applicable to coding phase D) Guarantees defect-free software Answer: A Explanation: Static testing identifies issues early, which can reduce defect fixing costs in later stages. Question 33. Which role in a formal review is responsible for leading the review process? A) Moderator B) Reviewer C) Scribe D) Author Answer: A Explanation: The moderator facilitates the review, ensuring the process stays focused and productive.
Question 34. What does static analysis primarily analyze? A) Executable code during runtime B) Source code or design models for potential defects without executing the program C) User feedback reports D) Test execution logs only Answer: B Explanation: Static analysis examines source code or design artifacts without executing the code to identify issues. Question 35. Which of the following is an example of a static analysis tool? A) Code analyzers like SonarQube B) Load testing tools C) Performance profilers D) Test automation frameworks Answer: A Explanation: Code analyzers like SonarQube perform static code analysis to identify code issues and vulnerabilities. Question 36. Which category of test design techniques is based on the system's specifications? A) White-box techniques B) Experience-based techniques C) Black-box techniques D) Static analysis techniques Answer: C Explanation: Black-box techniques derive tests from specifications, focusing on system behavior without examining internal code. Question 37. When deriving test cases from use cases, what is the primary focus? A) Covering all user interactions and system responses B) Testing internal code logic
Answer: B Explanation: Exploratory testing is characterized by concurrent learning, test design, and execution, often guided by tester intuition. Question 41. What is the purpose of independent testing? A) To provide an unbiased assessment of the software by an independent team B) To speed up the testing process by the development team C) To reduce the overall testing effort D) To perform only automated testing tasks Answer: A Explanation: Independent testing ensures objectivity and reduces bias, leading to more thorough defect detection. Question 42. Which task is typically performed by a test leader? A) Planning test activities and coordinating the testing team B) Writing code for test automation C) Executing individual test cases D) Developing the software under test Answer: A Explanation: The test leader manages planning, coordination, and oversight of the testing activities. Question 43. What is the main purpose of test planning? A) To define scope, objectives, resources, schedule, and exit criteria for testing B) To execute test cases C) To perform static analysis D) To develop the software architecture Answer: A Explanation: Test planning establishes the foundation by outlining what needs to be tested, how, and when.
Question 44. Which technique involves estimating testing effort based on expert judgment or work breakdown structure? A) WBS-based estimation B) Code coverage analysis C) Boundary value analysis D) Static analysis Answer: A Explanation: WBS-based estimation uses the work breakdown structure to assess efforts required for testing activities. Question 45. Which metric is useful for monitoring testing progress? A) Number of test cases executed and defect detection rate B) Code complexity metrics C) User satisfaction scores D) Market share of the product Answer: A Explanation: Tracking test case execution and defect rates helps assess testing progress and quality. Question 46. What is the purpose of test reporting? A) To communicate testing status, defects, and quality metrics to stakeholders B) To document source code changes C) To specify system requirements D) To perform static code analysis Answer: A Explanation: Test reports inform stakeholders about testing progress, issues, and overall quality. Question 47. In configuration management for testing, which item is typically controlled? A) Testware, test environment, and software under test B) End-user documentation
Answer: A Explanation: Incident reports document relevant information about defects to facilitate their resolution. Question 51. During the incident life cycle, which activity occurs after identifying an incident? A) Analyzing and prioritizing the incident for fixing B) Ignoring the incident if it is minor C) Immediately deploying patches to production D) Deleting the incident from records Answer: A Explanation: After identification, incidents are analyzed, prioritized, and assigned for resolution. Question 52. Which principle states that testing can only show the presence of defects, not their absence? A) Testing shows presence of defects, not absence B) Exhaustive testing is possible with enough resources C) Early testing is unnecessary if testing occurs late in SDLC D) Testing guarantees defect-free software Answer: A Explanation: This principle emphasizes that testing cannot prove a system is perfect, only that defects may exist. Question 53. Which is an example of static testing? A) Code review B) Load testing C) Penetration testing D) Usability testing Answer: A Explanation: Code reviews are static testing activities where artifacts are examined without executing code.
Question 54. Which type of review involves informal, unstructured examination of artifacts? A) Walkthrough B) Inspection C) Technical review D) Informal review Answer: D Explanation: An informal review is a less formal, unstructured examination of artifacts. Question 55. What is a typical defect type identified through static analysis? A) Coding standards violations and potential security vulnerabilities B) Performance bottlenecks C) User interface inconsistencies D) Functional requirement mismatches Answer: A Explanation: Static analysis detects coding issues, code smells, and security vulnerabilities without executing the code. Question 56. Which category of test design techniques involves testing based on system specifications without considering internal code? A) Black-box techniques B) White-box techniques C) Static analysis techniques D) Experience-based techniques Answer: A Explanation: Black-box testing derives tests from specifications, focusing on external behavior. Question 57. When deriving tests from use cases, what aspect is primarily targeted? A) User interactions and system responses B) Internal decision logic within modules
Explanation: Independence minimizes bias and increases the likelihood of defect detection. Question 61. Which task is primarily performed by a test leader? A) Planning, coordinating, and monitoring testing activities B) Developing the software application C) Performing static analysis D) Writing code for test automation scripts Answer: A Explanation: The test leader oversees planning and execution, ensuring testing aligns with project goals. Question 62. What is the purpose of a test plan? A) To define scope, objectives, resources, schedule, and exit criteria for testing activities B) To develop the source code C) To perform static code analysis D) To generate user documentation Answer: A Explanation: A test plan provides a roadmap for testing, outlining what and how testing will be conducted. Question 63. Which estimation technique uses the work breakdown structure to assess testing effort? A) WBS-based estimation B) Expert judgment C) Function point analysis D) Code coverage analysis Answer: A Explanation: WBS-based estimation decomposes testing tasks into smaller units for effort assessment. Question 64. Which metric helps monitor the rate of defect discovery during testing? A) Defects found per testing cycle
B) Code cyclomatic complexity C) User satisfaction scores D) Market share growth Answer: A Explanation: Tracking defect discovery rates helps evaluate testing effectiveness and progress. Question 65. Why is configuration management important in testing? A) To control test artifacts, environments, and testware ensuring consistency and traceability B) To manage user feedback C) To plan marketing activities D) To perform static analysis Answer: A Explanation: Configuration management maintains control over testing assets and environments, ensuring reproducibility. Question 66. How does risk-based testing influence testing priorities? A) It prioritizes testing of high-risk areas to mitigate potential failures or vulnerabilities B) It eliminates the need for testing in low-risk areas C) It guarantees complete testing coverage D) It focuses solely on performance testing Answer: A Explanation: Risk-based testing allocates resources to areas with higher impact or likelihood of failure. Question 67. What information does an incident report typically contain? A) Identification, description, impact, priority, and current status of the defect B) Source code change details C) Test environment setup instructions D) User feedback summaries Answer: A