vegasviman vegasviman
  • 02-04-2022
  • Computers and Technology
contestada

How could the following line of code be shortened?

average = average + 1

Group of answer choices:

1.average + a

2.average += 1

3.average = + 1

4.average = 1 + average

Respuesta :

markmeadows67
markmeadows67 markmeadows67
  • 02-04-2022

Answer:

2

Explanation:

The second option is the only one that will work. The last would work but doesn't make the code any shorter.

Answer Link

Otras preguntas

what is the answer for (20,8),(9,16) ?
Data are drawn from a symmetric and bell shaped distribution with a mean of 120 and a standard deviation of 5. There are 900 observations in the data set. What
Historians of china have traditionally dated the beginning of Chinese civilization to the founding of the what??
Find Domain of the functionsquare root of (x-8)/x(x-9)
How were life forms affected by the rise in atmospheric oxygen levels that began 2.2 billion years ago?
How is it possible for Mercury to have frozen ice ?
Find Domain of the functionsquare root of (x-8)/x(x-9)
Marika and Freddy sold 70 homes for Ron Realty. If Marika sold 2.5 times as many homes as Freddy, how many homes did each sell?
Which equation has the same y-intercept as y=4x-3?a. y-3=x              b. y=8x+3    c. 3-y=4x      d. y=-3+8xWhich of the following is the equation of the line
how is mass transit in cities a possible solution tk urban air pollution?