subject
Advanced Placement (AP), 25.03.2020 05:46 Ladyt916

Consider the following code segment, which is intended to store the sum of all multiples of 10 between 10 and 100, inclusive (10 + 20 + ... + 100), in the variable total.

int x = 100;

int total = 0;

while( /* missing code */ )

{

total = total + x;

x = x - 10;

}

Which of the following can be used as a replacement for /* missing code */ so that the code segment works as intended?

A. x < 100

B. x <= 100

C. x > 10

D. x >= 10

E. x != 10

ansver
Answers: 1

Another question on Advanced Placement (AP)

question
Advanced Placement (AP), 24.06.2019 21:00
You are a psychologist who has been asked to write a brief report about the possible causes of anxiety (nervousness, fears, in your report, write up a summary that explains and examines anxiety according to each of the psychological perspectives: psychoanalytic behavioral cognitive humanistic biological sociocultural
Answers: 1
question
Advanced Placement (AP), 26.06.2019 08:00
If the human population continues to grow, what is a likely effect on land use? a. more land will be used for cities. b. more land will be used for forests. c. more land will be used for grasslands. d. more land will be used for wetlands.
Answers: 2
question
Advanced Placement (AP), 27.06.2019 13:00
Which part of the muscular and skeletal system work together to move muscles and bones?
Answers: 1
question
Advanced Placement (AP), 27.06.2019 13:30
Researchers pose the question: can shoe size be predicted from a woman's height? a random sample of 18 females and their shoe size versus height (in inches) gives the regression results shown in the table. predictor coeff se coeff t ratio p-value constant -45.74 32.58 -2.57 0.147 height 0.5943 0.2984 1.99 0.042 s = 3.2178 r-sq. = 18.9% r-sq. (adj) = 12.4% is there statistical evidence of a linear relationship between shoe size and height? no, because r2, the coefficient of determination, is too small no, because 0.147 is above any reasonable significance level yes, there is evidence at the 5% significance level yes, because, by any reasonable observation, taller women tend to have a larger shoe size
Answers: 2
You know the right answer?
Consider the following code segment, which is intended to store the sum of all multiples of 10 betwe...
Questions
question
English, 12.05.2021 23:00
question
Computers and Technology, 12.05.2021 23:00
question
Mathematics, 12.05.2021 23:00
question
Mathematics, 12.05.2021 23:00
Questions on the website: 13722359