PT0-002 · Question #308
PT0-002 Question #308: Real Exam Question with Answer & Explanation
The correct answer is C: A dictionary. A dictionary is a data structure that stores key-value pairs, where each key is unique and corresponds to a specific value. In this scenario, the strings that the script needs to compare would be stored as keys in the dictionary, and the corresponding data to submit next would be
Question
An exploit developer is coding a script that submits a very large number of small requests to a web server until the server is compromised. The script must examine each response received and compare the data to a large number of strings to determine which data to submit next. Which of the following data structures should the exploit developer use to make the string comparison and determination as efficient as possible?
Options
- AA list
- BA tree
- CA dictionary
- DAn array
Explanation
A dictionary is a data structure that stores key-value pairs, where each key is unique and corresponds to a specific value. In this scenario, the strings that the script needs to compare would be stored as keys in the dictionary, and the corresponding data to submit next would be stored as values.
Topics
Community Discussion
No community discussion yet for this question.