Python String Manipulation - and toast!

Python String Manipulation - and toast!

9th - 12th Grade

8 Qs

quiz-placeholder

Similar activities

Scratch 2

Scratch 2

KG - University

10 Qs

iGCSE Computer Science: ASCII and Unicode

iGCSE Computer Science: ASCII and Unicode

9th - 12th Grade

10 Qs

Java String Objects & Methods

Java String Objects & Methods

12th Grade

12 Qs

SLR 9 - Advanced Programming Techniques - Part Two

SLR 9 - Advanced Programming Techniques - Part Two

10th Grade

10 Qs

QBASIC Programming

QBASIC Programming

5th - 10th Grade

10 Qs

Robotics (3rd of ESO)

Robotics (3rd of ESO)

9th Grade

11 Qs

String Warm Up

String Warm Up

8th - 12th Grade

12 Qs

H - Linear Search

H - Linear Search

12th Grade

10 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!