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. Automation object model

  2. Object repository model

  3. Object repository automation object model

  4. Object repository script object model

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

The Object Repository Automation object model (often referred to as the Object Repository Utility) provides objects and methods that allow automation scripts to programmatically manipulate shared object repository files without using the manual user interface.

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

Using appropriate test metrics (such as code coverage, defect density, and test execution rates) provides objective, data-driven confidence to decide when testing is complete. Stopping purely due to budget or time constraints does not guarantee adequate quality.

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 is a source code metric used to measure the number of linearly independent paths through a program's source code. Because it requires direct knowledge and analysis of the internal code structure, it falls under White box testing.

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

The logical sequence is: set up the test environment first, then identify which test cases and cycles to run, assign the specific test scripts to testers, and finally review the results. Option C captures this flow correctly. Options A and B have ordering issues - you cannot review results before assigning scripts (A), and you must set up the environment before you can assign scripts (B).

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

When introducing a new testing tool, it is best practice to roll it out to a small pilot team first. This allows them to establish guidelines, best practices, and templates before deploying it to the wider organization.

Multiple choice technology testing
  1. A black box testing technique than can only be used during system testing

  2. A white box testing technique appropriate for component testing

  3. A black box testing technique used only by developers

  4. A black box testing technique appropriate to all levels of testing

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

Equivalence partitioning is a black-box testing technique that divides input data into valid and invalid classes to reduce test cases while maintaining coverage. It applies to all test levels - unit, integration, system, and acceptance testing. Options A and C incorrectly limit it to specific levels or roles (developers vs testers). Option B is wrong because it's not a white-box technique.

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.