
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
Show answer
Auto Play
Slide 1 / 37
SLIDE
Similar Resources on Wayground
26 questions
BLE HID Intro
Presentation
•
University - Professi...
36 questions
EAP presentation Skills-Unit 1 (pages 13-23
Presentation
•
University
26 questions
1E - Email - first contact and requests
Presentation
•
University
31 questions
Video Adele - Hello
Presentation
•
Professional Development
30 questions
Violin Note Reading Review - Level 1
Presentation
•
Professional Development
31 questions
3.7.4 Compiled vs Interpreted
Presentation
•
KG - University
29 questions
LTP Aula 01
Presentation
•
University
33 questions
Pharm Cardio/Hem Meds
Presentation
•
University
Popular Resources on Wayground
10 questions
Safety Day 2026 – Student Review
Quiz
•
9th Grade
21 questions
Continents and Oceans
Quiz
•
6th Grade
20 questions
Parts of Speech
Quiz
•
5th Grade
16 questions
Subject & Predicate
Quiz
•
5th Grade
25 questions
Multiplication Facts
Quiz
•
5th Grade
12 questions
Map Skills
Quiz
•
3rd Grade
22 questions
Continents and Oceans
Quiz
•
5th Grade
15 questions
Rounding Decimals
Quiz
•
5th Grade
Discover more resources for Computers
20 questions
Disney Trivia
Quiz
•
University
10 questions
Spanish Greetings and Goodbyes!
Presentation
•
6th Grade - University
20 questions
Physical or Chemical Change/Phases
Quiz
•
8th Grade - University
39 questions
Unit 7 Key Terms
Quiz
•
11th Grade - University
25 questions
SER and Subject Pronouns
Quiz
•
8th Grade - University
38 questions
Unit 6 Key Terms
Quiz
•
11th Grade - University
19 questions
Key Concepts in Buddhism
Quiz
•
University
0 questions
Cell Domain Basic Review (Biology)
Quiz
•
University