XII/COMPUTER SCIENCE/C1/PYTHON REVISION TOUR/TEST 1
Sign in to Google to save your progress. Learn more
Name of the student
1. Choose valid identifier : -
1 point
Clear selection
2. Which one of the followings is a jump statement:
1 point
Clear selection
3. Which of the following is a mutable sequence data type:  
1 point
Clear selection
4.Suppose t = (1, 2, 4, 3), which of the following is                  incorrect?
1 point
Clear selection
5. Which of the following is not a proper file access                        mode?          
1 point
Clear selection
6. Which of the following can be used to delete item(s) from a dictionary?
1 point
Clear selection
7. If no argument is given, then pop() returns and removes the _____element of the list. Fill in the Blank space.
1 point
Clear selection
8. What will be the output of below Python code?tupl=([2,3],"abc",0,9)tupl[0][1]=1print(tupl)
1 point
Clear selection
9.  Which of the following creates a tuple?
1 point
Clear selection
10. Choose correct output for the following code      def check(x,y):                                                                                if x != y:                                                                                         return x+5                                                                                 else:                                                                                      return y+10                                                          print(check(10,5))
1 point
Clear selection
11. What type of error is shown by following statement?>>>t1 =(1, 2)                                                                          >>>t2
1 point
Clear selection
12.  What will be the output of the following code segment?                                                                               list1 = [10,20,30,10,40,10]                        print(list1.index(10))
1 point
Clear selection
13. Find the output of the following python program  for i in range(1,15,4):                                                              print(i, end=’,’)  
1 point
Clear selection
14. How many times will the following code be executed?                                                                              a=5                                                                                         while a>0:                                                                               print(a)                                                                     print(“Bye”)
1 point
Clear selection
15. Which command can we use to insert 5 to the third position in list1?
1 point
Clear selection
16. Choose the correct output/s from the below code:       Import random                                                                                  AR  = [20, 30,40,50, 60, 70]                                                               FROM = random.randint(1,3)                                                             TO = random.randint(2,4)                                                                     for K in range(FROM, TO+1):                                                print(AR[K], end=’#’)
1 point
Clear selection
17. Write the output of the following:                                        a=(23,34,65,20,5)                                         print(a[0]+a.index(5))
1 point
Clear selection
18. Select correct Boolean literal :
1 point
Clear selection
19. Which one of the following is not a                keyword:
1 point
Clear selection
20. Which command can we use to insert 5 at the third position in list1?
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