
File handling in Python

Quiz
•
Computers
•
11th Grade
•
Hard
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
Similar Resources on Wayground
10 questions
Kiến thức Tin học cơ bản

Quiz
•
9th - 12th Grade
11 questions
KIỂU DỮ LIỆU TỆP

Quiz
•
11th Grade
10 questions
Bài tập Tin học lớp 4

Quiz
•
1st - 12th Grade
10 questions
BẢI KIỂM TRA

Quiz
•
9th - 12th Grade
10 questions
TIN HỌC 9: BÀI 8 THỰC HÀNH: SỬ DỤNG CÔNG CỤ TRỰC QUAN TRÌNH BÀY

Quiz
•
9th Grade - University
10 questions
Khám phá máy tính lớp 5

Quiz
•
10th Grade - Professi...
15 questions
Linux-2 Quiz 2 -- LAMP

Quiz
•
1st - 12th Grade
8 questions
PYTHON FILES

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
15 questions
Hersheys' Travels Quiz (AM)

Quiz
•
6th - 8th Grade
20 questions
PBIS-HGMS

Quiz
•
6th - 8th Grade
30 questions
Lufkin Road Middle School Student Handbook & Policies Assessment

Quiz
•
7th Grade
20 questions
Multiplication Facts

Quiz
•
3rd Grade
17 questions
MIXED Factoring Review

Quiz
•
KG - University
10 questions
Laws of Exponents

Quiz
•
9th Grade
10 questions
Characterization

Quiz
•
3rd - 7th Grade
10 questions
Multiply Fractions

Quiz
•
6th Grade