Search Header Logo

KIỂU DỮ LIỆU TỆP

Authored by Thủy Vũ

Other

11th Grade

Used 10+ times

KIỂU DỮ LIỆU TỆP
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

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

Access all questions and much more by creating a free account

Create resources

Host any resource

Get auto-graded reports

Google

Continue with Google

Email

Continue with Email

Classlink

Continue with Classlink

Clever

Continue with Clever

or continue with

Microsoft

Microsoft

Apple

Apple

Others

Others

Already have an account?