1. Which of the following is a valid variable name in Python?
Explanation: Variable names cannot start with numbers or contain special characters like #, and class is a reserved keyword.
Report for correction2. What is the type of the result of 3 / 2 in Python 3?
Explanation: Division in Python 3 always returns a float.
Report for correction3. "What is the output of type(""123"")?"
Explanation: Anything inside quotes is treated as a string.
Report for correction4. What is the default type of a variable assigned as a = True?
Explanation: True is a boolean value.
Report for correction5. Which one of these is not a mutable data type?
Explanation: Tuples are immutable in Python.
Report for correction7. Which of the following creates an empty dictionary?
Explanation: {} creates an empty dictionary in Python.
Report for correction8. What will type(5 + 3.0) return?
Explanation: int + float → float (automatic type promotion).
Report for correction9. What is the output of type([1, 2, 3])?
Explanation: Square brackets [] define a list.
Report for correction10. What is the type of variable a = {1, 2, 3}?
Explanation: Curly braces with values define a set if not key-value pairs.
Report for correction11. Which of the following is used to define a multi-line string?
Explanation: "Triple quotes ''' or """""" are used for multi-line strings."
Report for correction12. What is the type of range(5) in Python 3?
Explanation: range() returns a range object in Python 3.
Report for correction13. What is the output of type(10j)?
Explanation: 10j represents an imaginary part of a complex number.
Report for correction14. Which keyword is used to check the type of a variable?
Explanation: type() is used to check the type of an object.
Report for correction16. Which of the following is an immutable data type?
Explanation: Tuples cannot be changed once created.
Report for correction17. What is the type of bool(0)?
Explanation: bool(0) returns False, and the type is bool.
Report for correction18. Which of the following is used to declare a variable in Python?
Explanation: Python does not require a keyword to declare variables.
Report for correction19. "What is the result of int(""10"")?"
Explanation: int() converts a valid numeric string to an integer.
Report for correction