Xâu 3

Xâu 3

5th Grade

25 Qs

quiz-placeholder

Similar activities

List 1

List 1

5th Grade - University

24 Qs

Ôn tập

Ôn tập

5th Grade - University

23 Qs

On file 6

On file 6

6th Grade

21 Qs

letter A

letter A

5th - 6th Grade

20 Qs

CAN YOU NAME THE FARM ANIMALS?

CAN YOU NAME THE FARM ANIMALS?

3rd - 7th Grade

22 Qs

tag questions

tag questions

10th Grade

20 Qs

For 1

For 1

4th Grade - University

21 Qs

Bài tập về chuỗi trong Python

Bài tập về chuỗi trong Python

5th Grade - University

25 Qs

Xâu 3

Xâu 3

Assessment

Quiz

English

5th Grade

Medium

Created by

Edu TSmart

Used 33+ times

FREE Resource

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả đoạn mã sau là gì?

Có y

Không có y

Lỗi

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đoạn mã nào đếm số chữ thường trong chuỗi?

if c.islower(): dem += 1

if c.isupper(): dem += 1

if c.isdigit(): dem += 1

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả đoạn mã sau là?

A. abc

B. 123

C. abc123

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Hàm nào dùng để kiểm tra chuỗi toàn chữ hoa?

A. isupper()

B. islower()

C. isalpha()

D. isdigit()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Kết quả đoạn mã sau là?

A. 5

B. 3

C. 6

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Đoạn mã sau thực hiện điều gì?

1

2

3

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào để duyệt qua từng ký tự trong chuỗi?

for i in range(len(s)):

for c in s:

Cả hai đều đúng

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?