Image

Anyone Can Code.





Image


Tutorial 1: Quiz



Kriish Mehta




Question 1: What is the purpose of indentation in Python?



Question 2: Which of the following is true for indentation in Python?



Question 3: When do we use indentation?



Question 4: Which of the following is NOT a keyword in Python?



Question 5: In Python, the keywords are



Question 6: In Python, keywords can be used for



Question 7: Which of the following correctly assigns the value '10' to a variable 'x' in Python?



Question 8: What will be the output of the following piece of code?


 s = 50
 S = 'Python'
 print(s)



Question 9: Which of the following is true for variables?



Question 10: Which of the following is a legal variable name



Question 11: Which of the following is NOT a legal variable name?



Question 12: What are comments in Python used for?



Question 13: What is the correct way to write a comment in Python?



Question 14: What is the output of the following piece of code?


  print("hi")
  #print("world")
  print("!")
  


Question 15: Can we write multiline comments in Python? If yes, then how?







Score =




Copyright © 2020, Q-Programming | Created by Arjun Sodhi, Balpreet Juneja and Sammarth Kumar | Developed and Designed by Sammarth Kumar