Python Multiple Choice Questions – Bitwise

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Bitwise”. 1. What will be the output of the following Python code snippet if x=1? x<<2 a) 8 b) 1 c) 2 d) 4 2. What will be the output of the following Python expression? bin(29) a) ‘0b10111’ b) ‘0b11101’ c) ‘0b11111’ d) … Read more

advertisement

Python Questions and Answers – Precedence and Associativity – 2

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Precedence and Associativity – 2”. 1. What will be the output of the following Python expression? print(4.00/(2.0+2.0)) a) Error b) 1.0 c) 1.00 d) 1 2. What will be the value of X in the following Python expression? X = 2+9*((3*12)-8)/10 a) 30.0 … Read more

advertisement

Python Questions and Answers – Precedence and Associativity – 1

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Precedence and Associativity – 1”. 1. The value of the expressions 4/(3*(2-1)) and 4/3*(2-1) is the same. a) True b) False 2. What will be the value of the following Python expression? 4 + 3 % 5 a) 4 b) 7 c) 2 … Read more

advertisement

Python Questions and Answers – Numeric Types

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Numeric Types”. 1. What is the output of print 0.1 + 0.2 == 0.3? a) True b) False c) Machine dependent d) Error 2. Which of the following is not a complex number? a) k = 2 + 3j b) k = complex(2, … Read more

advertisement

Python Questions and Answers – Core Data types

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Core Data Types”. 1. Which of these in not a core data type? a) Lists b) Dictionary c) Tuples d) Class 2. Given a function that does not return any value, What value is thrown by default when executed in shell. a) int … Read more

advertisement

Python Questions and Answers – Basic Operators

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Basic Operators”. 1. Which is the correct operator for power(xy)? a) X^y b) X**y c) X^^y d) None of the mentioned 2. Which one of these is floor division? a) / b) // c) % d) None of the mentioned 3. What is … Read more

advertisement

Python Questions and Answers – Variable Names

This set of Python Multiple Choice Questions & Answers (MCQs) focuses on “Variable Names”. 1. Is Python case sensitive when dealing with identifiers? a) yes b) no c) machine dependent d) none of the mentioned 2. What is the maximum possible length of an identifier? a) 31 characters b) 63 characters c) 79 characters d) … Read more

advertisement
Subscribe to our Newsletters (Subject-wise). Participate in the Sanfoundry Certification contest to get free Certificate of Merit. Join our social networks below and stay updated with latest contests, videos, internships and jobs!

Youtube | Telegram | LinkedIn | Instagram | Facebook | Twitter | Pinterest
Manish Bhojasia - Founder & CTO at Sanfoundry
Manish Bhojasia, a technology veteran with 20+ years @ Cisco & Wipro, is Founder and CTO at Sanfoundry. He lives in Bangalore, and focuses on development of Linux Kernel, SAN Technologies, Advanced C, Data Structures & Alogrithms. Stay connected with him at LinkedIn.

Subscribe to his free Masterclasses at Youtube & discussions at Telegram SanfoundryClasses.