subject

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.

ansver
Answers: 2

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 00:00
Sam is a data analyst at an advertising firm. he often uses a spreadsheet that contains media ratings details. he would like to filter the spreadsheet data based on different filter criteria. which operators can he use to specify the combination of filter criteria? sam can use the ( blank ) operators to specify a combination of filter criteria.
Answers: 3
question
Computers and Technology, 22.06.2019 04:30
How can you know if the person or organization providing the information has the credentials and knowledge to speak on this topic? one clue is the type of web site it is--the domain name ".org" tells you that this site is run by a nonprofit organization.
Answers: 2
question
Computers and Technology, 23.06.2019 01:30
For a typical middle-income family, what is the estimated cost of raising a child to the age of 18? $145,500 $245,340 $304,340 $455,500
Answers: 2
question
Computers and Technology, 23.06.2019 07:50
Most shops require the technician to enter a starting and ending time on the repair order to track the actual time the vehicle was in the shop and closed out by the office. this time is referred to as _ time ? a. comeback b. ro c. cycle d. lead
Answers: 1
You know the right answer?
Consider the following code segment.

int a = 1;

String result = "";
Questions
question
Mathematics, 12.10.2020 19:01
question
Mathematics, 12.10.2020 19:01
question
English, 12.10.2020 19:01
Questions on the website: 13722363