FIRST PUBLISH OCTOBER 2024
AP Comp Sci Principles Loops Redemption
Exam Practice Questions and Answers
0 1 2 3 4 - ANSWER✔✔-What is the output?
for i in range (5):
..print(i, end = " ")
time time time - ANSWER✔✔-What is the output?
for x in range (3):
..print("time", end = " ")
12 - ANSWER✔✔-What is the output?
j=0
while j < 10:
..j+=3
print(j)
Page 1/13
, ©EMILLECT 2024/2025 ACADEMIC YEAR. ALL RIGHTS RESERVED
FIRST PUBLISH OCTOBER 2024
s
e
p
t
e - ANSWER✔✔-What is the output?
word = "september"
for let in word:
..if let != "m":
....print(let,)
..else:
....break
---
---
--- - ANSWER✔✔-What is the output?
Page 2/13