Xâu kí tự

Xâu kí tự

10th Grade

10 Qs

quiz-placeholder

Similar activities

OCR GCSE CS - 2.1 ERL sorts and searches

OCR GCSE CS - 2.1 ERL sorts and searches

10th - 11th Grade

9 Qs

INTRODUCCION A LA PROGRAMACION

INTRODUCCION A LA PROGRAMACION

6th Grade - University

10 Qs

Tin 10- Thông tin- dữ liệu

Tin 10- Thông tin- dữ liệu

10th Grade

15 Qs

# REVIEW 1 DATA TYPES

# REVIEW 1 DATA TYPES

10th Grade

15 Qs

Strings in Swift

Strings in Swift

9th - 12th Grade

12 Qs

Ktra 15ph Tin 10

Ktra 15ph Tin 10

10th Grade

15 Qs

Ứng xử trong môi trường số

Ứng xử trong môi trường số

10th Grade

10 Qs

Bạn có phải là người học tốt Tin học 8

Bạn có phải là người học tốt Tin học 8

1st Grade - University

10 Qs

Xâu kí tự

Xâu kí tự

Assessment

Quiz

Computers

10th Grade

Practice Problem

Hard

Created by

Tú Uyên Huỳnh Thị

Used 4+ times

FREE Resource

AI

Enhance your content in a minute

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

10 questions

Show all answers

1.

FILL IN THE BLANK QUESTION

1 min • 1 pt

Xâu kí tự là một ___ các kí tự ___

(Viết thường có dấu)

2.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Các cách khai báo xâu kí tự?

s = "Hello"

s = 'Hello'

s = """Hello

10a2"""

s = "Hello'

3.

FILL IN THE BLANK QUESTION

30 sec • 1 pt

Khởi tạo xâu A rỗng:

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu x = "Python".

Cách truy cập kí tự "t" trong xâu?

x[2]

x[3]

[x2]

s[2]

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu string = "Kí tự"

Lệnh nào in ra kí tự cuối cùng của xâu string?

print( string[len(string)] )

print( string[len(string) - 1] )

print( string[len()-1] )

print( string[len(string) + 1] )

6.

MULTIPLE SELECT QUESTION

30 sec • 1 pt

Cho xâu kí tự string.

Các cách nào kiểm tra xâu string rỗng?

if s == "":

if len(s) == 0:

if not s:

if len(s) - 1 == 0:

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

Cho đoạn mã Python như hình bên. Cho biết kết quả là gì?

hello

h e l l o

h-e-l-l-o

h-e-l-l-o-

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?