Python programming MCQ Questions

Post A Question

Classifications:

MCQ Questions Categories:

No collections found!

Are nested if-else are allowed?
icon 1 answers
icon350 Views
icon0 Likes
Output is: print(\"Hello {0[0]} and {0[1]}\".format((\'foo\', \'bin\')))
icon 1 answers
icon851 Views
icon6 Likes
Which of the following data type use Key:pair
icon 1 answers
icon377 Views
icon1 Likes
Output is: a=[1,2,3,4] b=[sum(a[0:x+1]) for x in range(0,len(a))] print(b)
icon 1 answers
icon1029 Views
icon3 Likes
Guess the output: a=[14,52,7] b=a.copy() b is a
icon 1 answers
icon371 Views
icon0 Likes
Assume the output: a=list((45,)*4) print((45)*4) print(a)
icon 1 answers
icon803 Views
icon0 Likes
Output is: l = [1,2,6,5,7,8] l.insert(9)
icon 1 answers
icon734 Views
icon1 Likes
Predict the output: List = [True, 50, 10] List.insert(2, 5) print(List, \"Sum is: \", sum(List))
icon 1 answers
icon410 Views
icon0 Likes
Output is: x = [i**+1 for i in range(3)] print(x)
icon 1 answers
icon237 Views
icon0 Likes
Assume the output 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 = element print(v)
icon 1 answers
icon563 Views
icon4 Likes
Which of the following statement is correct
icon 1 answers
icon336 Views
icon0 Likes
Suppose list1 is [1, 3, 2], What is list1 * 2 ?
icon 1 answers
icon338 Views
icon0 Likes
Assume the output : list1 = [1, 2, 3, 4] list2 = [5, 6, 7, 8] print(len(list1 + list2))
icon 1 answers
icon308 Views
icon0 Likes