CompTIA PenTest+ (PT0-002) — Question 230
A penetration tester is developing exploits to attack multiple versions of a common software package. The versions have different menus and features, but they have a common log-in screen that the exploit must use. The penetration tester develops code to perform the log-in that can be used by each of the exploits targeted to a specific version.
Which of the following terms is used to describe this common log-in code example?
Answer options
- A. Conditional
- B. Library
- C. Dictionary
- D. Subapplication
Correct answer: B
Explanation
The correct answer is 'Library' because it refers to a collection of code that can be reused across different parts of a program or in different programs. The other options do not accurately describe the nature of the common log-in code, as 'Conditional' refers to logic structures, 'Dictionary' relates to data structures, and 'Subapplication' implies a secondary application rather than reusable code.