What type of loop is shown in the script below
< script type = "text/javascript" >
Var gradeValue = 0,
Total = 0,
Grade = 0;
While ( gradeValue != - 1 )
{
Total = total + gradeValue;
Grade = window.prompt( "Enter Integer Grade, -1 to Quit:" , "0" ) ;
GradeValue = parseInt( grade ) ;
}
< /script >
A) counter controlled
B) sentinel controlled
C) algorithm controlled
D) stepwise controlled
Correct Answer:
Verified
Q19: What would the browser display if the
Q20: Which of the following is not a
Q21: The word top in the term top-down
Q22: What output will the following script produce
Var
Q23: What type of loop should be used
Q24: Which of the following is the correct
Q26: What is the value of i after
Q27: What is the value of i after
Q28: What is the output of the following
Q29: If the initial value of a is
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