Tag: testing

Questions Related to testing

The cost of fixing a fault-

  1. is not important

  2. increases the later a fault is found

  3. decreases the later a fault is found

  4. can never be determined


Correct Option: B

Which of the following is true of V-model?

  1. It includes the verification of designs.

  2. It states that modules are tested against user requirements.

  3. It specifies the test techniques to be used.

  4. It only models the testing phase.


Correct Option: B
  1. When the specified number of faults are found.

  2. When the test completion criteria are met.

  3. When all high and medium priority tests are complete.

  4. When all statements have been executed.


Correct Option: B
  1. Features to be tested

  2. Incident reports

  3. Risks

  4. Schedule


Correct Option: B

Which of the following is NOT a white box technique?

  1. Statement testing

  2. Path testing

  3. Data flow testing

  4. State transition testing


Correct Option: D
Explanation:

To answer this question, the user needs to know about white box testing techniques.

White box testing techniques are also known as structural testing techniques. These techniques are used to test the internal structure of the software system. In white box testing, the tester has knowledge of the internal workings of the system being tested.

Now, let's go through each option to determine which one is NOT a white box technique:

A. Statement testing: This is a white box testing technique where each statement in the source code is executed at least once. The purpose of this testing is to ensure that every statement in the code has been executed and tested.

B. Path testing: This is a white box testing technique where all possible paths through the software are tested. The purpose of this testing is to ensure that all logical paths through the software have been executed and tested.

C. Data flow testing: This is a white box testing technique where the flow of data through the software is tested. The purpose of this testing is to ensure that data is correctly input, processed, and output by the software.

D. State transition testing: This is a black box testing technique that tests the response of the system to different input conditions. The purpose of this testing is to ensure that the system responds correctly to different input conditions.

Therefore, option D is NOT a white box technique. It is a black box technique.

The Answer is: D

In prioritising what to test, the most important objective is to?

  1. find as many faults as possible.

  2. test high risk areas.

  3. obtain good test coverage.

  4. test whatever is easiest to test.


Correct Option: B

Testing OO class operations is made more difficult by?

  1. encapsulation

  2. inheritance

  3. polymorphism

  4. both b and c


Correct Option: D

AI Explanation

To answer this question, we need to understand the concept of object-oriented (OO) class operations.

Option A) Encapsulation - This option is incorrect because encapsulation is a fundamental principle of object-oriented programming that promotes data hiding and abstraction. While encapsulation can make testing more challenging, it is not the only factor that contributes to the difficulty of testing OO class operations.

Option B) Inheritance - This option is incorrect because inheritance is another fundamental concept in object-oriented programming that allows classes to inherit properties and behaviors from parent classes. While inheritance can introduce complexity in testing, it is not the only factor that contributes to the difficulty of testing OO class operations.

Option C) Polymorphism - This option is incorrect because polymorphism is a feature of object-oriented programming that allows objects of different classes to be treated as objects of a common superclass. While polymorphism can introduce challenges in testing, it is not the only factor that contributes to the difficulty of testing OO class operations.

Option D) Both B and C - This option is correct because both inheritance and polymorphism can make testing OO class operations more challenging. Inheritance introduces the concept of subclasses inheriting methods and properties from parent classes, which can lead to complex dependencies and interactions. Polymorphism allows objects of different classes to be used interchangeably, which can introduce additional complexity in testing.

Therefore, the correct answer is D) both B and C.

  1. cycles in the program

  2. errors in the program

  3. independent logic paths in the program

  4. statements in the program


Correct Option: C

The testing technique that requires devising test cases to exercise the internal logic of a software module is called?

  1. behavioral testing

  2. black-box testing

  3. grey-box testing

  4. white-box testing


Correct Option: D

What is the unit of measure used by the IFPUG Functional Size Measurement Method

  1. Function points

  2. External Interface Files

  3. Internal Logical Files

  4. Feature points


Correct Option: A