kiểu xâu

kiểu xâu

11th Grade

20 Qs

quiz-placeholder

Similar activities

Ôn tập học kỳ I

Ôn tập học kỳ I

9th - 12th Grade

20 Qs

El Computador

El Computador

5th - 11th Grade

20 Qs

CSP Unit 13 Practice Test

CSP Unit 13 Practice Test

9th - 12th Grade

15 Qs

EmTech Q2 Post Test 1

EmTech Q2 Post Test 1

11th Grade

15 Qs

Hardware and Components

Hardware and Components

5th - 11th Grade

19 Qs

Kiến thức về Thuật toán và Chương trình

Kiến thức về Thuật toán và Chương trình

8th Grade - University

20 Qs

Python Recap

Python Recap

7th Grade - University

20 Qs

Bài kiểm tra giữa kì 2

Bài kiểm tra giữa kì 2

9th - 12th Grade

20 Qs

kiểu xâu

kiểu xâu

Assessment

Quiz

Computers

11th Grade

Practice Problem

Medium

Created by

Ngô T. Phương Lan

Used 7+ times

FREE Resource

AI

Enhance your content in a minute

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

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

0

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

str(s)

len(s)

length(s)

s.len()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

true

True

False

false

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

lower() 

len()

upper()

srt()

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để tạo xâu in thường từ toàn bộ xâu hiện tại ta dùng hàm:

lower() 

len()

upper()

str()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

1

2

3

4

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

s=’0’

s=“”

s=[]

s=0

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?