File handling in Python

File handling in Python

11th Grade

10 Qs

quiz-placeholder

Similar activities

Câu hỏi ôn tập HKII_Tin học 6

Câu hỏi ôn tập HKII_Tin học 6

8th Grade - Professional Development

11 Qs

RUNG CHUÔNG VÀNG

RUNG CHUÔNG VÀNG

11th - 12th Grade

10 Qs

KIỂM TRA TRẮC NGHIỆM BÀI 15 TIN HỌC 11

KIỂM TRA TRẮC NGHIỆM BÀI 15 TIN HỌC 11

11th Grade

10 Qs

file type

file type

10th Grade - University

15 Qs

Thao tác với tệp

Thao tác với tệp

10th - 11th 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

Tin 11_KTTX2_HK2 (11A7)

Tin 11_KTTX2_HK2 (11A7)

9th - 12th Grade

10 Qs

BẢI KIỂM TRA

BẢI KIỂM TRA

9th - 12th Grade

10 Qs

File handling in Python

File handling in Python

Assessment

Quiz

Computers

11th Grade

Hard

Created by

Maria Pham

Used 8+ times

FREE Resource

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')

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?