Kiểu dữ liệu xâu kí tự trong Python

Kiểu dữ liệu xâu kí tự trong Python

10th Grade

18 Qs

quiz-placeholder

Similar activities

LỚP 12 - CHỦ ĐỀ B - BÀI 1 + 2 MẠNG MT VÀ GIAO THỨC

LỚP 12 - CHỦ ĐỀ B - BÀI 1 + 2 MẠNG MT VÀ GIAO THỨC

10th Grade - University

18 Qs

Một số khái niệm về lập trình và ngôn ngữ lập trình

Một số khái niệm về lập trình và ngôn ngữ lập trình

KG - 12th Grade

15 Qs

File Handling in Python - Grade 12 CBSE

File Handling in Python - Grade 12 CBSE

12th Grade

15 Qs

Tin học 11 chương I

Tin học 11 chương I

1st - 12th Grade

20 Qs

[Lớp 12] Access - Ôn tập

[Lớp 12] Access - Ôn tập

12th Grade

14 Qs

Coding Quiz

Coding Quiz

6th - 10th Grade

15 Qs

KIỂM TRA 15 PHÚT MÔN TIN 12

KIỂM TRA 15 PHÚT MÔN TIN 12

12th Grade - University

20 Qs

bài 6 Sử dụng phần mềm khi được phép

bài 6 Sử dụng phần mềm khi được phép

1st Grade - University

20 Qs

Kiểu dữ liệu xâu kí tự trong Python

Kiểu dữ liệu xâu kí tự trong Python

Assessment

Quiz

Computers

10th Grade

Medium

Created by

Tuyết Nguyễn

Used 23+ times

FREE Resource

AI

Enhance your content in a minute

Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...

18 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Trong Python, kiểu dữ liệu xâu kí tự được đặt trong dấu nào?

Dấu phẩy (,)
Dấu hai chấm (:)
Dấu chấm (.)
Dấu nháy đơn (') hoặc dấu nháy kép (")

2.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Biến s = "Python" có kiểu dữ liệu gì trong Python?

list

int

float

str

3.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Để cho biết độ dài của một xâu trong Python, ta sử dụng hàm nào?

len()
count()
length()
size()

4.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Trong Python, kết quả của biểu thức "Hello" + "World" là gì?

"HelloWorld"

"HelloWorld!"

"Hello World"

"Hello_World"

5.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Cho biết kết quả của đoạn chương trình sau:

y="Em xinh em đứng một mình cũng xinh"

x="em"

print(y.count(x))

2
4

3

1

6.

MULTIPLE CHOICE QUESTION

1 min • 2 pts

Để thay thế tất cả kí tự 'a' trong xâu s = 'banana' thành kí tự 'o', ta dùng lệnh nào?

s.count('a', 'o')

s.find('a', 'o')

s.len('a', 'o')

s.replace('a', 'o')

7.

MULTIPLE CHOICE QUESTION

1 min • 3 pts

Media Image

Cho biết kết quả của đoạn mã bên:

"defg"

"abc"

"ghij"

"cdef"

Create a free account and access millions of resources

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?