On This Page

This set of Problem Solving and Python Programming Multiple Choice Questions & Answers (MCQs) focuses on Problem Solving And Python Programming Set 31

Q1 | >>>m = [[x, x + 1, x + 2] for x in range(0, 3)]
Q2 | m = [[x, y] for x in range(0, 4) fo r y in range(0, 4)]
Q3 | print(v)
Q4 | print(v)
Q5 | print(matrix[i][1], end = " ")
Q6 | print(data[1][0][0])
Q7 | print(ttt(data[0]))
Q8 | print(points)
Q9 | for i in range(3)]; print(x);
Q10 | Which of the following is the same as list(map(lambda x: x**-1, [1, 2, 3]))?
Q11 | for x in l]
Q12 | for y in l2]
Q13 | Write the list comprehension to pick out only negative integers from a given list ‘l’.
Q14 | Write a list comprehension for number and its cube for l=[1, 2, 3, 4, 5, 6, 7, 8, 9].
Q15 | Write a list comprehension for producing a list of numbers between 1 and 1000 that are divisible by 3.
Q16 | Write a list comprehension to produce the list: [1, 2, 4, 8, 16……212].
Q17 | , x is even} (including zero)
Q18 | , i)]
Q19 | ]
Q20 | ] for row in (0, 1, 2)]
Q21 | for col in row] for row in A]
Q22 | -i] for i in range(len(A))]
Q23 | ) for col in range(3)]