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 did Neville Chamberlain say the Munich Pact had preserved?
What consecrated place have you visited? Explain
What helps reduce sharp Inflation in Russia after the end of the Soviet Union
What makes the star Alpha Centauri appear to be yellow-white??
find the product (a+4b)(2a-b)
3(x - 4) + 8(x + 2).
What is the best possible answer to this
find the volume of the cylinder in terms of pi h=14, r= 5
I need help on a mathematics question. I need an explanation. Solve 2 log x = log 64. x = 8 x = ±8 x = 32 x = 128 Why is it not B and rather A? I agree with
if FG=10 and HJ = 10. Which additional facts guarantee that FGHJ is a parallelogram? check all that apply.