KIỂU XÂU - PYTHON

KIỂU XÂU - PYTHON

10th Grade

11 Qs

quiz-placeholder

Similar activities

Xâu kí tự

Xâu kí tự

10th Grade

10 Qs

Kiểu Xâu

Kiểu Xâu

8th - 11th Grade

16 Qs

Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

Kiểu dữ liệu xâu kí tự - xử lí xâu kí tự

9th - 12th Grade

14 Qs

Xâu kí tự

Xâu kí tự

10th Grade

10 Qs

Ôn tập HK2 Python 10

Ôn tập HK2 Python 10

10th Grade

15 Qs

BÀI 26 LỚP 10

BÀI 26 LỚP 10

10th Grade

10 Qs

Bài 25 tin 10

Bài 25 tin 10

9th Grade - University

10 Qs

trắc nghiệm tin

trắc nghiệm tin

10th Grade

10 Qs

KIỂU XÂU - PYTHON

KIỂU XÂU - PYTHON

Assessment

Quiz

Computers

10th Grade

Hard

Created by

Minh Đỗ

Used 13+ times

FREE Resource

11 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Cho xâu s = 'Hello everybody'

print(x[2:5])

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

x1 = 'tin'

x2 = 'học'

print(x2+x1)

tin học

tinhọc

học tin

họctin

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = 'thời khóa biểu'

print(y.count('i',4)

1

2

3

0

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s = 'thời khóa biểu'

print(s.find('i'))

1

2

3

4

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

s1 = ' có phải em mùa thu Hà Nội'

s2 = 'là'

print(s1.replace('em','là'))

có phải em là mùa thu Hà Nội

báo lỗi

có phải là mùa thu Hà Nội

có phải là em mùa thu Hà Nội

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

chỉ số của các ký tự trong xâu được đánh bắt đầu từ

0

1

2

Không có chỉ số

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Python chấp nhận dấu nháy đơn ('), dấu nháy kép (") để biểu thị chuỗi. Cú pháp Python nào sau đây KHÔNG được chấp nhận?

print('Hello World')

print("Hello World")

print('Hello World")

print(""'Hello World'"")

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?