

















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!


















































Answer: D Explanation: Tuples are immutable; lists, dictionaries, and sets are mutable.
Answer: A Explanation: input() reads a string from the user.
Answer: A Explanation: append() adds an item to the end of a list.
Answer: B Explanation: Modulus returns the remainder: 10 % 3 = 1.
Answer: B Explanation: range(3) produces 0, 1, 2.
A) Tuple B) String C) List D) Integer Answer: C Explanation: Lists are mutable; tuples, strings, and integers are immutable.
A) class MyClass: B) def MyClass: C) struct MyClass: D) object MyClass: Answer: A Explanation: Classes are defined with the class keyword.