What output will the following script produce
Var i = 0;
Var j = 3;
Var counter = 0;
While ( i < 5 )
{
If (i != j)
Counter = counter + i;
I = i + 1
}
Document.write( counter ) ;
A) 9
B) 14
C) 3
D) 7
Correct Answer:
Verified
Q17: A program in which all statements are
Q18: A procedure for solving a problem in
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
Q23: What type of loop should be used
Q24: Which of the following is the correct
Q25: What type of loop is shown in
Q26: What is the value of i after
Q27: What is the value of i after
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