Multiple Choice
Suppose that a program asks a user to enter multiple integers, either positive or negative, to do some calculation. The data entry will stop when the user enters a certain value to indicate the end of the data. What value should the code use as the sentinel?
A) 0
B) -1
C) 999
D) An alphabetic character
Correct Answer:

Verified
Correct Answer:
Verified
Related Questions
Q64: When hand-tracing the loop in the code
Q65: For which input values will the following
Q66: What is the output of the following
Q67: What is the output of the code
Q68: What is the output of the following
Q70: What is the output of this code
Q71: What changes do you need to make
Q72: What is the output of the following
Q73: Which statement is correct about the execution
Q74: How many times does the following loop