Python String

Python String

12th Grade

20 Qs

quiz-placeholder

Similar activities

Bài kiểm tra NNLT PYTHON

Bài kiểm tra NNLT PYTHON

9th - 12th Grade

20 Qs

Computer Science Refreshment

Computer Science Refreshment

12th Grade

19 Qs

Programming - Screening Test

Programming - Screening Test

3rd Grade - Professional Development

15 Qs

Python básico

Python básico

9th - 12th Grade

20 Qs

Unit 1 Vocab

Unit 1 Vocab

9th - 12th Grade

18 Qs

Python programming

Python programming

6th - 12th Grade

16 Qs

Python: quiz N1

Python: quiz N1

12th Grade

20 Qs

Python бағдарламау тілінен тест сұрақтары

Python бағдарламау тілінен тест сұрақтары

9th - 12th Grade

21 Qs

Python String

Python String

Assessment

Quiz

Computers

12th Grade

Hard

Created by

Jumanah Alqurnah

Used 1K+ times

FREE Resource

20 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

One of the following functions is not used with Python String

Split

Remove

print

Replace

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct syntax of the split function:

x.split[]

split(x)

x.split(",", 3)

X.SPLIT(",", 3)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct syntax of the replace function:

x.Replace(x)

x.replace(y)

x.replace(3,x)

x.replace("j","3")

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Choose the correct code to print line of 10 stars using repetition operation:

print("**********")

print("*"*10)

print("*"^10)

print("*"+10)

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax of the len function for string x:

x.len()

len[x]

LEN[]

len(x)

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string x to uppercase is :

X.upper()

upper(x)

x.UPPER[ ]

x.upper()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax for converting the string myname to lowercase is :

myNAME.lower[ ]

myname.lower( )

myname.upper( )

myname_lower(12 )

Create a free account and access millions of resources

Create resources
Host any resource
Get auto-graded reports
or continue with
Microsoft
Apple
Others
By signing up, you agree to our Terms of Service & Privacy Policy
Already have an account?