Tag: Lists

  • Python Questions and Answers – Lists – 6

    Python Questions and Answers – Lists – 6

    Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-6”. Python Multiple Choice Questions & Answers (MCQs) focuses on “Lists-6”. Q 1. What will be the output of the following Python code? a=[10,23,56,[78]] b=list(a) a[3][0]=95 a[1]=34 print(b) A. [10,34,56,[78]] B. [10,23,56,[95]] C. [10,23,56,[78]] D. [10,34,56,[95]] Show Answer Answer:-B. [10,23,56,[95]] Explanation The above copy is a…

  • Python Questions and Answers – Lists – 5

    Python Questions and Answers – Lists – 5

    Python Questions and Answers – Lists – 5 Python Question Paper focuses on “Lists”. Q 1. What will be the output of the following Python code? print(“Hello, World!”[7:]) values = [[3, 4, 5, 1], [33, 6, 1, 2]]   v = values[0][0] for lst in values: for element in lst: if v > element: v…

  • Python Questions and Answers – Lists – 3

    Python Questions and Answers – Lists – 3

    Python Programming Questions & Answers focuses on “Lists”. Q 1. 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,…

You cannot copy content of this page