Loading, please wait...

Python Multiple Choice Questions And Answers

Search here for MCQs

Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:

List of Programming Full Forms 

41. What is the output?

print([i.lower() for i in "HELLO"])
  •  [‘h’, ‘e’, ‘l’, ‘l’, ‘o’].
  • hello
  • hel
  • HELLO

42. In which of the following we can use "in" operator to check the elements

  • dictionary
  • list
  • tuple
  • All of the above

43. Assume the output

list1 = [1, 2, 3, 4] list2 = [5, 6, 7, 8] print(len(list1 + list2))
  • 6
  • 36
  • 8
  • 4

44. Suppose list1 is [1, 3, 2], What is list1 * 2 ?

  • [2, 6, 4].
  • [1, 3, 2, 3, 2, 1]
  • [1, 3, 2, 1, 3]
  • [1, 3, 2, 1, 3, 2] .

45. Which of the following statement is correct

  • List is mutable & Tuple is immutable
  • List is immutable
  • Tuple is mutable
  • None of the above