Unit Testing

Unit Testing Quiz

15 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

What is the primary goal of unit testing?

  1. To test the entire application as a whole
  2. To test individual units of code in isolation
  3. To test the user interface of the application
  4. To test the performance of the application
Question 2 Multiple Choice (Single Answer)

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

  1. NUnit
  2. PyUnit
  3. JUnit
  4. MSTest
Question 3 Multiple Choice (Single Answer)

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
Question 4 Multiple Choice (Single Answer)

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
Question 5 Multiple Choice (Single Answer)

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

  1. NUnit
  2. PyUnit
  3. JUnit
  4. MSTest
Question 6 Multiple Choice (Single Answer)

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
Question 7 Multiple Choice (Single Answer)

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
Question 8 Multiple Choice (Single Answer)

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

  1. NUnit
  2. PyUnit
  3. JUnit
  4. MSTest
Question 9 Multiple Choice (Single Answer)

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
Question 10 Multiple Choice (Single Answer)

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
Question 11 Multiple Choice (Single Answer)

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
Question 12 Multiple Choice (Single Answer)

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
Question 13 Multiple Choice (Single Answer)

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
Question 14 Multiple Choice (Single Answer)

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
Question 15 Multiple Choice (Single Answer)

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