CSV FILES
a) Identify the suitable code for Statement-1.
a) csv file
b) CSV
c) csv
d) Csv
Correct Answer : c) csv
b) Identify the correct parameters for Statement-2?
a) "School.csv","w"
b) "Student.csv","w"
c) "Student.csv","r"
d) "School.csv","r"
Correct Answer: b) "Student.csv","w"
c) Choose the function name (with argument) to complete Statement-3
a) reader(csvfh)
b) reader(MyFile)
c) writer(csvfh)
d) writer(MyFile)
Correct Answer : c) writer(csvfh)
d) Identify the suitable code for Statement-4.
a) 'ROLL_NO', 'NAME', 'CLASS', 'SECTION'
b) ROLL_NO, NAME, CLASS, SECTION
c) 'roll_no','name','Class','section'
d) roll_no,name,Class,section
Correct Answer : d) roll_no,name,Class,section
e) Choose the function name that should be used for Statement-5 to create the desired
CSV File.
a) dump()
b) load()
c) writerows()
d) writerow()
Correct Answer : c) writerows()