Computer Knowledge
Software Testing and Quality Control
2,598 Questions
Software testing and quality control questions cover testing methodologies, unit testing, and defect management. These concepts are crucial for the computer knowledge sections of competitive exams. Practice these questions to understand verification and validation processes thoroughly.
Quality control typesUnit testing purposeSoftware vulnerability testingTest planning tasksLoop testing criteriaTest harness functions
Software Testing and Quality Control Questions
-
Behavioral errors
-
Logic errors
-
Performance errors
-
Typographical errors
-
Both b and d
E
Correct answer
Explanation
White-box testing examines internal program structures. Logic errors (like incorrect paths) and typographical errors (like variable misspellings that still compile but cause wrong execution flows) can be missed by black-box testing, which only verifies external inputs/outputs. Both behavioral and performance errors are typically checked in black-box testing.
-
Rely on basis path testing
-
Exercise the logical conditions in a program module
-
Select test paths based on the locations and uses of variables
-
Focus on testing the validity of loop constructs
B
Correct answer
Explanation
Condition testing is a white-box technique that focuses on exercising logical conditions within program modules. It tests various combinations of condition outcomes to ensure all logical paths are validated. The approach specifically targets decision points and boolean expressions, distinguishing it from other control structure testing techniques.
-
Rely on basis path testing
-
Exercise the logical conditions in a program module
-
Select test paths based on the locations and uses of variables
-
Focus on testing the validity of loop constructs
C
Correct answer
Explanation
Data flow testing selects test paths based on how variables are defined (assigned) and used (referenced) throughout the program. It tracks the flow of data between variable definitions and their uses to ensure coverage of data relationships. Option A describes basis path testing, option B describes condition testing, and option D describes loop testing, which are different white-box testing techniques.
-
Rely basis path testing
-
Exercise the logical conditions in a program module
-
Select test paths based on the locations and uses of variables
-
Focus on testing the validity of loop constructs
D
Correct answer
Explanation
Loop testing specifically focuses on testing loop constructs to ensure they function correctly for different scenarios. It tests loop boundaries (zero iterations, one iteration, maximum iterations, n+1 iterations) and loop termination conditions. Options A, B, and C describe different testing techniques: basis path testing, condition testing, and data flow testing respectively, which have different focuses than loop constructs.
-
Stress Testing
-
Regression Testing
-
Integration Testing
-
None
C
Correct answer
Explanation
Spring is primarily used in integration testing to test how different components work together. It allows you to load the application context, wire beans together, and test interactions between components in a near-production environment. Stress testing focuses on system limits, and regression testing checks for bugs in existing functionality.
-
Alpha Testing
-
Beta Testing
-
White Box Testing
-
Black Box Testing
A
Correct answer
Explanation
Alpha Testing occurs at the developer's site by internal staff or independent testers before release. Beta Testing happens at the customer's site with actual users in their environment. The question specifies 'at the developers' site,' which is the defining characteristic of Alpha Testing.
-
Testers
-
Test Lead
-
Test Manager
-
Developer
A
Correct answer
Explanation
Test cases are typically designed by testers as part of test design and planning activities. While test leads and managers review and may contribute to test strategy, the detailed design of individual test cases is primarily a tester responsibility. Developers write unit tests, not system-level test cases.
A
Correct answer
Explanation
StickyMinds (stickyminds.com) is a well-known software testing and quality resource community. Softwaredioxide is also a software-related site but less specifically focused on testing. Sulekha is an Indian local services portal, and HowStuffWorks is general educational content.
B
Correct answer
Explanation
Verification and Validation are distinct concepts in software quality. Verification asks 'Are we building the product right?' (checking against specifications). Validation asks 'Are we building the right product?' (checking against user needs). They represent different quality activities with different objectives.
-
Ensure the absence of defects
-
Identify the presence of defects and fix them
-
Identify a bad developer
-
All of the above
-
Cost Avoidance Report
-
Test Approach/Strategy
-
Test Plan
-
Test Model
B
Correct answer
Explanation
The Test Approach/Strategy defines the overall guidelines, standards, and generic entry and exit criteria for testing. While the detailed Test Plan implements and specifies these criteria for a specific project, the strategy is the root document establishing them.
-
Software Quality Assurance
-
Software Testing
-
A good Tester
-
All of the above
D
Correct answer
Explanation
All three elements contribute to quality software. SQA provides the framework, testing finds defects, and skilled testers execute both. The question uses 'must' loosely - these are supporting practices, not strictly mandatory.
-
Static Testing
-
Dynamic Testing
-
White Box Testing
-
Reliability Testing
A
Correct answer
Explanation
Static testing involves reviews and inspections without executing code. Dynamic testing requires running the software. White-box refers to internal structure visibility, not execution status.
-
FAP
-
DDT
-
Both
-
None of these
B
Correct answer
Explanation
Image Level Rules are defined in the DDT (Data Definition Tool) not FAP. DDT handles the detailed specifications for how images are recognized and processed while FAP likely serves a different function in the system.
A
Correct answer
Explanation
In QTP Reporter, event status 0 indicates Pass, 1 indicates Fail, and 2 indicates Done. Status 0 specifically maps to a Passed result in the Test Result window.