Python strings

Python strings

University

25 Qs

quiz-placeholder

Similar activities

C Programming Unit-1 Test-2

C Programming Unit-1 Test-2

University

20 Qs

TEST1.PY

TEST1.PY

10th Grade - University

20 Qs

6INFOMAN (Recitation)

6INFOMAN (Recitation)

University - Professional Development

20 Qs

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

MESYUARAT KE-3 MYTECC ASSEMBLY: TOGETHER WE BIND

University

20 Qs

VB

VB

University

20 Qs

Basics of Java

Basics of Java

University - Professional Development

20 Qs

QUIZ 2

QUIZ 2

University

20 Qs

Review Quiz (Chapter 3&4)

Review Quiz (Chapter 3&4)

University

20 Qs

Python strings

Python strings

Assessment

Quiz

Computers

University

Practice Problem

Hard

Created by

dhruv patel

Used 1+ times

FREE Resource

AI

Enhance your content in a minute

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

25 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Media Image

What letter will be printed on the screen after running this code:

e
x
t
Nothing prints

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What output will this code produce?

Exeter
4
6
city

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image

What output will this code produce?

Exeter
4
6
city

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

word = "amazing"


For the given string if we run word[2:5] , what would the result be?

mazi

mazin

azi

azin

5.

MULTIPLE CHOICE QUESTION

1 min • 1 pt

Which of the following is not a valid string function?

isalphanumeric

isspace

islower

isalnum

6.

FILL IN THE BLANK QUESTION

1 min • 1 pt

string="HELlo"

What will be the result of string.isupper()?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What is printed by the following statement?

print("P" not in "APCSP")

True

False

Error

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?