subject

For each of the following while loops, how many times will the loop execute its body? remember that "zero," "infinity," and "unknown" are legal answers. a) int x = 1; while (x < 100) { system. out. print(x + " "); x += 10; } b) int max = 10; while (max < 10) { system. out. println("count down: " + max); max--; } c) int x = 250; while (x % 3 ! = 0) { system. out. println(x); } d) int x = 2; while (x < 200) { system. out. print(x + " "); x *= x; } e) string word = "a"; while (word. length() < 10) { word = "b" + word + "b"; } system. out. println(word); f) int x = 100; while (x > 0) { system. out. println(x / 10); x = x / 2; }

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 23.06.2019 06:00
What machine listens for http requests to come in to a website’s domain? a. a router b. a browser c. a server d. a uniform resource locator
Answers: 1
question
Computers and Technology, 23.06.2019 22:50
An environmental protection agency study of 12 automobiles revealed a correlation of 0.47 between engine size and emissions. at 0.01 significance level, can we conclude that there is a positive association between the variables? what is the p value? interpret.
Answers: 2
question
Computers and Technology, 24.06.2019 14:30
Two students are discussing the flow of electricity. student a says that voltage is a measure of the amount of electron flow in a circuit. student b says that power is the product of voltage and current. which of the following statements is correct? a. only student a is correct b. only student b is correct c. both of the two students are correct d. neither of the two students is correct
Answers: 1
question
Computers and Technology, 24.06.2019 15:30
What is the function of compilers and interpreters? how does a compiler differ from an interpreter?
Answers: 2
You know the right answer?
For each of the following while loops, how many times will the loop execute its body? remember that...
Questions
question
Chemistry, 11.12.2019 22:31
Questions on the website: 13722367