str python

str python

11th Grade

6 Qs

quiz-placeholder

Similar activities

What is water

What is water

KG - Professional Development

10 Qs

Filipino sa Piling Larang

Filipino sa Piling Larang

11th Grade

10 Qs

21 martie 2022 - ZIUA INTERNAŢIONALĂ A POEZIEI

21 martie 2022 - ZIUA INTERNAŢIONALĂ A POEZIEI

5th Grade - University

10 Qs

maintenance

maintenance

10th - 11th Grade

10 Qs

KUIZ VKVK

KUIZ VKVK

7th - 12th Grade

10 Qs

writing essays

writing essays

11th Grade

10 Qs

Middle Range Theories

Middle Range Theories

1st Grade - University

10 Qs

D.K.A.B 11. Sınıf 1. Ünite

D.K.A.B 11. Sınıf 1. Ünite

11th Grade - University

10 Qs

str python

str python

Assessment

Quiz

Education

11th Grade

Practice Problem

Hard

Created by

huu nhi

Used 2+ times

FREE Resource

AI

Enhance your content in a minute

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

6 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

2

3

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

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

A. str(s)

B. len(s)

C. length(s)

C. s.len()

str(s)

lens(s)

lenght(S)

s.len()

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Cho xâu s1=’ha noi’, xâu s2=’ha noi cua toi’. Khẳng định nào sau đây là đúng:

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

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

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

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

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

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

3

4

5

0

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Để thay thế kí tự ‘a’ trong xâu s bằng một xâu mới rỗng ta dùng lệnh:

s=s.replace(‘a’,’’)     

s=s.replace(‘a’)  

s=replace(a,’’)   

s=s.replace() 

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?