Strings in Python

Strings in Python

12th Grade

20 Qs

quiz-placeholder

Similar activities

Remedial Informatika

Remedial Informatika

9th - 12th Grade

20 Qs

ASJ_XII_UH1

ASJ_XII_UH1

1st - 12th Grade

15 Qs

Python Quiz For Starters

Python Quiz For Starters

3rd Grade - Professional Development

17 Qs

Django-quiz

Django-quiz

5th Grade - University

20 Qs

Ôn tập Tin học 5 HKI

Ôn tập Tin học 5 HKI

4th Grade - University

20 Qs

Arduino_Quiz

Arduino_Quiz

12th Grade

20 Qs

Kuis Dadakan ;)

Kuis Dadakan ;)

10th Grade - University

15 Qs

Python - Δομή Επιλογής

Python - Δομή Επιλογής

12th Grade

20 Qs

Strings in Python

Strings in Python

Assessment

Quiz

Computers

12th Grade

Medium

Created by

Thomas Martinez

Used 2+ times

FREE Resource

AI

Enhance your content

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

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

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

By signing up, you agree to our Terms of Service & Privacy Policy

Already have an account?

Discover more resources for Computers