Which is the best summarized answer that will be displayed once - ProProfs Discuss
Topics
Products
Follow Us:

Which is the best-summarized answer that will be displayed once Kendra's while loop is implemented?
int count = 1;
 while (count <=25)
{ System.out.println (count)
; Count = count 1; }
System.out.println (Done);



A. The while loop will execute 25 times and print the numbers 1 thru 25 and finish with the printing of Done.
B. The while loop will execute 25 times and print the numbers 25 down to 1 and finish with the printing of Done
C. The while statement will not function correctly due to a missing semicolon(;) after the statement while (count <=25)
D. The while statement will execute by counting down from 1 until infinity and result in an infinite loop

This question is part of Computer Programming II Exam (Multiple Choice)
Asked by Justinsmith, Last updated: Mar 26, 2020

+ Answer
Request

1 Answer

John Smith

John Smith

Answered Oct 25, 2016

The while statement will execute by counting down from 1 until infinity and result in an infinite loop
 

Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer
Search for Google images
Select a recommended image
Upload from your computer

Email Sent
We have sent an email to your address "" with instructions to reset your password.