1. Home
  2. All MCQs

All MCQs with Answers · Page 1743

43,842 multiple choice questions from every subject, newest first. Switch on practice mode to hide the answers and test yourself.

Newest first

What is the correct way to create a dictionary in Python?

  1. dict = {"key1": "value1", "key2": "value2"} Correct answer
  2. dict = ("key1": "value1", "key2": "value2")
  3. dict = ["key1": "value1", "key2": "value2"]
  4. dict = "key1": "value1", "key2": "value2"
MCQSEXAM Read explanation