AllInfoHub Logo

AllInfoHub – MCQ Practice

Basics of Python – Multiple Choice Questions (MCQs)

  1. 73. What is the output of `print(isinstance([1, 2], list))`?

    • A. TRUE
    • B. FALSE
    • C. Error
    • D. None
  2. 74. What is the output of `print(isinstance((1, 2), tuple))`?

    • A. TRUE
    • B. FALSE
    • C. Error
    • D. None
  3. 75. What is the output of `print(isinstance({'a': 1}, dict))`?

    • A. TRUE
    • B. FALSE
    • C. Error
    • D. None
  4. 76. What is the output of `print(isinstance({1, 2}, set))`?

    • A. TRUE
    • B. FALSE
    • C. Error
    • D. None