Search Header Logo

Quizz Xâu kí tự(tiết 1)

Authored by Uyên Lô

Computers

10th Grade

Quizz Xâu kí tự(tiết 1)
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

15 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Trong Python, câu lệnh nào dùng để tính độ dài của xâu s?

len(s)

length(s)

s.len()

s. length()

2.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Có bao nhiêu xâu kí tự nào hợp lệ?

1) “123_@##”

2) “hoa hau”

3) “346h7g84jd”

4) python

5) “01028475”

6) 123456

5

6

4

3

3.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Xâu “1234%^^%TFRESDRG” có độ dài bằng bao nhiêu?

16

17

18

15

4.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Phát biểu nào sau đây là sai?

Có thể truy cập từng kí tự của xâu thông qua chỉ số

Chỉ số bắt đầu từ 0

Có thể thay đổi từng kí tự của một xâu

Python không có kiểu dữ liệu kí tự

5.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Sau khi thực hiện lệnh sau, biến s sẽ có kết quả là:

3986443

8644

39864

443

6.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Biểu thức sau cho kết quả đúng hay sai?

True, False

True, True

False, False

False, True

7.

MULTIPLE CHOICE QUESTION

45 sec • 1 pt

Media Image

Kết quả của chương trình sau nếu s = “python1221” là gì?

True

Flase

Chương trình bị lỗi

Vòng lặp vô hạn

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?