
File handling in Python
Quiz
•
Computers
•
11th Grade
•
Practice Problem
•
Hard
Maria Pham
Used 8+ times
FREE Resource
Enhance your content in a minute
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

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?
Similar Resources on Wayground
15 questions
Tin 7-CHU DE 1-BAI 1+2
Quiz
•
1st Grade - Professio...
10 questions
Tin học 10 _ Bài 16 _Định dạng văn bản
Quiz
•
10th - 12th Grade
14 questions
Extensões de arquivo
Quiz
•
5th - 12th Grade
15 questions
Data Analysis Pop Quiz
Quiz
•
11th Grade
10 questions
Bài 10-Thực hành khai thác tài nguyên trên Internet
Quiz
•
10th - 12th Grade
10 questions
Cultura Digital 1º Trimestre (6º)
Quiz
•
5th - 12th Grade
10 questions
Bài 2-Vai trò của thiết bị thông minh và tin học đối với xã hội
Quiz
•
10th - 12th Grade
15 questions
Mảng 1 chiều
Quiz
•
8th - 11th Grade
Popular Resources on Wayground
15 questions
Fractions on a Number Line
Quiz
•
3rd Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
22 questions
fractions
Quiz
•
3rd Grade
20 questions
Main Idea and Details
Quiz
•
5th Grade
20 questions
Context Clues
Quiz
•
6th Grade
15 questions
Equivalent Fractions
Quiz
•
4th Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
