1. Home
  2. MCQs by exam
  3. Python Interview Dictionaries
  4. Data Science

Python Interview Dictionaries MCQs – Data Science

24 multiple choice questions typical of the Python Interview Dictionaries exam, with answers and explanations. Switch on practice mode to test yourself first.

Showing 1–24 of 24

What is the output of print(dict(a=1, b=2)) in Python?

print(dict(a=1, b=2))
  1. {'a': 1}
  2. {'b': 2}
  3. Error
  4. {'a': 1, 'b': 2} Correct answer
MCQSEXAM Read explanation