Mastering String Operations in Python

Mastering String Operations in Python

9th Grade

10 Qs

quiz-placeholder

Similar activities

Revision Quiz  Game- 1

Revision Quiz Game- 1

12th Grade

10 Qs

Javascript

Javascript

10th - 12th Grade

15 Qs

Python Function

Python Function

11th - 12th Grade

11 Qs

LEFT_RIGHT_MID Excel Functions Quiz

LEFT_RIGHT_MID Excel Functions Quiz

9th Grade - University

10 Qs

Quiz Pemrograman C++

Quiz Pemrograman C++

11th Grade - University

10 Qs

PPS : Quiz 2

PPS : Quiz 2

University

15 Qs

React

React

University

9 Qs

СОР №2 четверть 2

СОР №2 четверть 2

10th Grade

9 Qs

Mastering String Operations in Python

Mastering String Operations in Python

Assessment

Quiz

Computers

9th Grade

Hard

Created by

R Eveleigh

Used 3+ times

FREE Resource

10 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the result of the following operation: `"hello".upper()`?

"Hello"

"HELLO"

"hello"

"HeLLo"

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `Y = "WORLD"`, what will `Y.lower()` return?

"world"

"World"

"WORLD"

"wORLD"

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the function `Y.isupper()` return when `Y = "Python"`?

True

False

None

Error

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Given `Y = "123abc"`, what will `Y.isalnum()` return?

True

False

None

Error

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will be the output of `len("Great Britain")`?

11

12

13

14

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

If `Y = "Hello, World!"`, what will `Y.find("World")` return?

5

6

7

-1

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will `Y.isdigit()` return if `Y = "2023"`?

True

False

None

Error

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?