Expected results are:

  1. only important in system testing

  2. only used in component testing

  3. most useful when specified in advance

  4. derived from the code


Correct Option: C

AI Explanation

To answer this question, you need to understand the concept of expected results in software testing.

Expected results are the predicted outcomes or behavior of a system or component under test. They are typically determined in advance based on the requirements or specifications of the system.

Let's go through each option to understand why it is correct or incorrect:

Option A) only important in system testing - This option is incorrect because expected results are important in all types of testing, not just system testing.

Option B) only used in component testing - This option is incorrect because expected results are used in all types of testing, not just component testing.

Option C) most useful when specified in advance - This option is correct because expected results are most useful when they are specified in advance. By defining the expected results before the testing phase, testers can compare the actual results with the expected results to determine if the system or component is functioning correctly.

Option D) derived from the code - This option is incorrect because expected results are not derived from the code itself. They are determined based on the requirements or specifications of the system, not the code.

The correct answer is C) most useful when specified in advance. This option is correct because expected results are most effective when they are defined before the testing phase, allowing testers to compare the actual results with the expected results.

Find more quizzes: