XII/COMPUTER SCIENCE/C1/PYTHON REVISION TOUR/TEST 2
Sign in to Google to save your progress. Learn more
Name of the student
1. Write the output of the following.                                               A = tuple(“Python”)                                                               print(A)
1 point
Clear selection
2. In tuples values are enclosed in _____________
1 point
Clear selection
3. Write the output of the following:                                     a=(“Amit”, “Sumit”,”Ashish”,”Sumanta”)                 print(max(a))
1 point
Clear selection
4. Which of the following is not a tuple?
1 point
Clear selection
5. What will be the result of the following                code?                                                                                                     dict = {"Jo" : 1, "Ra" : 2}                                          dict.update({"Ph":2})                                                                   print (dict)
1 point
Clear selection
6. Write the output of the following:                                         t1 = (1,2)                                                                                                            t2 = (2,1)                                                                                                         t1 == t2
1 point
Clear selection
7. What is the output of the following ?                                                   x = 123                                                                                                       for i in x:                                                                                              print(i)
1 point
Clear selection
8.  To calculate 2 raised to the power 5 which            of following can be used: -
1 point
Clear selection
9. What will be the output of the following code segment?                                                                                            l=['A','a','Aa','aA']                                                              print(max(l))
1 point
Clear selection
10. How many times will the following code be executed                                                                                                 for i in range(1,15,5):                                                           print(i,end=’,’)
1 point
Clear selection
11.What will be the output of the following code segment?                                                                                                   list1 =['Red', 'Green', 'Blue', 'Cyan', 'Magenta',                'Yellow', 'Black']print(list1[-4:0:-1])                                                                                                            
1 point
Clear selection
12.  What is the output of this expression,               3*1**3?
1 point
Clear selection
13. Choose odd one out : -
1 point
Clear selection
14. What will be the output of the following code segment?                                                                                                     l=['A','a','Aa','aA']                                                                print(max(l))
1 point
Clear selection
15. Which one of the followings is logical operator:
1 point
Clear selection
16. What is the length of the given tuple?   t1=(1,2,(3,4,5))
1 point
Clear selection
17. Which is not a string out of the followings: -
1 point
Clear selection
18. Name the module which will be needed to use                the function max( ) : -
1 point
Clear selection
19. Which command we can use to remove string “hello” from list1, Given, list1=[“hello”]
1 point
Clear selection
20. Which of the following is not a function of tuple?
1 point
Clear selection
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