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

Which of the following is a common unit testing framework in Python?

  1. NUnit

  2. PyUnit

  3. JUnit

  4. MSTest

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

PyUnit is a popular unit testing framework for Python that provides a simple and flexible way to write and run unit tests.

Multiple choice

What is the term for a test that checks if a function or method raises an exception when it is called with invalid input?

  1. Exception testing

  2. Error testing

  3. Boundary testing

  4. Negative testing

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

Exception testing involves testing a function or method to ensure that it raises the appropriate exception when it is called with invalid input.

Multiple choice

What is the term for a test that checks if a function or method returns the expected output when it is called with valid input?

  1. Positive testing

  2. Happy path testing

  3. Functional testing

  4. Regression testing

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

Positive testing involves testing a function or method to ensure that it returns the expected output when it is called with valid input.

Multiple choice

Which of the following is a common unit testing framework in Java?

  1. NUnit

  2. PyUnit

  3. JUnit

  4. MSTest

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

JUnit is a popular unit testing framework for Java that provides a simple and flexible way to write and run unit tests.

Multiple choice

What is the term for a test that checks if a function or method returns the expected output when it is called with a variety of different inputs?

  1. Robustness testing

  2. Stress testing

  3. Load testing

  4. Performance testing

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

Robustness testing involves testing a function or method to ensure that it returns the expected output when it is called with a variety of different inputs.

Multiple choice

What is the term for a test that checks if a function or method performs as expected under a heavy load?

  1. Stress testing

  2. Load testing

  3. Performance testing

  4. Endurance testing

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

Stress testing involves testing a function or method to ensure that it performs as expected under a heavy load.

Multiple choice

Which of the following is a common unit testing framework in C#?

  1. NUnit

  2. PyUnit

  3. JUnit

  4. MSTest

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

MSTest is a popular unit testing framework for C# that provides a simple and flexible way to write and run unit tests.

Multiple choice

What is the term for a test that checks if a function or method performs as expected over a long period of time?

  1. Endurance testing

  2. Soak testing

  3. Stability testing

  4. Reliability testing

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

Endurance testing involves testing a function or method to ensure that it performs as expected over a long period of time.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called concurrently by multiple threads?

  1. Concurrency testing

  2. Multithreading testing

  3. Parallel testing

  4. Scalability testing

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

Concurrency testing involves testing a function or method to ensure that it performs as expected when it is called concurrently by multiple threads.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called in a distributed system?

  1. Distributed testing

  2. Cluster testing

  3. Scalability testing

  4. Resiliency testing

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

Distributed testing involves testing a function or method to ensure that it performs as expected when it is called in a distributed system.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called in a cloud environment?

  1. Cloud testing

  2. Elasticity testing

  3. Scalability testing

  4. Resiliency testing

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

Cloud testing involves testing a function or method to ensure that it performs as expected when it is called in a cloud environment.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called in a mobile environment?

  1. Mobile testing

  2. Device testing

  3. App testing

  4. Usability testing

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

Mobile testing involves testing a function or method to ensure that it performs as expected when it is called in a mobile environment.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called in an embedded system?

  1. Embedded testing

  2. Device testing

  3. Hardware testing

  4. Firmware testing

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

Embedded testing involves testing a function or method to ensure that it performs as expected when it is called in an embedded system.

Multiple choice

What is the term for a test that checks if a function or method performs as expected when it is called in a safety-critical system?

  1. Safety testing

  2. Reliability testing

  3. Resiliency testing

  4. Fault tolerance testing

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

Safety testing involves testing a function or method to ensure that it performs as expected when it is called in a safety-critical system.

Multiple choice

What is the Turing Test?

  1. A test to determine if a machine can exhibit intelligent behavior that is indistinguishable from that of a human.

  2. A test to determine if a machine can pass a series of logical reasoning problems.

  3. A test to determine if a machine can learn and adapt to new situations.

  4. A test to determine if a machine can communicate with humans in a natural way.

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

The Turing Test is a test to determine if a machine can exhibit intelligent behavior that is indistinguishable from that of a human. The test is conducted by having a human interact with a machine through a text-based interface. If the human cannot tell that they are interacting with a machine, then the machine is said to have passed the Turing Test.