Python Quiz - 2
(For CS Class XII - Term 1)
Sign in to Google to save your progress. Learn more
Email *
Choose odd one out :
1 point
Clear selection
Which one of the following is a logical operator:
1 point
Clear selection
Which of the following statements is True:
1 point
Clear selection
What is the length of the tuple (1,2,(3,4,5))
1 point
Clear selection
The function readlines() reads the lines of a text file, starting from:
1 point
Clear selection
Which of the following is not a suitable argument to the function max()
1 point
Clear selection
Which command we can use to remove string “nib” from list1. Given, list1=['pen','nib','ink','cap']
1 point
Clear selection
In which file format the end of the line is denoted by ‘\n’ and ‘\r’?
1 point
Clear selection
Which method is used to write data in a binary file:
1 point
Clear selection
Number of lines required for one record in a csv file:
1 point
Clear selection
Which of the following dictionary methods does not accept any argument?
1 point
Clear selection
What will be the output of the following code:
1 point
Captionless Image
Clear selection
What will be the output of the following code:
1 point
Captionless Image
Clear selection
What will be the output of the following code?
1 point
Captionless Image
Clear selection
What is the meaning of ‘r+b’ in binary mode?
1 point
Clear selection
The read() method returns
1 point
Clear selection
A csv file cannot be opened with
1 point
Clear selection
Which of the following is not a declaration of the dictionary?
1 point
Clear selection
If d={'a':'ant','b':'bat','c':'cat'}, then what will be the output of the statement: print(len(d))
1 point
Clear selection
Which statement does not show any error after execution? Given L=[1,2,3,4]  
1 point
Clear selection
What will be the output of the following code:
1 point
Captionless Image
Clear selection
Which statement(s) are true about the pickle module in data file handling:
1 point
Clear selection
Evaluate: 15%6//7
1 point
Clear selection
Evaluate: 15//7%6
1 point
Clear selection
What will be the output of the following code?
1 point
Captionless Image
Clear selection
Submit
Clear form
This content is neither created nor endorsed by Google. Report Abuse - Terms of Service - Privacy Policy