What is the output of the following code: loopCount = 1;
While(loopCount < 3)
System.out.println("Hello") ;
loopCount = loopCount + 1;
A) No output
B) Hello Hello
C) Hello Hello
Hello
D) This is an infinite loop
Correct Answer:
Verified
Q49: Match each term with the correct statement
Q50: Match each term with the correct statement
Q51: Match each term with the correct statement
Q52: Match each term with the correct statement
Q53: Match each term with the correct statement
Q55: Match each term with the correct statement
Q56: Match each term with the correct statement
Q57: Match each term with the correct statement
Q58: What kind of loop is this: response
Q59: Match each term with the correct statement
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