Which of the following techniques is particularly useful for finding incorrect use of pointers and arrays?

  1. Binary Fault Injection

  2. Property-based Testing

  3. Source code fault injection

  4. Black Box Debugging


Correct Option: C

AI Explanation

To answer this question, you need to understand different techniques for finding errors related to pointers and arrays.

Option A) Binary Fault Injection - This option is incorrect because binary fault injection is a technique used for injecting faults into the binary code of a program to test its resilience against such faults. It is not specifically focused on finding incorrect use of pointers and arrays.

Option B) Property-based Testing - This option is incorrect because property-based testing is a technique used for testing the behavior of a system against a set of properties or specifications. While it can help in finding some bugs, it is not specifically focused on finding incorrect use of pointers and arrays.

Option C) Source code fault injection - This option is correct because source code fault injection involves modifying the source code of a program to inject faults or errors. By injecting faults related to pointers and arrays, it can help in identifying incorrect use of these constructs.

Option D) Black Box Debugging - This option is incorrect because black box debugging refers to debugging a program without having access to its internal details, such as the source code. It is not specific to finding incorrect use of pointers and arrays.

The correct answer is C) Source code fault injection. This option is correct because it specifically focuses on finding incorrect use of pointers and arrays by modifying the source code of a program.

Find more quizzes: