
Week 7 - DCS2103 (Strings)
Presentation
•
Computers
•
University
•
Medium
Yasmin Basiran
Used 1+ times
FREE Resource
21 Slides • 16 Questions
1
2
3
Multiple Select
If you write your name on a sticky note and put it on a lunchbox, then peel it off and put it on a new lunchbox — does the old lunchbox magically change into the new one?
Yes
No
4
5
6
7
8
9
10
11
12
Draw
Draw the string "HELLO" as a row of boxes. Label positive indexes on top (0 to 4) and negative indexes on the bottom (-5 to -1).
13
Multiple Choice
What will "Python"[0] return?
14
Multiple Choice
What happens if you try to access "hello"[10]?
Error
None
o
" "
15
Multiple Choice
What is the result of "Python"[1:4]?
16
Multiple Choice
Which code prints "Pto"?
"Python"[::2]
"Python"[1:5:2]
"Python"[2::2]
"Python"[::3]
17
18
19
20
21
22
Multiple Choice
Which method makes the first letter uppercase and the rest lowercase?
upper()
capitalize()
title()
swapcase()
23
Multiple Choice
What will "hello world".title() return?
Hello world
Hello World
HELLO WORLD
hello world
24
Multiple Choice
Output of "banana".count("a") is:
25
Multiple Choice
What does "hello".find("l") return?
26
Multiple Choice
What will "apple,banana,cherry".split(",") return?
27
Multiple Choice
What will "-".join(["2025", "09", "23"]) return?
28
29
30
31
32
33
Multiple Choice
Which statement about Python strings is TRUE?
Strings are mutable.
Strings can be modified in-place.
Strings are immutable.
Strings are stored as arrays.
34
Multiple Choice
What happens when two variables are assigned the same short string in Python?
35
Open Ended
Imagine you are writing a password checker. How could you use isalpha(), isdigit(), and isupper() to validate a user’s password?
36
Open Ended
How would you clean and format this input string: " PYTHON is Fun! " so that it becomes "Python Is Fun!"? Which string methods would you use?
37
Thank you!
Show answer
Auto Play
Slide 1 / 37
SLIDE
Similar Resources on Wayground
32 questions
Pronouns 02 _ Síncrona
Presentation
•
University
31 questions
What are your plans the next semester?
Presentation
•
University
29 questions
App Dev Proj Week 1 Lesson 2
Presentation
•
12th Grade
31 questions
GAP BOLOGNA - 27 novembre 2025
Presentation
•
University
29 questions
English for business quiz 1
Presentation
•
University
29 questions
TYPES OF LINEN AND BED MAKING
Presentation
•
University
25 questions
01 Python Basics
Presentation
•
University
34 questions
Week 3 - Functions (DCS1101)
Presentation
•
University
Popular Resources on Wayground
20 questions
Math Review
Quiz
•
3rd Grade
15 questions
Fast food
Quiz
•
7th Grade
20 questions
Context Clues
Quiz
•
6th Grade
20 questions
Inferences
Quiz
•
4th Grade
19 questions
Classifying Quadrilaterals
Quiz
•
3rd Grade
20 questions
Figurative Language Review
Quiz
•
6th Grade
20 questions
Equivalent Fractions
Quiz
•
3rd Grade
10 questions
Identify Fractions, Mixed Numbers & Improper Fractions
Quiz
•
3rd - 4th Grade
Discover more resources for Computers
20 questions
Guess The App
Quiz
•
KG - Professional Dev...
11 questions
NFL Football logos
Quiz
•
KG - Professional Dev...
19 questions
Minecraft
Quiz
•
6th Grade - Professio...
40 questions
8th Grade Math Review
Quiz
•
8th Grade - University
20 questions
Block Buster Movies
Quiz
•
10th Grade - Professi...
10 questions
Would you rather...
Quiz
•
KG - University
40 questions
Flags of the World
Quiz
•
KG - Professional Dev...
14 questions
Superhero
Quiz
•
1st Grade - University