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
Q81: What is the output of the code
Q82: Storyboards are a helpful part of the
Q83: What will be the output of the
Q84: Which of the following loops executes exactly
Q85: Which of the following loop(s) should be
Q87: What will be the output of the
Q88: Which statement is correct about the execution
Q89: How do you fix this code snippet
Q90: What will be the final output of
Q91: When will the loop in 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