Top 1000+ Solved Problem Solving and Python Programming MCQ Questions Answer
Q. Suppose list1 is [3, 4, 5, 20, 5, 25, 1, 3], what is list1 after list1.reverse()?
a. [3, 4, 5, 20, 5, 25, 1, 3]
b. [1, 3, 3, 4, 5, 5, 20, 25]
c. [25, 20, 5, 5, 4, 3, 3, 1]
d. [3, 1, 25, 5, 20, 5, 4, 3]
Q. , 5])?
a. [3, 4, 5, 20, 5, 25, 1, 3, 34, 5]
b. [1, 3, 3, 4, 5, 5, 20, 25, 34, 5]
c. [25, 20, 5, 5, 4, 3, 3, 1, 34, 5]
d. [1, 3, 4, 5, 20, 5, 25, 3, 34, 5]
Q. >>>"Welcome to Python".split()
a. [“welcome”, “to”, “python”]
b. (“welcome”, “to”, “python”)
c. {“welcome”, “to”, “python”}
d. “welcome”, “to”, “python”
Q. To which of the following the “in” operator can be used to check if an item is in it?
a. lists
b. dictionary
c. set
d. all of the mentioned