Computer Knowledge
Software Testing and Quality Control
2,292 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
-
Static test
-
Dynamic test
-
Smoke test
-
None of these
C
Correct answer
Explanation
Smoke testing is the correct approach - it quickly verifies that the most critical functions of a build work before full deployment. Static testing examines code without execution, while dynamic testing involves running the code.
-
TAR rules verification
-
Scorecard Attributes
-
Tier Cutoffs
-
All the above
D
Correct answer
Explanation
All three components are essential to scorecard testing: verifying TAR (Transaction/Account Rating) rules, checking Scorecard Attributes for proper data mapping, and validating Tier Cutoffs ensure correct segmentation.
-
Static test
-
Dynamic test
-
Smoke test
-
None of these
C
Correct answer
Explanation
Smoke testing is the standard practice for testing a candidate build before deployment. A smoke test verifies that the most critical functions work - it's a quick sanity check to ensure the build isn't completely broken. Static testing analyzes code without running it, dynamic testing involves detailed runtime analysis, but smoke tests are the standard for deployment validation.
B
Correct answer
Explanation
Agent testing is always performed in TAC (likely 'Test Agent Console' or similar) environment. DEV is for developer testing, and TIN is for IT/system testing. TAC is specifically designed for agent-level testing with the appropriate interface and permissions that agents would use. This separation ensures agents don't accidentally access development tools or system-level test regions.
-
An input, expected result, precondition and postcondition
-
The steps to be taken to get the system to a given point
-
Something that can be tested
-
A specific state of the software
C
Correct answer
Explanation
According to standard testing definitions (like ISTQB), a test condition is an item or event of a component or system that can be verified by one or more test cases. Option 1 defines a test case, and option 2 defines a test procedure or test script.
-
Inspection is a form of functional testing
-
Structural testing is more important than functional testing as it addresses the code
-
Functional testing is more powerful than static testing as you run the system as see what happens.
-
Functional testing is useful throughout the life cycle and can be applied by business analyst, testers, developers and users.
D
Correct answer
Explanation
Functional testing evaluates the system against requirements by executing it with specified inputs, making it applicable throughout the development lifecycle by various stakeholders. Inspection is a static testing technique, not functional. Structural testing complements rather than competes with functional testing. Comparing functional and static testing as 'more powerful' is misleading - they serve different purposes.
A
Correct answer
Explanation
Structure-based (white-box) testing coverage is measured by which code elements have been executed: decision outcomes (branch coverage), statements (line coverage), and conditions within decisions (condition coverage). Partitions, boundaries, and cause-effect graphs relate to black-box specification-based techniques, not structure-based analysis.
-
Breadth and Depth test
-
Retesting
-
Confirmation testing
-
Sanity testing
A
Correct answer
Explanation
Maintenance testing employs two main methodologies: Breadth testing (testing across multiple areas to ensure changes haven't adversely affected other parts of the system) and Depth testing (thoroughly testing the specific changed area). Retesting and confirmation testing refer to rerunning failed tests after fixes, while sanity testing is a quick subset of regression testing.
-
Structural testing
-
Design based testing
-
Error guessing technoque
-
Experienced based testing
A
Correct answer
Explanation
White box testing is also known as structural testing because it focuses on the internal structure, pathways, and logic of the software code. Design-based, error guessing, and experience-based techniques are separate paradigms or black-box/hybrid methodologies.
-
A set of test cases for testing classes of objects
-
An input or output range of values such that one valuye in the range becomes a test case
-
An input or output range of values such that each value in the range becomes a test case
-
An input or output range of values such that every tenth value in the range becomes a test case.
B
Correct answer
Explanation
Equivalence partitioning divides input data into groups (partitions) that are expected to be processed similarly. The key principle is that testing one value from each partition is sufficient to find defects affecting that partition, rather than testing every possible value. This makes testing more efficient while maintaining good coverage.
-
Are most useful in uncovering defects in the process flows during real world use of the system
-
Are most useful in uncovering defects in the process flows during the testing use of the system
-
Are most useful in covering the defects in the process flows during real world use of the system
-
Are most useful in covering the defects at the Integration Level
A
Correct answer
Explanation
Use cases describe how users interact with the system to accomplish specific goals in real-world scenarios. Test cases derived from use cases are particularly valuable for discovering defects in actual user workflows and process flows, rather than just testing individual features in isolation. They help validate the system from a user's perspective.
-
Creating test suites from the test cases
-
Executing test cases either manually or by using test execution tools
-
Comparing actual results
-
Designing the Tests
D
Correct answer
Explanation
Designing the tests is part of the Test Design phase, which occurs before Test Implementation and Execution. Creating suites, executing tests, and comparing results are core activities of the implementation and execution phase, making 'Designing the Tests' the correct choice.
-
Statement Testing and coverage
-
Decision Testing and coverage
-
Condition Coverage
-
Boundary value analysis
D
Correct answer
Explanation
White box testing techniques require visibility into the internal code structure and include statement coverage, decision/branch coverage, and condition coverage. Boundary value analysis is a black box technique because it focuses on input and output values at boundaries without examining internal code logic. It relies on understanding the input domain rather than the code implementation.
-
i. Determine the test technique to be employed
-
ii. Determine the extent of testing to be carried out
-
iii. Prioritize testing in an attempt to find critical defects as early as possible.
-
iv. Determine the cost of the project
B
Correct answer
Explanation
In a risk-based testing approach, identified risks directly inform the extent of testing to be performed. High-risk areas receive more thorough testing attention, while lower-risk components may be tested less extensively. This ensures that limited testing resources are allocated where they'll provide the most value in finding critical defects early.
-
Security Testing
-
Recovery Testing
-
Performance Testing
-
Functionality Testing
A
Correct answer
Explanation
Security testing is a type of functional testing specifically focused on evaluating system vulnerabilities and protection mechanisms against malicious threats like viruses, malware, and unauthorized access from outsiders. It tests authentication, authorization, encryption, and other security controls. Recovery testing deals with system restoration after failures, performance testing measures system responsiveness under load, and functionality testing validates features work as specified - none of these focus on threat detection.