Computer Science · Data Structures
During a survey, data from multiple users is stored in a Python dictionary with usernames as keys and responses as values. When the same user submits a response again, the old response is replaced. Why?
- 1Python raises a KeyError
- 2Dictionaries do not allow modification
- 3Dictionaries overwrite existing keys with new values✓
- 4Dictionaries can hold duplicate keys and values
Correct answer
Dictionaries overwrite existing keys with new values
Download Single Question PDF
Save this question and verified answer as a clean study sheet with live clickable link.
Share with Friends & Study Groups
Challenge your peer aspirants on WhatsApp or Telegram to solve this question!
Preparing for Computer Science?
Practice full-length mock tests with real exam timers, instant score analysis, and all-India ranking.
Want more practice questions on Data Structures?
Solve complete topic-wise tests with detailed solutions on GkGet.
Related Practice Questions
Recommended practice questions in Computer Science · Data Structures