Questions
What is the primary goal of unit testing?
- To test the entire application as a whole
- To test individual units of code in isolation
- To test the user interface of the application
- To test the performance of the application
Which of the following is a common unit testing framework in Python?
- NUnit
- PyUnit
- JUnit
- MSTest
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
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
Which of the following is a common unit testing framework in Java?
- NUnit
- PyUnit
- JUnit
- MSTest
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
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
Which of the following is a common unit testing framework in C#?
- NUnit
- PyUnit
- JUnit
- MSTest
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
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
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
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
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
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
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