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

Programming Basics Quiz

Programming Basics Quiz

7th Grade

20 Qs

Python String Operations Quiz

Python String Operations Quiz

8th Grade

18 Qs

Understanding Iteration and Selection

Understanding Iteration and Selection

8th Grade

19 Qs

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

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

7th Grade

20 Qs

Thử thách 9 - đường đua lập trình - tin 7

Thử thách 9 - đường đua lập trình - tin 7

7th Grade

20 Qs

Знакомство с python

Знакомство с python

8th Grade

15 Qs

ÔN TẬP CRV1

ÔN TẬP CRV1

6th Grade - University

22 Qs

Selection Programming_If condition

Selection Programming_If condition

8th Grade - University

15 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?