Multiple Choice
Examine the following lines of code:
Current = 1
Sum = 0
N = 5
While current <= n:
Sum = sum + current
What is the value of sum after the loop completes all of its iterations?
A) 5
B) 1
C) 15
D) The value of sum will never be available, as this is an infinite loop
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q67: Which of the following is not a
Q68: Write simple Python program that determines a
Q69: For variable current_month (equal to 'January' or
Q70: Write a simple Python program that prompts
Q71: The operators and, or, not, ==, !=,
Q73: Examine the following lines of code:<br>Which =
Q74: 1 <= num <= 10 is not
Q75: Give an appropriate expression for each of
Q76: Match the expressions that they are logically
Q77: A _ expression is an expression that