Tag: testing

Questions Related to testing

  1. Focused Testing, Testing coverage, control flow

  2. Data integrity, Internal boundaries, algorithm specific testing

  3. Both A and B

  4. Either A or B


Correct Option: A

Identify which one is an internal failure

  1. Delaying tester’s access to areas of the code

  2. Replacement with updated product

  3. Training programmers to make or miss fewer bugs

  4. Testing by Tech. Support


Correct Option: C

Structural Testing is

  1. Same as black box testing B

  2. Same as white box testing

  3. Same as functional testing

  4. None of the above.


Correct Option: B

Which statement is relevant for test driver?

  1. A program that directs the execution of another program against a collection of test data sets. Usually the test driver also records and organizes the output generated as the tests are run.

  2. A document that identifies test items and includes current status and location information

  3. A document describing any event during the testing process that requires investigation

  4. A software item that is an object of testing.


Correct Option: B
  1. Another name for decision coverage

  2. Another name for all-edges coverage

  3. Another name for basic path coverage

  4. All the above


Correct Option: C

Desk Checking is

  1. Same as code walkthrough

  2. Same as code inspection

  3. Verification of code by the developers

  4. None of the above.


Correct Option: D

The following example is a If (condition1 && (condition2 || function1())) statement1; else statement2;

  1. Decision coverage

  2. Condition coverage

  3. Statement coverage

  4. Path Coverage


Correct Option: B

AI Explanation

To answer this question, we need to understand the different types of coverage criteria used in software testing.

A. Decision coverage - This coverage criteria ensures that each decision point (such as an if statement) in the code is evaluated to both true and false at least once. In this example, the if statement has one decision point, but the conditions inside the if statement are not evaluated separately. Therefore, decision coverage is not satisfied.

B. Condition coverage - This coverage criteria ensures that each condition in a decision point is evaluated to both true and false at least once. In this example, there are two conditions: condition1 and (condition2 || function1()). Condition coverage is satisfied because both conditions are evaluated separately.

C. Statement coverage - This coverage criteria ensures that each statement in the code is executed at least once. In this example, there are two statements: statement1 and statement2. Statement coverage is satisfied because both statements are executed.

D. Path coverage - This coverage criteria ensures that every possible path through the code is executed at least once. In this example, there are multiple paths, depending on the evaluation of the conditions. Path coverage is not satisfied.

Therefore, the correct answer is B) Condition coverage. This coverage criteria ensures that each condition in a decision point is evaluated to both true and false at least once, which is satisfied in this example.

  1. A set of test cases for testing classes of objects

  2. An input or output range of values such that only one value in the range becomes a test case

  3. An input or output range of values such that each value in the range becomes a test case

  4. An input or output range of values such that every tenth value in the range becomes a test case.


Correct Option: B

Exhaustive Testing is

  1. Is impractical but possible

  2. Is practically possible

  3. Is impractical and impossible

  4. Is always possible


Correct Option: A

AI Explanation

To answer this question, we need to understand what exhaustive testing means.

Exhaustive testing is a testing technique where every possible input combination is tested. It aims to cover all possible scenarios and combinations to ensure that the system behaves correctly under all conditions.

Now let's go through each option and analyze them:

Option A) Is impractical but possible - This option is correct. Exhaustive testing is considered impractical because it would require testing every possible input combination, which can be time-consuming and resource-intensive. However, in theory, it is possible to perform exhaustive testing.

Option B) Is practically possible - This option is incorrect. Exhaustive testing is not considered practically possible due to the large number of possible input combinations.

Option C) Is impractical and impossible - This option is incorrect. While exhaustive testing is impractical, it is not impossible.

Option D) Is always possible - This option is incorrect. Exhaustive testing is not always possible due to the large number of possible input combinations.

Therefore, the correct answer is option A) Is impractical but possible.

  1. Statement Testing and coverage

  2. Decision Testing and coverage

  3. Condition Coverage

  4. Boundary value analysis


Correct Option: D