Quiz về kiểu dữ liệu Str

Quiz về kiểu dữ liệu Str

6th - 8th Grade

17 Qs

quiz-placeholder

Similar activities

Thử thách 6-Đường đua lập trình-Lớp 7

Thử thách 6-Đường đua lập trình-Lớp 7

7th Grade

20 Qs

Pemahaman Dasar Python

Pemahaman Dasar Python

7th Grade

15 Qs

Tecnologia: Passado, Presente e Futuro (3.ºCEB)

Tecnologia: Passado, Presente e Futuro (3.ºCEB)

8th Grade

20 Qs

Grade 8 ICT Unit 1 Practice

Grade 8 ICT Unit 1 Practice

8th Grade

19 Qs

Quiz về Lập trình máy tính và Ngôn ngữ Python

Quiz về Lập trình máy tính và Ngôn ngữ Python

6th Grade - University

20 Qs

Biến, kiểu dữ liệu, nhập xuất trong Python

Biến, kiểu dữ liệu, nhập xuất trong Python

8th Grade

20 Qs

Python Programming Quiz

Python Programming Quiz

8th Grade

20 Qs

Osnove programskih jezika

Osnove programskih jezika

6th - 8th Grade

20 Qs

Quiz về kiểu dữ liệu Str

Quiz về kiểu dữ liệu Str

Assessment

Quiz

Information Technology (IT)

6th - 8th Grade

Medium

Created by

Khang Nghĩa

Used 4+ times

FREE Resource

17 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

s = "Hello, world!"

print(len(s))

12

13

14

15

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cách nào dưới đây tạo một chuỗi rỗng?

s = " "

s = str()

s = ' '

Tất cả đều đúng.

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dùng để truy xuất ký tự đầu tiên của chuỗi s = "Python"?

s(0)

s[0]

s{0}

s.first()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = "Python"

print(s[-1])

P

n

o

h

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào dưới đây dùng để lấy chuỗi con "thon" từ chuỗi s = "Python"?

s[2:6]

s[-4:]

s[2:]

Cả ba cách.

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

s = "Python"

print(s[: : -1]

"Python"

"nohtyP"

"n"

Lỗi.

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Lệnh nào giúp nối hai chuỗi a = "Hello" và b = "World" thành "Hello World"?

a + b

a + " " + b

a.append(b)

a.join(b)

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?