Year 11
String handling II
Lesson details
Key learning points
- In this lesson, we will further explore different string handling techniques that can be used in Python.
Licence
This content is made available by Oak National Academy Limited and its partners and licensed under Oak’s terms & conditions (Collection 1), except where otherwise stated.
Loading...
4 Questions
Q1.
"When two or more strings are joined together" is the definition of which of the following terms?
Element
String
String handling
Q2.
"A character in a string or an item in a sequence" is the definition of which of the following terms?
Concatenate
String
String handling
Q3.
"Performing operations on string" is the definition of which of the following terms?
Concatenate
Element
String
Q4.
"A value that is text. This can include numbers but they will be read as text" is the definition of which of the following terms?
Concatenate
Element
String handling
4 Questions
Q1.
Which of the following would be output if the following code below is executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707209268%2Fz0lkdflosp8rebhadrjd.png&w=1920&q=75)
Hello
my_string[1]
y
Q2.
Which of the following would be output if the following code below is executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707209271%2Fbxkpf8kvnudvsyqar70i.png&w=1920&q=75)
ell
my_string[1:3]
y_
Q3.
Which of the following would be output if the following code below is executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707209274%2Fztqgapgbiitxrvyweteh.png&w=1920&q=75)
int(Hello)
my_string.isdecimal()
True
Q4.
Which of the following would be output if the following code below is executed?
![An image in a quiz](/_next/image?url=https%3A%2F%2Foaknationalacademy-res.cloudinary.com%2Fimage%2Fupload%2Fv1707209289%2Fghrqzspxskzfgoc93k4v.png&w=1080&q=75)
65 66 67
65, 66, 67
coded_word