21. Which of the following is incorrect?
a) x = 0b101
b) x = 0x4f5
c) x = 19023
d) x = 03964
22. What is the result of cmp(3, 1)?
a) 1
b) 0
c) True
d) False
23. Which of the following is incorrect?
a) float(‘inf’)
b) float(‘nan’)
c) float(’56’+’78’)
d) float(’12+34′)
24. What does 3 ^ 4 evaluate to?
a) 81
b) 12
c) 0.75
d) 7
Page 1 2 3
Python Interview Questions (MCQs)
We have divided these Python Questions and Answers into various parts based on the topics. Open the Topic of your choice and Practice these MCQs.