Search Header Logo

Bài 11_Kiểu xâu_Tin học 11

Authored by Nguyễn Anh Tùng

Computers

11th Grade

Used 3+ times

Bài 11_Kiểu xâu_Tin học 11
AI

AI Actions

Add similar questions

Adjust reading levels

Convert to real-world scenario

Translate activity

More...

    Content View

    Student View

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

0

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A.   str(s)

B.  len(s)

C.  length(s)

D. s.len()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 3. Cho xâu s1=’abc’, xâu s2=’ab’ với cú pháp: s2 in s1 cho kết quả là:

A.   true

B.  True

C.  False

D.   false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 4. Để tạo xâu in hoa từ toàn bộ xâu hiện tại ta dùng hàm:

A.   lower()

B.  len()

C.  upper()

D. in

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 5. Cho xâu st=’abc.’, xâu st có độ dài là:

1

2

3

4

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. s=’0’

B.   s=“”

C.   s=[]

D.   s=0

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Câu 7. Cho xâu s1=’Thượng Cát’, xâu s2=’Thượng Cát 2023’.

Khẳng định nào sau đây là đúng:

A.   Xâu s2 lớn hơn xâu s1.

A.  Xâu s1 bằng xâu s2.

A.  Xâu s2 nhỏ hơn xâu s1.

A.   Xâu s2 lớn hơn hoặc bằng xâu s1.

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?

Discover more resources for Computers