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
Which of the following is a common unit testing framework in Python?
-
NUnit
-
PyUnit
-
JUnit
-
MSTest
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.
What is the term for a test that checks if a function or method raises an exception when it is called with invalid input?
-
Exception testing
-
Error testing
-
Boundary testing
-
Negative testing
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.
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?
-
Positive testing
-
Happy path testing
-
Functional testing
-
Regression testing
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.
Which of the following is a common unit testing framework in Java?
-
NUnit
-
PyUnit
-
JUnit
-
MSTest
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.
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?
-
Robustness testing
-
Stress testing
-
Load testing
-
Performance testing
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.
What is the term for a test that checks if a function or method performs as expected under a heavy load?
-
Stress testing
-
Load testing
-
Performance testing
-
Endurance testing
A
Correct answer
Explanation
Stress testing involves testing a function or method to ensure that it performs as expected under a heavy load.
Which of the following is a common unit testing framework in C#?
-
NUnit
-
PyUnit
-
JUnit
-
MSTest
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.
What is the term for a test that checks if a function or method performs as expected over a long period of time?
-
Endurance testing
-
Soak testing
-
Stability testing
-
Reliability testing
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.
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?
-
Concurrency testing
-
Multithreading testing
-
Parallel testing
-
Scalability testing
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.
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?
-
Distributed testing
-
Cluster testing
-
Scalability testing
-
Resiliency testing
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.
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?
-
Cloud testing
-
Elasticity testing
-
Scalability testing
-
Resiliency testing
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.
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?
-
Mobile testing
-
Device testing
-
App testing
-
Usability testing
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.
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?
-
Embedded testing
-
Device testing
-
Hardware testing
-
Firmware testing
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.
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?
-
Safety testing
-
Reliability testing
-
Resiliency testing
-
Fault tolerance testing
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.
-
A test to determine if a machine can exhibit intelligent behavior that is indistinguishable from that of a human.
-
A test to determine if a machine can pass a series of logical reasoning problems.
-
A test to determine if a machine can learn and adapt to new situations.
-
A test to determine if a machine can communicate with humans in a natural way.
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.