
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
13 questions
Հովհաննես Շիրազ 7 -րդ դասարան

Quiz
•
7th - 11th Grade
10 questions
CSS QUIZ #3

Quiz
•
9th - 12th Grade
10 questions
Inverse Functions Practice

Quiz
•
9th - 11th Grade
10 questions
Bài tập biến mảng

Quiz
•
1st Grade - University
10 questions
Regression Analysis

Quiz
•
10th Grade - University
10 questions
Javascript Básico

Quiz
•
9th - 12th Grade
10 questions
Soal Psikotes Kemampuan Verbal

Quiz
•
9th - 12th Grade
10 questions
Quiz - Vectors (Magnitude & Direction)

Quiz
•
9th - 12th Grade
Popular Resources on Wayground
10 questions
SR&R 2025-2026 Practice Quiz

Quiz
•
6th - 8th Grade
30 questions
Review of Grade Level Rules WJH

Quiz
•
6th - 8th Grade
6 questions
PRIDE in the Hallways and Bathrooms

Lesson
•
12th Grade
10 questions
Lab Safety Procedures and Guidelines

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

Quiz
•
3rd Grade
25 questions
Multiplication Facts

Quiz
•
5th Grade
11 questions
All about me

Quiz
•
Professional Development
15 questions
Subtracting Integers

Quiz
•
7th Grade
Discover more resources for Other
20 questions
Lab Safety and Lab Equipment

Quiz
•
9th - 12th Grade
7 questions
EAHS PBIS Lesson- Bathroom

Lesson
•
9th - 12th Grade
57 questions
How well do YOU know Neuwirth?

Quiz
•
9th - 12th Grade
20 questions
Getting to know YOU icebreaker activity!

Quiz
•
6th - 12th Grade
6 questions
Secondary Safety Quiz

Lesson
•
9th - 12th Grade
4 questions
Study Skills

Lesson
•
5th - 12th Grade
15 questions
Let's Take a Poll...

Quiz
•
9th Grade - University
20 questions
Points, Lines & Planes

Quiz
•
9th - 11th Grade