python string

python string

9th - 12th Grade

27 Qs

quiz-placeholder

Similar activities

Quiz Analisis Data

Quiz Analisis Data

10th Grade

25 Qs

What i lerned in cumputer science

What i lerned in cumputer science

8th - 12th Grade

25 Qs

Python Loops

Python Loops

9th - 12th Grade

27 Qs

Python Επανάληψη πριν τα Χριστούγεννα (Κεφ3 & 4 & Συμβολοσειρές)

Python Επανάληψη πριν τα Χριστούγεννα (Κεφ3 & 4 & Συμβολοσειρές)

11th - 12th Grade

23 Qs

CodeHS AP CSP Unit 3 Review

CodeHS AP CSP Unit 3 Review

11th - 12th Grade

22 Qs

PYTHON BASICS

PYTHON BASICS

12th Grade

23 Qs

Python Beginner

Python Beginner

6th - 12th Grade

30 Qs

Python 4 🐍 incomplete

Python 4 🐍 incomplete

9th Grade

25 Qs

python string

python string

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Created by

Ержан Ауезов

Used 2+ times

FREE Resource

27 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 code to print line of 10 stars using repetition operation:

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

print("*"*10)

print("*"^10)

print("*"+10)

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The correct syntax of the len function for string x:

x.len()

len[x]

LEN[]

len(x)

4.

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()

5.

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 )

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

To remove the spaces present at start and end of the string, you can use

split()

len()

strip()

remove()

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Let x= "python is a high level language", the output of print(len(x[-1])) is

1

31

Error

25

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?