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 program use as the sentinel?
A) 0
B) -1
C) 999
D) an alphabetic character
Correct Answer:
Verified
Q67: Which of the following loop(s) could possibly
Q68: Which of the following loops executes exactly
Q69: Which statement, inserted at the indicated blank
Q70: How many times does the following loop
Q71: Which of the following should be used
Q73: What is the output of the code
Q74: What will be the output of the
Q75: What is the sentinel value in the
Q76: Which statement is correct about the execution
Q77: What is the outcome of the following
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents