📝

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 2 of 5 • Questions 11-20 of 50
Q11easy

What does this code do? s = "Hello" result = s.startswith("He") print(result)

Q12medium

What is the output?

s = "Python"
print(s[1:4])
Q13medium

What will be printed? s = "Hello" count = 0 for ch in s: if ch in "aeiouAEIOU": count += 1 print(count)

Q14medium

What is the result?

s = "Python"
print(s.find("th"))
Q15easy

What will be printed? s = "hello" print(s.capitalize())

Q16easy

What does this code do? s = "Python Programming" words = s.split() print(len(words))

Q17easy

What is the output?

s = "Hello"
print(s * 3)
Q18easy

What will be printed? s = "Python" print(s.endswith("on"))

Q19medium

What is the result?

s = "Hello World"
print(s.index("o"))
Q20hard

What will be printed? s = "Python" result = "".join([ch.upper() if ch.islower() else ch.lower() for ch in s]) print(result)

...

Quiz Pages

Navigate directly to paginated quiz sets. These links help you revise by page and make every page discoverable.