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
-
Usability Testing
-
Security Testing
-
Unit testing
-
Block Box Testing
A
Correct answer
Explanation
Usability testing is a non-functional testing type that evaluates how easy and intuitive a user interface is for end users. It checks if users can understand and navigate the interface effectively. Security testing focuses on vulnerabilities, unit testing tests individual code units, and black box testing examines functionality without seeing internal code.
-
Glass box testing
-
Closed box testing
-
OPen box testing
-
Clear box testing
B
Correct answer
Explanation
White box testing is called glass box testing, open box testing, and clear box testing because the tester can see inside the code. It is NOT called 'closed box testing' - that term would refer to black box testing where you cannot see the internal code structure. Option B is the correct answer.
-
Unit Testing
-
Blackbox testing
-
White box Testing
-
Regression testing
C
Correct answer
Explanation
White box testing involves examining and testing the internal code structure, logic, and implementation of a program. The tester has access to the source code and understands how the software works internally. Unit testing is a type of white box testing but more specific, black box testing doesn't look at code, and regression testing checks for unintended changes.
-
Block box Testing
-
White box Testing
-
Grey Box Testing
-
Closed Box Testing
B
Correct answer
Explanation
White box testing examines the program's internal structure, logic, and code to derive test cases. It ensures all statements and branches are executed at least once (statement and branch coverage). Black box testing doesn't look at code, gray box combines both approaches, and 'closed box' isn't a standard testing term (black box is the correct opposite of white box).
-
Understanding what managers value about testing
-
Identifying potential customer work-arounds for bug
-
Explaining test results in a neutral fashion
-
All the above
C
Correct answer
Explanation
Explaining test results neutrally is most critical for good tester-developer relationships. Understanding managers' values (A) is useful but secondary. Identifying workarounds (B) helps customers but doesn't directly maintain developer relationships. Neutral communication reduces defensiveness and promotes collaboration, making it the highest priority.
-
Component Testing
-
Functional Testing
-
Non-functional Testing
-
Acceptance Testing
-
Both 2 & 3
-
Both 1 & 3
E
Correct answer
Explanation
The question asks for a 'test type'. Component testing is a level, not a type. Functional testing and non-functional testing ARE test types. Acceptance testing is a level. Therefore 'Both 2 & 3' (Functional and Non-functional testing) is correct. These are the two main categories of test types based on what is being tested.
-
Unit Testing
-
System Testing
-
Independant Testing
-
Destructive Testing
C
Correct answer
Explanation
Independent testing involves testers who are separate from the development team, reducing confirmation bias and promoting objectivity. In contrast, unit testing is typically performed by the original developers who may overlook their own mistakes. System and destructive testing define scope and approach rather than organizational independence.
-
V,W or Y
-
W, X or Y
-
V,Y or Z
-
W,X or Z
C
Correct answer
Explanation
Structure-based (white-box) coverage includes: decision outcomes (branch coverage), conditions within decisions (condition coverage), and statements executed (statement coverage). Partitions and boundaries are black-box (equivalence partitioning and boundary value analysis) concepts, not white-box. Therefore V (decision outcomes), Y (conditions), and Z (statements) are the correct white-box measures.
-
Data-driven and keyword-driven
-
Data-driven and capture driven
-
Capture driven and keyhole-driven
-
Playback-driven and keyord-driven
A
Correct answer
Explanation
To understand this question, the user needs to know the basic concepts of test automation and the common scripting techniques.
Data-driven testing is a technique that uses data from external sources (such as spreadsheets or databases) to drive test execution. Keyword-driven testing is a technique that uses a set of keywords or actions to define test steps. Capture-driven and keyhole-driven are not commonly used scripting techniques in test automation. Playback-driven is a term that refers to the ability of a tool to record user actions and then play them back as a test script. However, it is not an advanced scripting technique.
Therefore, the correct answer is:
The Answer is: A. Data-driven and keyword-driven.
-
Perform harness
-
Confirm harness
-
Review harness
-
Reopen harness
A
Correct answer
Explanation
In Pega, the New harness is used to initialize and create a new case. Once the case is submitted and created, the user is transitioned to the Perform harness to complete the initial assignment. Review and Confirm harnesses are for read-only viewing or confirmation of completed work, respectively.
-
Test Planning and Design
-
Test Analysis and Control
-
Test Planning and Control
-
Test execution and reoprting
C
Correct answer
Explanation
Test Planning and Control is indeed one of the fundamental activities in the test process according to ISTQB. The fundamental test process consists of planning and control, analysis and design, implementation and execution, evaluating exit criteria and reporting, and closure. Option A incorrectly says 'Planning and Design' which are separate phases. Option B incorrectly says 'Analysis and Control' - analysis is separate from planning/control. Option D has a typo ('reoprting') but also incorrectly names a phase.
-
Tool support for performance and monitoring
-
Tool support for static testing
-
Tool support for test execution and logging
-
Tool support for management of testing tools
C
Correct answer
Explanation
Test comparator tools are used to compare actual outputs with expected outputs during test execution, making them part of test execution and logging support. They compare files, data, or screens. Option A (performance monitoring) is wrong - that's for load/performance tools. Option B (static testing) is wrong - comparators work on runtime outputs. Option D (management of testing tools) is wrong - comparators aren't meta-tools.
-
White Box Techniques
-
Black Box Techniques
-
Glass Box Techniques
-
Experience Based Techniques
B
Correct answer
Explanation
Deriving test cases based solely on the functional specification of a component, without knowledge of its internal structure, is the definition of black-box testing. White-box (or glass-box) testing requires internal code visibility, while experience-based techniques rely on subjective tester expertise rather than specifications.
-
Identifying defects
-
Fixing defects
-
Both A & B
-
None of the above
A
Correct answer
Explanation
All three activities - reviews, static analysis, and dynamic testing - share the objective of identifying defects. Reviews find defects in documents, static analysis finds defects in code without executing it, and dynamic testing finds defects by executing the code. Option B is wrong because none of these directly fix defects - fixing is a development activity. Option C is incorrect because fixing isn't their objective.
-
Finding Defcts
-
Gaining confidence about the level of Quality
-
Preventing Defects
-
Debugging Defects
D
Correct answer
Explanation
Debugging is NOT a testing objective - it's a development activity. Testing objectives include: finding defects (A), gaining confidence about quality (B), and preventing defects (C) by designing tests early. Debugging (identifying root cause and fixing) happens after testing finds a defect. Options A, B, C are valid testing objectives.