File handling in Python

File handling in Python

11th Grade

10 Qs

quiz-placeholder

Similar activities

INTERNET

INTERNET

11th Grade

10 Qs

bài 2-tin 9

bài 2-tin 9

1st - 12th Grade

10 Qs

Chapter 3 Exploring Linux Filesystems

Chapter 3 Exploring Linux Filesystems

11th Grade - University

10 Qs

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

BÀI 8. SẮP XẾP VÀ LỌC DỮ LIỆU

1st - 12th Grade

10 Qs

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

BÀI 14- THUẬT TOÁN TÌM KIẾM TUẦN TỰ

6th Grade - University

14 Qs

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

Lesson 01 Unit 1 Excel 2019/365 MOAC

Lesson 01 Unit 1 Excel 2019/365 MOAC

9th - 12th Grade

10 Qs

Archivos Digitales

Archivos Digitales

9th Grade - University

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

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?