1. What will be the output of the following code? x = [ 1 , 2 , 3 ] y = x y.append( 4 ) print (x) A) [1, 2, 3] B) [1, 2, 3, 4] ✅ C) [4] D) Error Explanation: Lists are mutable, and y references the same object as x . So changes in y affect x . 2. Which of the following is not a valid keyword in Python? A) pass B) assert C) eval D) then ✅ Explanation: then is not a Python keyword. 3. What is the output? print ( bool ( 0 ), bool ( 3.5 ), bool (- 1 )) A) False True True ✅ B) False False False C) True True True D) Error Explanation: In Python, 0 is False. Any non-zero value (positive or negative) is True. 4. Which of these data types is immutable? A) list B) dict C) tuple ✅ D) set Explanation: Tuples are immutable. Lists, dicts, and sets are mutable. 5. What will the following code output? def f ( a, b= 2 , c= 3 ): return a + b + c print (f( 1 , c= 5 )) A) 6 B) 8 ✅ C) 10 D) Error Explanation: a=1, b=2 (default), c=5 (overridden) → ...