CBSE Class 11 Computer Science Question 7 of 88

Tuples and Dictionary — Question 7

Back to all questions
7
Question

Question 7

Assertion (A): Keys of the dictionaries must be unique.

Reasoning (R): The keys of a dictionary can be accessed using values.

  1. Both A and R are true and R is the correct explanation of A.
  2. Both A and R are true but R is not the correct explanation of A.
  3. A is true but R is false.
  4. A is false but R is true.
Answer

A is true but R is false.

Explanation
The keys of dictionaries in Python must be unique and immutable. Values in a dictionary can be accessed using their corresponding keys.