File Handling Grade XII

File Handling Grade XII

12th Grade

25 Qs

quiz-placeholder

Similar activities

Importing and Exporting Spreadsheet Data Review

Importing and Exporting Spreadsheet Data Review

9th - 12th Grade

24 Qs

Python Files

Python Files

12th Grade

20 Qs

Python Pandas

Python Pandas

12th Grade

20 Qs

Analisis Data dengan Excel dan Google Colab

Analisis Data dengan Excel dan Google Colab

10th Grade - University

20 Qs

CS - Internal Test1 [16-07-2021]

CS - Internal Test1 [16-07-2021]

12th Grade

20 Qs

15 days of code quiz 2

15 days of code quiz 2

11th Grade - Professional Development

22 Qs

Text Files in Python

Text Files in Python

12th Grade

20 Qs

Pandas Series & DataFrames

Pandas Series & DataFrames

12th Grade

20 Qs

File Handling Grade XII

File Handling Grade XII

Assessment

Quiz

Computers

12th Grade

Easy

Created by

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

csv.write
csv.reader

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

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?