Lesson details

Key learning points

  1. 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?
Correct answer: Concatenate
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
Correct answer: Element
String
String handling
Q3.
"Performing operations on string" is the definition of which of the following terms?
Concatenate
Element
String
Correct answer: String handling
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
Correct answer: String
String handling

4 Questions

Q1.
Which of the following would be output if the following code below is executed?
Correct answer: e
Hello
my_string[1]
y
Q2.
Which of the following would be output if the following code below is executed?
Correct answer: el
ell
my_string[1:3]
y_
Q3.
Which of the following would be output if the following code below is executed?
Correct answer: False
int(Hello)
my_string.isdecimal()
True
Q4.
Which of the following would be output if the following code below is executed?
65 66 67
65, 66, 67
Correct answer: 656667
coded_word

Lesson appears in

UnitComputing / Programming 5: Strings and lists

Computing