What is the sentinel value in the following loop?
Declare Numeric invoiceNum
Declare Numeric senValue
Display "Enter an invoice number or -1 to quit: "
Input invoiceNum
While invoiceNum != -1
[more processing statements]
Display "Enter another invoice number or -1 to quit: "
Input invoiceNum
End While
A) invoiceNum
B) Input
C) senValue
D) -1
Correct Answer:
Verified
Q35: Which of the following loops counts backwards
Q36: Which of the following loops displays all
Q37: When using counters and loop variables that
Q38: A(n) _ is a prompt used before
Q39: A(n) _ is a predefined value used
Q41: A(n) _ is one in which the
Q42: The most common posttest loop is the
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