
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
11 questions
Programming basics
Quiz
•
10th - 11th Grade
15 questions
ÔN TẬP HKII - ĐỀ 1
Quiz
•
4th Grade - University
11 questions
Microsoft Word Office
Quiz
•
10th Grade - University
15 questions
quiz Pertama XII
Quiz
•
9th - 12th Grade
15 questions
Imaging and Design
Quiz
•
11th - 12th Grade
10 questions
K11 - Bài 17
Quiz
•
11th Grade
10 questions
TRẮC NGHIỆM BÀI 12 KHỐI 11
Quiz
•
11th Grade
10 questions
Bài 9. Giao tiếp an toàn trên internet
Quiz
•
11th Grade
Popular Resources on Wayground
5 questions
This is not a...winter edition (Drawing game)
Quiz
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
10 questions
Identify Iconic Christmas Movie Scenes
Interactive video
•
6th - 10th Grade
20 questions
Christmas Trivia
Quiz
•
6th - 8th Grade
18 questions
Kids Christmas Trivia
Quiz
•
KG - 5th Grade
11 questions
How well do you know your Christmas Characters?
Lesson
•
3rd Grade
14 questions
Christmas Trivia
Quiz
•
5th Grade
20 questions
How the Grinch Stole Christmas
Quiz
•
5th Grade
Discover more resources for Computers
26 questions
Christmas Movie Trivia
Lesson
•
8th Grade - Professio...
15 questions
Christmas Song Emoji Pictionary
Quiz
•
7th - 12th Grade
20 questions
Christmas Movies
Quiz
•
1st - 12th Grade
20 questions
Christmas Movie Trivia
Quiz
•
9th - 12th Grade
29 questions
christmas facts
Lesson
•
5th - 12th Grade
20 questions
Christmas Trivia
Quiz
•
5th - 12th Grade
20 questions
Stages of Meiosis
Quiz
•
9th - 12th Grade
20 questions
christmas songs
Quiz
•
KG - University
