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

Multiple choice technology
  1. Usability Testing

  2. Security Testing

  3. Unit testing

  4. Block Box Testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Glass box testing

  2. Closed box testing

  3. OPen box testing

  4. Clear box testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Unit Testing

  2. Blackbox testing

  3. White box Testing

  4. Regression testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology
  1. Block box Testing

  2. White box Testing

  3. Grey Box Testing

  4. Closed Box Testing

Reveal answer Fill a bubble to check yourself
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).

Multiple choice technology testing
  1. Understanding what managers value about testing

  2. Identifying potential customer work-arounds for bug

  3. Explaining test results in a neutral fashion

  4. All the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Component Testing

  2. Functional Testing

  3. Non-functional Testing

  4. Acceptance Testing

  5. Both 2 & 3

  6. Both 1 & 3

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Unit Testing

  2. System Testing

  3. Independant Testing

  4. Destructive Testing

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. V,W or Y

  2. W, X or Y

  3. V,Y or Z

  4. W,X or Z

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Data-driven and keyword-driven

  2. Data-driven and capture driven

  3. Capture driven and keyhole-driven

  4. Playback-driven and keyord-driven

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology packaged enterprise solutions
  1. Perform harness

  2. Confirm harness

  3. Review harness

  4. Reopen harness

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Test Planning and Design

  2. Test Analysis and Control

  3. Test Planning and Control

  4. Test execution and reoprting

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology embedded technologies
  1. Tool support for performance and monitoring

  2. Tool support for static testing

  3. Tool support for test execution and logging

  4. Tool support for management of testing tools

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. White Box Techniques

  2. Black Box Techniques

  3. Glass Box Techniques

  4. Experience Based Techniques

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Identifying defects

  2. Fixing defects

  3. Both A & B

  4. None of the above

Reveal answer Fill a bubble to check yourself
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.

Multiple choice technology testing
  1. Finding Defcts

  2. Gaining confidence about the level of Quality

  3. Preventing Defects

  4. Debugging Defects

Reveal answer Fill a bubble to check yourself
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.