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 testing
  1. 1

  2. 2

  3. 3

  4. 4

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

Branch coverage requires executing each possible outcome of every decision. This code has two decisions: (x>y) with true/false branches, and (x>y) in the while loop with true/false outcomes. Test case 1 (x=3, y=2) covers the if-true branch and while-true. Test case 2 (x=2, y=3) covers if-false and while-false. Two test cases achieve 100% branch coverage.

Multiple choice technology testing
  1. 1-b, 2-c, 3-a

  2. 1-b, 2-a, 3-c

  3. 1-c, 2-a, 3-b

  4. 1-a, 2-b, 3-c

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Test estimation (1) determines the effort required (b) - calculating resources needed. Test monitoring (3) involves measuring and tracking progress (a) - collecting metrics. Test control (2) takes action based on monitoring, including reallocation of resources (c) when deviations occur. The correct matching is 1-b, 2-c, 3-a (option A).

Multiple choice technology testing
  1. Random testing

  2. Data Flow testing.

  3. Statement testing.

  4. Syntax testing.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

BS7925-II standard for software component testing defines white-box techniques as those examining internal structure like control flow, data flow, and statement coverage. Syntax testing is a black-box technique that validates input format against a grammar without considering internal code implementation. Random testing is also not a white-box technique, but syntax testing is more definitively a structural black-box method.

Multiple choice technology testing
  1. Ensure the test item is adequately tested.

  2. Make the need for black-box testing redundant.

  3. Run the risk that the requirements are not satisfied.

  4. Suffices for the unit testing phase.

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

White-box testing focuses on internal code structure and logic, not on whether the software meets specified requirements. Using only white-box techniques risks missing requirement gaps because it validates code paths work correctly, not that they implement the right functionality. Black-box testing is essential to verify requirements are satisfied from a user perspective.

Multiple choice technology testing
  1. System integration

  2. Functional testing

  3. Non-functional testing.

  4. Requirements testing

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Internet banking primarily requires non-functional testing including security, performance, reliability, and availability. While functional testing validates transactions work correctly, the critical aspects for banking are security (authentication, authorization, encryption), performance (response times), and reliability. These are non-functional attributes.

Multiple choice technology testing
  1. Dynamic analysis tool

  2. Static Analysis tool

  3. Maintenance tool

  4. Configuration tool

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Dynamic analysis tools examine software while it's running, making them effective for detecting runtime issues like memory leaks and dangling/unassigned pointers. Static analysis examines code without execution and can identify potential issues but cannot detect actual runtime memory behavior.

Multiple choice technology testing
  1. Dynamic analysis tool

  2. Static Analysis tool

  3. Maintenance tool

  4. Configuration tool

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Dynamic analysis tools examine software while it's running, making them effective for detecting runtime issues like memory leaks and dangling/unassigned pointers. Static analysis examines code without execution and can identify potential issues but cannot detect actual runtime memory behavior.

Multiple choice technology testing
  1. Features to be tested.

  2. Environmental needs.

  3. Suspension criteria.

  4. Expected results.

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Test Plan is a management document that outlines testing strategy, scope, resources, and schedule. It includes features to test, environmental needs, suspension/resumption criteria, and approach. Expected results are part of Test Cases, not the Test Plan itself.

Multiple choice technology testing
  1. 1&2 are true and 3 is false.

  2. 1,2&3 are true.

  3. 1 is true, 2&3 are false.

  4. 1&2 are false, 3 is true.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

With limited time, prioritize testing business-critical areas (1) and fault-prone areas (2). Testing easiest functionalities first (3) is poor risk management - it wastes resources on low-risk areas while critical features may remain untested. Risk-based testing prioritizes by business impact and technical risk.

Multiple choice technology testing
  1. Risks involved

  2. Contractual requirements

  3. Legal requirements

  4. Test data

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Testing amount should be determined by risk level, contractual obligations, and legal/safety requirements. Test data is what you use during testing, not a factor in deciding how much testing to perform. The volume of test data doesn't drive testing scope - risk and requirements do.

Multiple choice technology testing
  1. Find faults

  2. Improve quality

  3. Check user friendliness

  4. Improve software accuracy

Reveal answer Fill a bubble to check yourself
D Correct answer
Explanation

Testing's primary objectives are finding faults, improving quality, and validating usability/non-functional requirements. Testing evaluates rather than directly improves accuracy - developers fix faults to improve accuracy. Testing identifies issues but is not itself the mechanism that improves software precision.

Multiple choice technology testing
  1. Correctness

  2. Usability

  3. Viability

  4. Reusability

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

Software quality attributes include correctness (does it work), usability (ease of use), and reusability (can components be reused). Viability refers to business feasibility/market success - an economic concept outside technical quality dimensions. Quality engineering focuses on technical attributes, not commercial viability.

Multiple choice technology testing
  1. Incidents should always be investigated and resolved.

  2. Incidents occur when expected and actual results differ.

  3. Incidents can be analyzed to assist in test process improvement

  4. An incident can be raised against documentation

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Incidents merit investigation, but not all require resolution. Some may be duplicates, misunderstandings, or accepted risks. Incidents do occur when expected and actual results differ (B is true). They can be analyzed for test process improvement (C is true), and can be raised against documentation (D is true). Only A is false.

Multiple choice technology testing
  1. Usability testing.

  2. Statement Coverage.

  3. Dataflow testing.

  4. Cause-effect graphing.

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

Non-functional testing evaluates system attributes like usability, performance, and reliability rather than specific functionality. Usability testing assesses how easily users can interact with the system, which is a classic non-functional test. Statement coverage and dataflow testing are white-box structural techniques, while cause-effect graphing is a black-box functional test design method.