Solved

Case Study 2: 1. Total = 0

Question 29

Multiple Choice

Case Study 2:
1. total = 0
2. aNum = 1
3. while aNum <= 10:
4. total = total + aNum
5. aNum = aNum + 1
6. print(total)
-Refer to the session in the accompanying Case Study 2. Which line checks the condition of the loop?


A) 1
B) 2
C) 3
D) 5

Correct Answer:

verifed

Verified

Unlock this answer now
Get Access to more Verified Answers free of charge

Related Questions