On This Page

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

Q1 | ]
Q2 | ] for row in (0, 1, 2)]
Q3 | for col in row] for row in A]
Q4 | -i] for i in range(len(A))]
Q5 | ) for col in range(3)]
Q6 | , row2)] for (row1, row2) in zip(A, B)]
Q7 | , 9], [5, 5, 5])]
Q8 | >>>t[1:3]
Q9 | >>>t[1:-1]
Q10 | >>>[t[i] for i in range(0, len(t), 2)]
Q11 | d["john"]
Q12 | >>>t1 < t2
Q13 | >>>print len(my_tuple)
Q14 | What is the data type of (1)?
Q15 | ])
Q16 | )
Q17 | What type of data is: a=[(1,1),(2,4),(3,9)]?
Q18 | Is the following Python code valid?>>> a,b=1,2,3
Q19 | Tuples can’t be made keys of a dictionary.
Q20 | ,)
Q21 | Which of the following statements create a dictionary?
Q22 | d = {"john":40, "peter":45}
Q23 | john" in d
Q24 | d1 == d2
Q25 | d1 > d2