📝

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 5 of 5 • Questions 41-50 of 50
Q41medium

What does this code do? s = "Hello World" words = s.split() result = "-".join(words) print(result)

Q42easy

What is the output?

s = "Python"
print(s.index("P"))
Q43easy

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

Q44medium

What is the result?

s = "Python"
print(s[1:-1])
Q45easy

What will be printed? s = "Hello" print(s.isupper())

Q46hard

What does this code do? s = "Python123" result = "".join([ch for ch in s if ch.isdigit()]) print(result)

Q47hard

What is the output?

s = "Hello"
print(s.rjust(10, "*"))
Q48hard

What will be printed? s = "Python" print(s.zfill(10))

Q49hard

What is the result?

s = "Hello World"
print(s.rsplit(" ", 1))
Q50medium

What will be printed? s = "Python" result = s.startswith("Py") and s.endswith("on") print(result)

...

Quiz Pages

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