What is the output of the following code?
sum = 0value = 3while value <= 5: sum += value value += 1print(sum)
A. 15
B. 10
C. 12
D. 18
Answer: C
Computer Science & Information Technology
You might also like to view...
When you find yourself programming the same thing over and over, you should copy the sequence of steps as a reference to save time for the other instances.
Answer the following statement true (T) or false (F)
Computer Science & Information Technology
What is a flat profile? What is a call graph?
What will be an ideal response?
Computer Science & Information Technology
A quotation is considered a long quotation and indented from the left margin if the quoted material contains ____ or more words.
A. 20 B. 30 C. 40 D. 50
Computer Science & Information Technology
When zooming in on the event time line, a new search is run.
a. true b. false
Computer Science & Information Technology