
File Handling Grade XII

Quiz
•
Computers
•
12th Grade
•
Easy
Computer Science
Used 3+ times
FREE Resource
25 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following function is used with the csv module in Python to read the contents of a csv file into an object
readrow()
readrows()
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to write data to a csv file using the csv module in Python?
csv.write
csv.append
writecsv()
appendcsv()
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the default delimiter used by the csv.reader function in Python?
;
\t
,
:
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What function is used to write a list of dictionaries to a csv file in Python?
csv.write_dicts
csv.writer
writecsvdict()
dicts_to_csv()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What is the purpose of the with statement when working with files?
to open the file in read mode
to open the file in write mode
to ensure that the file is closed properly after use
to manipulate the data in the file
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
The syntax of seek() is:
file_object.seek(offset[.reference_point])
what is the default value of reference_point?
0
1
3
3
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method in the csv module is used to write a single row to a csv file?
csv.writerow
csv.write_row
writecsvrow()
row_to_csv()
Create a free account and access millions of resources
Similar Resources on Wayground
20 questions
Python Basics & Syntax

Quiz
•
10th - 12th Grade
20 questions
adobe photoshop 2015 certification quiz 2

Quiz
•
9th - 12th Grade
20 questions
Web Development

Quiz
•
7th Grade - University
20 questions
Python Functions Overview

Quiz
•
12th Grade
20 questions
Robotics Pretest

Quiz
•
9th - 12th Grade
20 questions
Basic Python Review 228

Quiz
•
9th - 12th Grade
20 questions
CLASS XI - MYSQL QUIZ

Quiz
•
11th - 12th Grade
20 questions
data bases

Quiz
•
12th Grade
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade