
KIỂU DỮ LIỆU TỆP

Quiz
•
Other
•
11th Grade
•
Hard
Thủy Vũ
Used 10+ times
FREE Resource
8 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Dữ liệu kiểu tệp được lưu trữ ở đâu?
Bộ nhớ trong
Bộ nhớ ngoài
Rom
Ram
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Có bao nhiêu thao tác cơ bản đối với tệp?
1
2
3
4
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây được dùng để mở tệp BAITAP.txt để đọc dữ liệu?
f=open(BAITAP.txt, "r")
f=open("BAITAP.txt", "r")
f=open(BAITAP.txt, "w")
f=open("BAITAP.txt", "w")
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây là đúng khi thực hiện đọc từ tệp ra một số nguyên?
<biến>=<biến tệp).readline()
<biến>=int(<biến tệp).readline())
<biến>=float(<biến tệp).readline())
<biến>=list(map(float, (biến tệp).readline()).split())
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây dùng để đóng tệp:
<biến tệp>=open(tên tệp, "r")
<biến tệp>.close()
<biến>=<biến tệp>.readline()
Cả 3 đáp án còn lại đều sai
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Cú pháp nào sau đây thực hiện ghi dữ liệu vào tệp?
<biến>=open(tên tệp, "w")
<biến tệp>.readline()
<biến tệp>.write(xâu hoặc biến xâu)
<biến tệp>.close()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh đọc tệp luôn đi kèm với câu lệnh nào:
mở tệp để đọc
mở tệp để ghi
Cả 2 câu lệnh còn lại
8.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Lệnh ghi dữ liệu vào tệp luôn đi kèm với câu lệnh nào?
Mở tệp để đọc
Mở tệp để ghi
Cả hai câu lệnh trên
Similar Resources on Wayground
10 questions
Plays

Quiz
•
9th - 12th Grade
11 questions
Food Safety Quiz 6

Quiz
•
11th Grade
11 questions
BTS hard quiz!! only real ARMY can play

Quiz
•
1st Grade - Professio...
10 questions
Web Tasarım ve Temelleri

Quiz
•
9th - 12th Grade
10 questions
Câu hỏi kiến thức bài 9_rẻ nhánh

Quiz
•
KG - 12th Grade
10 questions
ÔN TẬP CÔNG NGHỆ 11

Quiz
•
11th Grade
12 questions
Curso de HTML e CSS

Quiz
•
1st Grade - University
10 questions
C Language Basic Quiz

Quiz
•
7th Grade - Professio...
Popular Resources on Wayground
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
5th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
22 questions
Adding Integers

Quiz
•
6th Grade
15 questions
Subtracting Integers

Quiz
•
7th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
10 questions
Exploring Digital Citizenship Essentials

Interactive video
•
6th - 10th Grade
Discover more resources for Other
10 questions
Video Games

Quiz
•
6th - 12th Grade
10 questions
UPDATED FOREST Kindness 9-22

Lesson
•
9th - 12th Grade
20 questions
US Constitution Quiz

Quiz
•
11th Grade
6 questions
Rule of Law

Quiz
•
6th - 12th Grade
15 questions
ACT Math Practice Test

Quiz
•
9th - 12th Grade
18 questions
Hispanic Heritage Month

Quiz
•
KG - 12th Grade
28 questions
Ser vs estar

Quiz
•
9th - 12th Grade
10 questions
Would you rather...

Quiz
•
KG - University