MCQs on Python Numeric Types
Python Numeric Types MCQs: Challenge Yourself and Strengthen Your Skills! Looking to test your knowledge of Python numeric types? Look no further! These multiple-choice questions will challenge your skills and help you master Python's integer, float, and complex data types. Try your hand at these MCQs and see how well you know Python's numeric types! 1. Which of the following is not a numeric data type in Python? a) int b) float c) bool d) str View Answer Answer: d str is not a numeric data type in Python, it is a sequence of characters. 2. What is the result of the following expression: 3 / 2? a) 1.5 b) 1 c) 2 d) 0.5 View Answer Answer: a The result of 3 / 2 in Python 3.x is a float value of 1.5 3. Which of the following is a built-in function for converting a string to an integer in Python? a) str() b) int() c) float() d) bool() View Answer Answer: b The int() function can be used to convert a string to an...