nerdexam
CompTIA

PT0-002 · Question #308

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 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…

Attacks and Exploits

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

How the community answered

(26 responses)
  • A
    12% (3)
  • B
    4% (1)
  • C
    81% (21)
  • D
    4% (1)

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

#Data Structures#Algorithm Efficiency#Exploit Development#Programming Concepts

Community Discussion

No community discussion yet for this question.

Full PT0-002 Practice