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 programming languages
  1. GIF

  2. JPG

  3. MBP

  4. TIF

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

GIF, JPG, and BMP (misspelled as MBP in the options) are common image formats. TIF (Tagged Image File Format) is a valid image type, but the question contains a typo ('MBP' instead of 'BMP'). However, TIF is often not supported as a standard web resource image compared to GIF and JPG, making the question slightly flawed but answerable.

Multiple choice technology security
  1. Black Box Testing

  2. Smoke Testing

  3. Sanity check

  4. White Box Testing

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

White box testing examines the internal structures, design, and code of the software, requiring access to the source code. Black box testing focuses on inputs and outputs without seeing internal code. Smoke testing and sanity checks are preliminary testing types that don't specifically require source code access.

Multiple choice technology testing
  1. Ad Hoc Testing

  2. Ramp Testing

  3. Unit Testing

  4. White Box Testing

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

Ad Hoc Testing is an unstructured testing method where testers randomly explore the system to find defects without following formal test plans or documentation. The goal is to simulate real-world usage patterns and discover unexpected bugs that structured testing might miss.

Multiple choice technology testing
  1. Monkey Testing

  2. Unit testing

  3. Ramp testing

  4. Gorilla Testing

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

Ramp testing involves continuously increasing an input signal or load until the system breaks down, helping determine the breaking point and system limits. It's different from Monkey Testing (random inputs), Unit Testing (individual components), or Gorilla Testing (repeated testing of one module).

Multiple choice technology testing
  1. Ad Hoc Testing

  2. White Box testing

  3. Unit Testing

  4. Ramp Testing

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

Unit Testing is the testing of individual software components or units of code in isolation. It verifies that each unit functions as expected before integration. Ad Hoc Testing is unstructured, White Box Testing examines internal code structure, and Ramp Testing increases load until failure.

Multiple choice technology testing
  1. Ramp Testing

  2. Smoke Testing

  3. Regression Testing

  4. Sanity testing

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

Sanity testing is a quick, breadth-first check to verify whether requirements are met and the software is stable enough for further testing. Regression testing ensures new changes haven't broken existing features, Smoke Testing checks basic functionality, and Ramp Testing stresses the system until failure. Sanity testing specifically focuses on verifying requirements breadth-first.

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.