Python programming MCQ Questions

Post A Question

Classifications:

MCQ Questions Categories:

No collections found!

Are nested if-else are allowed?
icon 1 answers
icon264 Views
icon0 Likes
Output is: print(\"Hello {0[0]} and {0[1]}\".format((\'foo\', \'bin\')))
icon 1 answers
icon747 Views
icon5 Likes
Which of the following data type use Key:pair
icon 1 answers
icon284 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
icon826 Views
icon3 Likes
Guess the output: a=[14,52,7] b=a.copy() b is a
icon 1 answers
icon292 Views
icon0 Likes
Assume the output: a=list((45,)*4) print((45)*4) print(a)
icon 1 answers
icon377 Views
icon0 Likes
Output is: l = [1,2,6,5,7,8] l.insert(9)
icon 1 answers
icon340 Views
icon1 Likes
Predict the output: List = [True, 50, 10] List.insert(2, 5) print(List, \"Sum is: \", sum(List))
icon 1 answers
icon278 Views
icon0 Likes
Output is: x = [i**+1 for i in range(3)] print(x)
icon 1 answers
icon191 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
icon479 Views
icon4 Likes
Which of the following statement is correct
icon 1 answers
icon255 Views
icon0 Likes
Suppose list1 is [1, 3, 2], What is list1 * 2 ?
icon 1 answers
icon252 Views
icon0 Likes
Assume the output : list1 = [1, 2, 3, 4] list2 = [5, 6, 7, 8] print(len(list1 + list2))
icon 1 answers
icon222 Views
icon0 Likes