📝
Logic Building - Phase 5: Strings
Master string manipulation, character operations, and word-level logic
50 questions•5 pages•~75 min
Use this quiz track to strengthen recall, speed, and exam-style decision making. Attempt one page first, review explanations, and then re-attempt incorrect questions without notes.
A good scoring strategy is to mark uncertain questions, finish known ones quickly, and return with elimination logic. This improves accuracy while keeping momentum under time constraints.
Progress: 0 / 500%
Page 4 of 5 • Questions 31-40 of 50
Q31easy
What does this code do? s = "hello world" print(s.title())
Q32easy
What is the output?
s = "Python"
print(s[2:])Q33easy
What will be printed? s = "Hello" print(s.count("l"))
Q34medium
What is the result?
s = "Python"
print(s.swapcase())Q35hard
What will be printed? s = "Hello World" print(s.partition(" "))
Q36easy
What does this code do? s = "Python" result = s.isdigit() print(result)
Q37easy
What is the output?
s = "Hello"
print(s + " World")Q38easy
What will be printed? s = "Python Programming" print(s.replace("Programming", "Code"))
Q39medium
What is the result?
s = "hello"
print(s.capitalize().upper())Q40medium
What will be printed? s = "Python" print(s[-3:])
...