Search Header Logo

tin bài 12 14

Authored by Ng Thuan

Other

9th - 12th Grade

Used 1+ times

tin bài 12 14
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

38 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Xâu rỗng là xâu có độ dài bằng:

0

1

không xác định

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Đếm số lần xuất hiện xâu con dùng hàm:

count

find

replace

type

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để biết độ dài của xâu s dùng hàm

str(s)

len(s)

length(s)

s.len()

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Trong các câu sau đây, câu nào SAI

. Không thể đếm số lần xuất hiện một xâu con trong một xâu

Có thể ghép các xâu để được một xâu mới

Có thể tìm vị trí một xâu con trong một xâu

Không thể xóa một xâu con trong một xâu nhưng có thể thay thế xâu cần xóa thành xâu rỗng

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để khởi tạo xâu s rỗng ta dùng lệnh

s=''            (2 nháy đơn)

s='0'

s=[]

s=0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Kí tự cuối cùng của xâu S bất kì là:

S[len(S)-1]

S[n]

S[len(S)]

S[len(S)+1]

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu s='abcdef'. Lệnh   print(s.find('c')) cho kết quả

2

3

5

4

Access all questions and much more by creating a free account

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

Already have an account?