Online Quiz of Computer Science class XII
CHAPTER-1 Revision of Python of class XI
Sign in to Google to save your progress. Learn more
Name of student *
Name of KV *
1. Which of the following is an invalid variable name? *
2 points
2. Following set of commands is executed in shell, what will be the output?                                   >>>str="hello"                                                                                                                                                                   >>>str[:2] *
2 points
3. What type is the object below?                                                                                                             L=(1,2,'hello',1 )                                            
2 points
Clear selection
4.What is the value of this expression : 22%3.0 ?
2 points
Clear selection
5.What is the  value of x?                                                                                                                                                                                                x=int(13.25+4/2)
2 points
Clear selection
6. Which of the following expression is an example of type casting ?                                                                            
2 points
Clear selection
7. What is the output of this code?                                                                                                                         >>> int("3"+"4")                                                                      
2 points
Clear selection
8. What is the result of this code?                                                                                                                                                 def print_double(x):                                                                                                                                                                                                                                                  ..... print(2**x)                                                                                                             >>>print_double(3)                                                                    
2 points
Clear selection
9.  What is output of following code :                                                                                                                                                                            x = ['ab', 'cd']                                                                                                                                                                                                         for i in x:                                                                                                                                                                                   .....i.upper()                  #..... means indentation                                                                                                                           print(x)
2 points
Clear selection
10.What will be the output of following code?                                                                                                                                                                i = 1                                                                                                                                                                                                                                                                                                                                   while True:                                                                                                                                                                                                                                                                                                                    ....if i%3 == 0:                                                                                                                                                                                                                                    ...........break                                                                                                                                                                                                                              print(i)                                                                                                                                                                                                                                                             i + = 1
2 points
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