H - Substrings
Quiz
•
Computers
•
12th Grade
•
Practice Problem
•
Hard
S Johnston
Used 1+ times
FREE Resource
Enhance your content in a minute
45 questions
Show all answers
1.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
A substring is:
a sequence of characters within a string
a type of variable
an entire string repeated twice
a function that sorts strings
2.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the correct output of the following code:
mystring = "Hello world"
sub1 = mystring[0:2]
He
Hel
Hello
llo
3.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Select the correct output of the following code:
mystring = "Hello world"
sub2 = mystring[4:6]
o
o w
w
wo
4.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does mystring[-1] return if mystring = "Hello world"?
d
H
o
"
5.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
What does mystring[:5] return if mystring = "Hello world"?
Hello
Hello
Hello w
world
6.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which slice would return just the first letter of a string called "text"?
text[0]
text[1]
text[-1]
text[0:2]
7.
MULTIPLE CHOICE QUESTION
30 sec • 1 pt
Which of the following would return the last three characters of a string?
string[-3:]
string[:3]
string[3:]
string[-1:3]
Create a free account and access millions of resources
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?
Similar Resources on Wayground
50 questions
XII-AdminInfJar - Firewall
Quiz
•
12th Grade
50 questions
Computer Hardware
Quiz
•
11th - 12th Grade
50 questions
HCI MIDTERM EXAMINATIONS
Quiz
•
12th Grade
40 questions
PRE TEST_OS_MIDTERMS
Quiz
•
12th Grade
40 questions
National 5 Computing Science - Revision 2
Quiz
•
10th - 12th Grade
50 questions
LATIHAN SOAL
Quiz
•
10th Grade - University
50 questions
LATIHAN PTS GENAP INFORMATIKA KELAS 7
Quiz
•
11th - 12th Grade
Popular Resources on Wayground
10 questions
Forest Self-Management
Lesson
•
1st - 5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
30 questions
Thanksgiving Trivia
Quiz
•
6th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
48 questions
The Eagle Way
Quiz
•
6th Grade
10 questions
Identifying equations
Quiz
•
KG - University
10 questions
Thanksgiving
Lesson
•
5th - 7th Grade
Discover more resources for Computers
30 questions
Thanksgiving Trivia
Quiz
•
9th - 12th Grade
11 questions
Would You Rather - Thanksgiving
Lesson
•
KG - 12th Grade
10 questions
Identifying equations
Quiz
•
KG - University
18 questions
Thanksgiving Trivia
Quiz
•
4th - 12th Grade
20 questions
Thanksgiving
Quiz
•
KG - 12th Grade
28 questions
Ser vs estar
Quiz
•
9th - 12th Grade
10 questions
hands washing
Quiz
•
5th - 12th Grade
53 questions
US History Domain 1 Review CP 2025 (Tech Enhanced)
Quiz
•
9th - 12th Grade
