Python MCQ Quiz - Part-2

 

Python quiz or Python3 quiz , Solve following python MCQs quizzes. These questions are mcq so based on their output choose any one of the correct options. You can ask your queries related to these questions in comment, we will try to answer your query.

 


 

1. What is output for following code snippet?

a = [1,2,3]
print(a[::-1])




 

2. Which function of dictionary gets all the keys from the dictinory?





 

3.Which keyword is not supported in python3?





 

4. How can you concatenate two tuples?

tupple1 = (1,"xyz")
tupple2 = (2, "pqrs")




 

5. What is output for following code snippet?

  lst = [0,1,2,3]
  for lst[-1] in lst:
  	print(lst[-1])
  




 

6. What is output for following code snippet?

  number = 2
  for i in range(number):
  	number += 1
    print(number)
  




Post a Comment

0 Comments