
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
15 questions
Bài 12: Phần mềm thiết kế đồ họa

Quiz
•
11th Grade
13 questions
ÔN TẬP TIN HỌC 3

Quiz
•
3rd Grade - University
10 questions
Bài 24: Sao lưu và phục hồi CSDL

Quiz
•
11th Grade
10 questions
Ôn tập 11A6 HKII

Quiz
•
9th - 12th Grade
12 questions
Bài 6: Lưu trữ và chia sẽ tệp tin trên Internet

Quiz
•
9th - 12th Grade
14 questions
Ôn Tập Môn Tin Học Lớp 5

Quiz
•
5th Grade - University
10 questions
Python Basic files

Quiz
•
10th - 12th Grade
10 questions
perintah dasar linux 1

Quiz
•
11th Grade
Popular Resources on Wayground
10 questions
Lab Safety Procedures and Guidelines

Interactive video
•
6th - 10th Grade
10 questions
Nouns, nouns, nouns

Quiz
•
3rd Grade
10 questions
9/11 Experience and Reflections

Interactive video
•
10th - 12th Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
9 questions
Tips & Tricks

Lesson
•
6th - 8th Grade
Discover more resources for Computers
20 questions
Digital Citizenship

Quiz
•
8th - 12th Grade
35 questions
Computer Baseline Examination 2025-26

Quiz
•
9th - 12th Grade
13 questions
Problem Solving Process

Quiz
•
9th - 12th Grade
10 questions
Understanding Algorithms with Pseudocode and Flowcharts

Interactive video
•
9th - 12th Grade
19 questions
AP CSP Unit 1 Review (code.org)

Quiz
•
10th - 12th Grade