On This Page

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

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