File Handling in Python

File Handling in Python

12th Grade

15 Qs

quiz-placeholder

Similar activities

Bài làm việc Access, cấu trúc bảng

Bài làm việc Access, cấu trúc bảng

9th - 12th Grade

10 Qs

Hệ Điều Hành Của Máy Tính

Hệ Điều Hành Của Máy Tính

10th Grade - University

10 Qs

ULANGAN HARIAN KELAS TIK 9

ULANGAN HARIAN KELAS TIK 9

12th Grade

20 Qs

Excel Quiz

Excel Quiz

KG - University

15 Qs

Ôn tập bài 3: Giới thiệu về Microsoft Acces

Ôn tập bài 3: Giới thiệu về Microsoft Acces

12th Grade

15 Qs

School Mangement System ICT 0417 IGCSE

School Mangement System ICT 0417 IGCSE

10th - 12th Grade

18 Qs

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

Latihan Soal Administrasi Infrastruktur Jaringan XII TKJ

10th - 12th Grade

20 Qs

PTS KELAS 9

PTS KELAS 9

9th - 12th Grade

20 Qs

File Handling in Python

File Handling in Python

Assessment

Quiz

Computers

12th Grade

Practice Problem

Hard

Created by

sabna sathar

Used 43+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Mode in the following program to open file for writing in a mode where new data will be added at the end of old data


file =open("poem.txt","__")

r

a

w

x

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct statement to close a file stream named myfile:

myfile.terminate()

myfile.end()

myfile.close()

myfile.remove()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which function is used to read records from a binary file?

pickle.load(f)

pickle.read()

pickle.open()

pickle.dump(l,f)

4.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Write statement to use the required module for working with comma separated values (csv) files.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Write the appropriate statement in the blank.

writer=csv.writer(file)

writer=writer(f)

w=csv.write(f)

w=csv.writerow()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Which statement(s) is/are true to open a binary file "Record.dat" for reading and writing.

file =open("Record.dat","wb")

file =open("Record.dat","rb")

file =open("Record.dat","ab")

file =open("Record.dat","rb+")

7.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

The default file - open mode is ________ mode.

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?