vận dụng

vận dụng

10th Grade

10 Qs

quiz-placeholder

Similar activities

snakes

snakes

3rd Grade - University

10 Qs

hoạt động luyện tập

hoạt động luyện tập

10th Grade

6 Qs

Python foundation

Python foundation

5th Grade - University

10 Qs

Week 3 - User Input

Week 3 - User Input

5th - 12th Grade

7 Qs

quiz1_python

quiz1_python

6th - 11th Grade

11 Qs

Python Strings and Variables

Python Strings and Variables

5th Grade - University

8 Qs

Evaluasi Mata Pelajaran Informatika

Evaluasi Mata Pelajaran Informatika

10th Grade

10 Qs

Domótica

Domótica

10th - 12th Grade

9 Qs

vận dụng

vận dụng

Assessment

Quiz

Other

10th Grade

Hard

Created by

thủy mai

Used 1+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Xâu rỗng là xâu có độ dài bằng bao nhiêu?

1

2

0

3

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu s = "abcdefg". Kết quả của print(s[2]) là gì?

'c'

'b'

'a'

'd'

4.

MULTIPLE CHOICE QUESTION

30 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

30 sec • 1 pt

Kết quả của chương trình sau là gì?

python

Sao chépChỉnh sửa

s1 = "3986443"

s2 = ""

for ch in s1:

if int(ch) % 2 == 0:

s2 = s2 + ch print(s2)

3986443

8644

39864

443

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

python

Sao chépChỉnh sửa

s = "Hello, world!" print(s[-1])

'H'

'd'

'!'

'o'

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu s = "Python", kết quả của print(s[1:4]) là gì?

"yth"

"Pyt"

"thon"

"ytho"

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?