QUESTION 38 What is the printout after the following loop terminates? int number
ID: 3846467 • Letter: Q
Question
QUESTION 38 What is the printout after the following loop terminates? int number- 25; int i, boolean is Prime true; for 2 i knumber && isPrime; i if (number% isPrime false; System out.println("i is i isPrime is isPrime); iis 5 isPrime is true s 5 isPrime is false i is 6 isPrime is true is 6 isPrime is false QUESTION 39 In a for statement, if the continuation condition is blank, the condition is assumed to be true false QUESTION 40 What is y after the following for loop statement is executed? int y 0. for anti 0, iExplanation / Answer
I have given answer to questions in the order they were asked.
Question 38) i is 6 isPrime isTrue.
Question 39) True.
Question 40) 10.
Question 35) 11.
Question 36) Prints out welcome to java forever.
Question 37) 10.
Question 32) The program may not stop because of the phenomenon reffered to as numerical inaccuracy for operating with floating-point numbers.
Question 33) 17.
Question 34) n.
Question 29) Does not print anything.
Question 21) 45.
Question 13) 0.0
Question 14) No.
Please rate my answer.Thank you.
Related Questions
Hire Me For All Your Tutoring Needs
Integrity-first tutoring: clear explanations, guidance, and feedback.
Drop an Email at
drjack9650@gmail.com
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.