Search Header Logo

Câu hỏi về lập trình Python

Authored by Le Tuan

Computers

12th Grade

Câu hỏi về lập trình Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

21 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Chương trình đầu tiên yêu cầu làm gì?

Nhập dãy số từ bàn phím.

Nhập dãy số từ file.

Nhập dãy số từ cơ sở dữ liệu.

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đầu vào của file dữ liệu có dạng gì?

Chỉ có một dòng.

Hai dòng, dòng đầu là số lượng phần tử.

Nhiều dòng không quy định.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi sắp xếp dãy số, thuật toán nào được sử dụng?

Sắp xếp nổi bọt.

Sắp xếp nhanh (Quick sort).

Sắp xếp chèn.

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả đầu ra của chương trình sẽ được ghi vào đâu?

Màn hình.

File đầu ra.

Cơ sở dữ liệu.

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để mở file trong Python?

open()

read()

write()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để ghi dữ liệu vào file, tham số nào cần phải sử dụng?

'r'

'w'

'a'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Khi đọc dữ liệu từ file, hàm nào được sử dụng để đọc một dòng?

readline()

read()

input()

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?