File handling in Python

File handling in Python

11th Grade

10 Qs

quiz-placeholder

Similar activities

1:1 Cart Procedures

1:1 Cart Procedures

KG - 12th Grade

10 Qs

Tin học 11 - KTtx số 2 - HK I

Tin học 11 - KTtx số 2 - HK I

11th Grade - University

10 Qs

TRẮC NGHIỆM BÀI 12 KHỐI 11

TRẮC NGHIỆM BÀI 12 KHỐI 11

11th Grade

10 Qs

Tin học 7 Bài 1. Chương trình bảng tính là gì?

Tin học 7 Bài 1. Chương trình bảng tính là gì?

11th Grade - University

10 Qs

Bài 5: Thiết lập trang giấy và xuất bài nhạc

Bài 5: Thiết lập trang giấy và xuất bài nhạc

7th - 11th Grade

11 Qs

Perangkat Lunak ( Software )

Perangkat Lunak ( Software )

10th - 12th Grade

10 Qs

Arduino -Grade 10+11

Arduino -Grade 10+11

10th - 11th Grade

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

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?