Python String Manipulation - and toast!

Python String Manipulation - and toast!

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Java Strings

Java Strings

9th - 12th Grade

12 Qs

String Manipulation

String Manipulation

9th - 11th Grade

13 Qs

Python Programming Basics

Python Programming Basics

7th - 11th Grade

12 Qs

Python Arrays

Python Arrays

9th - 10th Grade

11 Qs

string

string

11th Grade

12 Qs

CS Python Fundamentals Quiz 8 PRACTICE

CS Python Fundamentals Quiz 8 PRACTICE

9th - 12th Grade

10 Qs

Scratch

Scratch

3rd - 10th Grade

11 Qs

CP M9 Assessment Review

CP M9 Assessment Review

9th - 12th Grade

12 Qs

Python String Manipulation - and toast!

Python String Manipulation - and toast!

Assessment

Quiz

Computers

9th - 12th Grade

Medium

Used 34+ times

FREE Resource

8 questions

Show all answers

1.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What does the len() function do?
Gets the length of a string or list
Gets the character code for a character
Converts a character into a character code
Would you like a muffin?

2.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What would the value of the length variable be after this code is run?:
length = len("Hello")
5
6
0
Would you like a toasted teacake?

3.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the value of the 'found' variable be after this code is run?
found = "No" in "No toast!"
True
False
92.5
Would you like a waffle?

4.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

What will the value of the 'found' variable be after this code is run?:
found = "teacake" in "Muffin?"
False
True
12.1
Would you like a bagel?

5.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character code for the letter 'a' is 97.
Which function do we use to get the character code for a character?
chr()
ord()
len()
would_you_like_some_toast()

6.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

The character code for the letter 'e' is 101.
What is the character code for 'f'?
102
101.1
42
Would you like a baguette?

7.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

We have a character code, 120.
Which function do we use to turn this into a character?
chr()
ord()
len()
would_you_like_a_bap()

8.

MULTIPLE CHOICE QUESTION

30 sec • 1 pt

Media Image
Would you like some toast?
Yes
No
Maybe later
NEVER!