XII CS EM ONLINE TEST - 13      
13. PYTHON AND CSV FILES
one mark questions :
Prepared by S. Saminathan , GHSS - MUKHASAPARUR,CUDDALORE DT
Sign in to Google to save your progress. Learn more
Register No *
Name *
School *
1. A CSV file is also known as a .... *
1 point
2. The expansion of CRLF is *
1 point
3. Which of the following module is provided by Python to do several operations on the CSV files? *
1 point
4. Which of the following mode is used when dealing with non-text files like image or exe files? *
1 point
5. Which of the following is a string used to terminate lines produced by writer()method of csv module? *
1 point
6.  The command used to skip a row in a CSV file is *
1 point
7. What is the output of the following program? import csv
d=csv.reader(open('c:\PYPRG\ch13\city.csv'))

next(d)

for row in d:

print(row)

if the file called “city.csv” contain the following details
chennai,mylapore
mumbai,andheri
*
1 point
8. CSV- Expand ....... *
1 point
9. Which of the following creates an object which maps data to a dictionary? *
1 point
10. Making some changes in the data of the existing file or adding more data is called *
1 point
11. What will bewritten inside the file test.csv using the following program?

Import csv

D=[[‘exam’],[‘quarterly’],[‘halfyearly’]]

Csv.register_dialect(‘M’,lineterminator=’\n’)

Wr=csv.writer(f,dialect=’M’)

Wr.writerows(D)

f.close( )

A) Exam Quarterly half yearly      B) Exam half yearly Quarterly            

C)     E                                           D) Exam

          Q                                               Quarterly

           H                                               half yearly

*
1 point
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