Lesson 2: Python Syntax and Basic Data Types

MCQ Paper

1. How do you start a single-line comment in Python?





2. Which of these is NOT a valid Python data type?





3. What will type(5.5) return?





4. What is the output of print(5 + 3 * 2)?





5. What is the result of print("Hello" + "World")?





6. What does the input() function return?





7. Which of the following is a mutable data type?





8. What is the correct syntax for defining a variable in Python?





9. What is the output of bool(0) in Python?





10. How do you check the data type of a variable x?





Download Python pdf

Post a Comment

Previous Post Next Post