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 correct order of urine flow from its source to the outside of the body?
What advantages allowed cortes small army to conquer mexico?
Where does jefferson say that a country gets its power?
Astrology is the study of the Earth, Moon, and Stars in space. Please select the best answer from the choices provided T F
Quadrilateral ABCD is inscribed in a circle. What’s the measure of angle B
Through the digestion system, water is mainly absorbed in the A. gallbladder. B. stomach. C. large intestine. D. small intestine.
A nurse is caring for a client who has a prescription for digoxin. what are manifestations for digoxin toxicity that the nurse should monitor for before adminis
Use a net to find the surface area of the right triangular prism shown below:
What is one of the outstanding festivals in the city of Oaxaca?
3, 12, 48, 192, 768, . . . This sequence has a A.] common difference of 4 B.] common ratio of 4 C.] common difference of [tex] \frac{1}{4}[/tex] D.] common rati