
CS Edexcel Unit 6 Part 6 - Handling Strings
Authored by Stuart Smith
Computers
9th - 10th Grade
Used 3+ times

AI Actions
Add similar questions
Adjust reading levels
Convert to real-world scenario
Translate activity
More...
Content View
Student View
34 questions
Show all answers
1.
FILL IN THE BLANK QUESTION
45 sec • 2 pts
Interrogating, parsing or working with strings is called...
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
How can you access the third character from the left in a string "This is just a simple string."?
string[2]
string[3]
string[4]
string[5]
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be when accessing the third character from the right in the string "This is just a simple string."?
g
i
n
s
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check if a string is all in uppercase?
string.islower()
string.isupper()
string.isalpha()
string.upper()
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be for the code snippet if the string is "CSUK IS GREAT" and we use string.isupper()?
False
True
Error
None
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which method is used to check if a string is all in lowercase?
string.isupper()
string.islower()
string.lower()
string.capitalize()
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What will the output be if the string is "CSUK IS GREAT" and we use string.islower()?
False
True
Error
None
Access all questions and much more by creating a free account
Create resources
Host any resource
Get auto-graded reports

Continue with Google

Continue with Email

Continue with Classlink

Continue with Clever
or continue with

Microsoft
%20(1).png)
Apple
Others
Already have an account?