File handling in Python

File handling in Python

11th Grade

10 Qs

quiz-placeholder

Similar activities

Ôn tập - Tin học 12

Ôn tập - Tin học 12

KG - 12th Grade

10 Qs

Five Nights At Freddy's: Security Breach Quiz

Five Nights At Freddy's: Security Breach Quiz

KG - Professional Development

13 Qs

Bài 29. Nhận biết lỗi chương trình

Bài 29. Nhận biết lỗi chương trình

9th - 12th Grade

14 Qs

KIỂM TRA NHÉ LỚP 6

KIỂM TRA NHÉ LỚP 6

1st - 12th Grade

10 Qs

Access - Lesson 14

Access - Lesson 14

9th - 12th Grade

10 Qs

Bài tập Tin học lớp 4

Bài tập Tin học lớp 4

1st - 12th Grade

10 Qs

Khám phá máy tính lớp 5

Khám phá máy tính lớp 5

10th Grade - Professional Development

10 Qs

THỬ THÁCH VỚI CHƯƠNG TRÌNH CON

THỬ THÁCH VỚI CHƯƠNG TRÌNH CON

11th Grade

15 Qs

File handling in Python

File handling in Python

Assessment

Quiz

Computers

11th Grade

Practice Problem

Hard

Created by

Maria Pham

Used 8+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phương thức thường dùng để mở tệp?

open()

Open()

openfile()

openfiles()

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào thường dùng để đóng tệp?

close()

Close()

closefile()

Closefiles()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để ghi dữ liệu trên nhiều dòng vào file?

write()

writelines()

writeline()

Write()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để đọc dữ liệu trong file ra thành 1 danh sách dữ liệu?

read()

writelines()

readlines()

readline()

5.

MULTIPLE SELECT QUESTION

45 sec • 1 pt

Hàm nào dùng để đọc dữ liệu trong file ra dạng văn bản?

read()

readline()

readlines()

writelines()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn mã lệnh đúng để mở tệp ra chỉ để đọc dữ liệu?

f = open('hello.txt', 'r')

f = open('hello.txt', 'ro')

f = open('hello.txt', 'read_only')

f = open ('hello.txt', 'w')

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chọn lệnh đúng để mở tệp 'animal.txt' ra chỉ để ghi dữ liệu?

f = open('animal.txt', 'w')

f = open('animal.txt', 'write_only')

f = open('animal.txt', 'w+')

f = open('animal.txt', 'r')

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?