Question 134Asked in DSSSB TGT Computer Science, 7 Feb 2024, Shift 2 (12:30 PM)

The values in a dictionary can be ______ but the keys in the dictionary should be ______

The values in a dictionary can be ______ but the keys in the dictionary should be ______ in Python programming languages
  1. Arepeated, repeated
  2. Brepeated, unique
  3. Cunique, repeated
  4. Dunique, unique
Show answerHide answer

Correct answer: (B) repeated, unique

Explanation

Dictionary values may repeat, but keys must be unique; assigning to an existing key overwrites its value.

From DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM)

This is question 134 of DSSSB TGT Computer Science PYQ, 7 Feb 2024, Shift 2 (12:30 PM). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.