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

Multiple choice technology testing
  1. will help ensue unchanged areas of the software have not been affected

  2. can only be run during user acceptance testing

  3. will help ensure changed areas of the software have not been affected

  4. will always be automed

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

Regression testing verifies that recent code changes haven't adversely affected existing features - it specifically checks unchanged areas of the software to ensure they still work. Option C is incorrect because regression testing focuses on unchanged areas, not changed ones. Option B is wrong because regression testing runs at all levels, not just UAT. Option D is incorrect because regression tests can be manual.

Multiple choice technology testing
  1. Does not meet people needs

  2. Loss of control over reallocation of resources

  3. Cultural difference

  4. Relinquishments of control

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

Testing offshore software (outside your country) primarily introduces cultural differences in communication, work practices, language interpretation, and business context understanding. Options A (people needs) and D (relinquishing control) are vague concerns, not specific differences. Option B (resource reallocation) is an operational issue, not a unique offshore challenge. Cultural differences are the most distinct factor.

Multiple choice technology testing
  1. 2 is a valid reason; 1,3,4&5 are not

  2. 1,2,3,4 are valid reasons; 5 is not

  3. 1,2,3 are valid reasons; 4&5 are not

  4. All of them are valid

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

Software failures can stem from multiple sources: testing faults (errors in test design/execution), software faults (bugs in code), design faults (flaws in architecture/design), environment faults (infrastructure/dependency issues), and documentation faults (incorrect specs). All five are valid root causes of test failures. Option D correctly recognizes that all are legitimate reasons.

Multiple choice technology testing
  1. After Coding

  2. After external design

  3. After internal design

  4. After freezing the requirements

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

Testing should begin as early as possible in the lifecycle - after requirements are frozen (Option D) because this is when test planning and design can start with stable, clear specifications. Waiting until after coding (A), external design (B), or internal design (C) delays test preparation and increases the risk of requirement misunderstandings. Early testing saves cost and catches defects sooner.

Multiple choice technology testing
  1. it may be difficult to repeat the test

  2. It will be difficult to decide if the test has passed or failed

  3. We cannot run the test

  4. We cannot automate the user inputs

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

Without a specified acceptance criterion or expected result, you cannot determine whether a test passed or failed - this is the fundamental pass/fail decision point. Option A (repeatability) and C (execution) are still possible without criteria. Option D (automation) is also possible - you can automate inputs even if pass/fail is unclear. The core issue is the inability to judge results.

Multiple choice technology testing
  1. Simple Loops

  2. Nested Loops

  3. Concatenated Loops

  4. All of the above

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

Loop testing methodology applies to all loop structures: simple loops (single iterations), nested loops (loops within loops), and concatenated loops (loops in sequence). The technique tests boundary conditions, typical cases, and stress scenarios for each structure type. Option D correctly includes all categories. Options A-C are each incomplete subsets.

Multiple choice technology testing
  1. Shorten the time required for testing

  2. Find more faults

  3. Do more effective testing

  4. Do the best testing in the time available

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

Test prioritization's core purpose is optimizing the use of limited testing time - it ensures that the most important tests (highest risk/business value) are executed first within time constraints. Option D captures this - doing the BEST testing in available time. Options A (shorten time), B (find more faults), and C (effective testing) are desirable outcomes but not the primary reason for prioritization itself.

Multiple choice technology testing
  1. Test Factors

  2. Functions/subroutines

  3. All of the above

  4. None of the above

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

Comprehensive test data collection should include both qualitative and quantitative metrics, such as test factors, functions/subroutines executed, code coverage, and defect counts. Thus, 'All of the above' is correct.

Multiple choice technology testing
  1. Checking that we are building the right system

  2. Checking that we are building the system right

  3. Performed by an independent test team

  4. Making sure that it is what the user really wants

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

Verification ensures that the software conforms to its specified requirements ('building the system right'). Validation, on the other hand, ensures that the software meets the user's actual needs ('building the right system').

Multiple choice technology testing
  1. use test appropriate metrics

  2. declare that it is over when budget is consumed

  3. let the management decide that

  4. declare that it is ove when time is out

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

To determine when testing is complete with confidence, teams should use objective, predefined test metrics (such as code coverage or defect density) rather than arbitrary constraints like running out of time or budget.

Multiple choice technology testing
  1. Compliance Testing - Business rules

  2. Black Box Testing - Path Coverage

  3. Regression Testing - End users

  4. File Integrity - Control Totals

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

File verification using Control Totals (summing numeric fields) validates data integrity by comparing calculated totals against expected values. The other pairings are incorrect: Compliance testing uses compliance checklists not business rules; Black box tests functionality not internal paths; Regression testing is done by testers, not end users.

Multiple choice technology testing
  1. Green box

  2. Black box

  3. Yellow box

  4. White box

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

Cyclomatic Complexity measures code's decision-based complexity by counting independent paths through control flow (V(G) = E - N + 2P). This requires analyzing source code structure - a white box testing method. Black box testing examines external behavior without seeing code.

Multiple choice technology testing
  1. Set up Test environment, Identify test cases and test cycles, Review test results, Assign test scripts

  2. Identify test cases and test cycles, Assign test scripts, set up test environment, review test results

  3. Set up test environment, identify test cases and test cycles, assign test scripts, review test results

  4. All of the above

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

Test execution follows a logical sequence: first set up the environment (infrastructure, test data), then identify which test cases to run, assign scripts to testers, execute them, and finally review results. Option C matches this workflow. Options A and B have ordering errors.

Multiple choice technology testing
  1. A small team to establish the best way to use the tool

  2. The vendor contractor to write the initial scripts

  3. Everyone who may eventually have some use for the tool

  4. The independent testin team

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

New testing tools should be piloted by a small team first to establish best practices, identify pitfalls, and create usage guidelines before organization-wide rollout. This prevents widespread misuse, inefficiency, and tool abandonment. Vendors shouldn't write initial scripts - internal testers must understand the tool themselves.