
PYTHON AND CSV FILES
Quiz by Karan Cindae
Tag the questions with any skills you have. Your dashboard will track each student's mastery of each skill.
A CSV file is also known as a …
The expansion of CRLF is
Which of the following module is provided by Python to do several operations on the CSV files?
Which of the following mode is used when dealing with non-text files like image or exe files?
The command used to skip a row in a CSV file is
Which of the following is a string used to terminate lines produced by writer()method of csv module?
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

Which of the following creates an object which maps data to a dictionary?
Making some changes in the data of the existing file or adding more data is called
What will be written inside the file test.csv using the following program
import csv
D = [['Exam'],['Quarterly'],['Half yearly']]
csv.register_dialect('M',lineterminator = '\n')
with open('c:\pyprg\ch13\line2.csv', 'w') as f: wr = csv.writer(f,dialect='M') wr.writerows(D)
f.close()