Quiz
- Get link
- X
- Other Apps
CSV Files Quiz
Quiz
- _________ is a file format which stores records separated by comma.
- .tsv
- .csv
- .py
- .bin
- The CSV files can be operated by _______softwares.
- Spreedsheet
- Notepad
- MS Excel
- All of the above
- When you read csv file using csv.reader() function it returns the values in _______ object.
- dictionary
- tuple
- nested list
- sets
- CSV module allows to write multiple rows using ____________ function.
- writerows()
- writerow()
- writer()
- None of the above
- Which of the following parameter needs to be added with open function to avoid blank row followed file each row in CSV file?
- delimiter
- newline
- writer, delimiter
- file object
- which is the correct way to import a csv module?
- import csv
- from csv import *
- None of the above
- Both A & B
- Observe the following code and fill the blank in statement1
import csv
with _________ as f: #statement1
r = csv.______(f) #statement2
for row in ______: #statement3
print(_____) #statement4- open("data.csv")
- f=open("data.csv")
- Both A & B are Correct
- Both A & B are incorrect
- Observe the following code and fill the blank in statement2
import csv
with _________ as f: #statement1
r = csv.______(f) #statement2
for row in ______: #statement3
print(_____) #statement4- load
- read()
- reader()
- readlines()
- Observe the following code and fill the blank in statement3
import csv
with _________ as f: #statement1
r = csv.______(f) #statement2
for row in ______: #statement3
print(_____) #statement4- f
- r
- r,f
- None of the above
- Observe the following code and fill the blank in statement4
import csv
with _________ as f: #statement1
r = csv.______(f) #statement2
for row in ______: #statement3
print(_____) #statement4- r
- row
- f
- csv
- Get link
- X
- Other Apps
Comments
Post a Comment