Python Revision
The quiz contains questions from the basic concepts studied in class XI. Read the questions carefully and answer accordingly. Ignore any indentation error and perform any indentation required at your own
Sign in to Google to save your progress. Learn more
JAWAHAR NAVODAYA VIDYALAYA,KAREERA (MOHINDERGARH)
Enter Your Name *
Class *
WhatsApp Number *
E-Mail Id *
1. What is the output of the following code snippet?                                             aLst = [1,2,3,4,5,6,7,8,9]                                               print(aLst[::3]) *
1 point
2.  What is the output of the following range() function for num in range(2,-5,-1): print(num, end=", ")? *
1 point
3. What is the output of the following if statement a, b = 12, 5 if a + b: print('True') else: print('False') *
1 point
4. Python Language uses:- *
1 point
5. Give the output of the following:- print(5>10) *
1 point
6. what will be the output of the following code snippet?                                                                                                      values = []                                                                                                         for i in range(1,4):                                                                              values.append(i)                                                                   print(values) *
1 point
7. What is the length of the tuple given below? (((('a',1),'b','c'),'d',2),'e',3) *
1 point
8. What does the each of the following expression evaluate to ?                                                                         L = [“These”, [“are”, “a”,  “few”, “words”], “that”, “we”, “will”, “use”]                                                                                      print(L[3:4]+L[1:2] ) *
1 point
9. What will be the output of the following code?tuple_a = 'a','b'                                                                                                tuple_b =('a','b')                                                                                             print(tuple_a==tuple_b)
1 point
Clear selection
10. What will be the output of the following code?                          dict={}                                                                                                        dict[1] =1        dict['1']=2          dict[1.0]=4                                      sum=0                                                                                                      for k in dict:                                                                               sum+=dict[k]                                                                             print(sum) *
1 point
11. Which of the following is not a keyword in Python? *
1 point
12.  The keys of a dictionary must be immutable types. *
1 point
13. Predict the output of the following code snippet            aDict = {‘Bhavna’:1, ‘Richard’:2, ‘Firoza’:10, 'Arsh':20}                                                                                  temp = “ “                                                                                                  for key in aDict:                                                                                                   if temp < key :                                                                                                       temp = key                                                                                   print(temp) *
1 point
14. Which of these about a dictionary is false? *
1 point
15. What is the value of x in the following expression:         x=in(13.25+4/2) *
1 point
Submission ID (skip this field) *
⚠️  DO NOT EDIT this field or your time will not be recorded.
Submit
Clear form
Never submit passwords through Google Forms.
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy