Computers and Technology

Consider the following code segment.

int a = 1;

String result = "";

while (a < 20)

{

result += a;

a += 5;

}

System. out. println(result);

What, if anything, is printed as a result of executing the code segment?

21

161116

161161

16111621

Nothing is printing because of an infinite loop.

answer
Answers: 2

Other questions on the subject: Computers and Technology

image
Computers and Technology, 22.06.2019 00:00, amyeileen
11. is the ability to understand how another person is feeling. a. authority b. sympathy c. empathy d. taking a stand
Answers: 1
image
Computers and Technology, 22.06.2019 15:30, alexdub9649
What is a costume plot? why is it important to a film or theater production?
Answers: 2
image
Computers and Technology, 23.06.2019 06:00, 573589
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
image
Computers and Technology, 24.06.2019 03:30, mprjug6
Which explains extrinsic motivation? a)motivation in which there is a reward b)motivation that is personally satisfying c)motivation that is personally meaningful d)motivation in which the subject is interesting
Answers: 1
Do you know the correct answer?
Consider the following code segment.

int a = 1;

String result = "";

Questions in other subjects: