Search Header Logo

Câu hỏi trắc nghiệm về Python

Authored by ngọc Đoàn lý

Computers

10th Grade

Used 2+ times

Câu hỏi trắc nghiệm về Python
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

69 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn code sau là gì?

L

e

o

H

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đâu là cách khai báo một xâu hợp lệ trong Python?

s = "Hello"

s = (Hello)

s = ["Hello"]

s = Hello

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, xâu ký tự (string) được biểu diễn bằng ký hiệu nào?

[]

"" hoặc ''

{}

()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Phép toán nào dưới đây có thể được sử dụng để nối hai xâu ký tự trong Python?

/

*

-

+

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh len(s) trong Python có tác dụng gì?

Đảo ngược xâu s.

Trả về ký tự cuối cùng trong xâu s.

Xóa xâu s.

Trả về số lượng ký tự trong xâu s.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả của đoạn code sau là gì?

y

T

h

P

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong Python, chỉ số của ký tự trong xâu bắt đầu từ số mấy?

1

0

2

-1

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?