Search Header Logo

Kiến thức về hàm print() trong Python

Authored by Tâm Đức

Information Technology (IT)

2nd Grade

Used 2+ times

Kiến thức về hàm print() trong Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

9 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm print() trong Python dùng để làm gì?

Tính toán giá trị và trả về kết quả

In ra màn hình thông tin hoặc kết quả

Lưu trữ thông tin trong biến

Dừng chương trình

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã sau sẽ là gì? print("Hello", "World")

HelloWorld

Hello World

Error

World Hello

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào sau đây giúp in nhiều giá trị trong Python mà không có khoảng trắng giữa chúng?

print("Hello", "World", sep=",")

print("Hello", "World", end="")

print("Hello", "World", sep="")

print("Hello", "World", end=" ")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kết quả của đoạn mã sau là gì? print("Hello", "World", end="!")

Hello World

Hello World!

Hello World!!

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm print() trong Python có thể in được loại dữ liệu nào?

Chỉ số nguyên

Chỉ chuỗi

Chỉ danh sách

Tất cả các loại dữ liệu

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu lệnh nào sau đây sử dụng print() để in ra một dòng trống?

print()

print(" ")

print("")

print(None)

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

print("Python", "is", "fun", sep="-")

Python-is-fun

Python is fun

Error

Python--is--fun

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?