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

The expression s2 is the area of a square, where s is the side length of the square. What does the expression (6x)2 represent? A) the area of a square with a s
Any proposed solution of a rational equation that causes a denominator to equal​ _______ is rejected.
Why was Yip Harburg relieved when the stock market crashed?
It was the northernmost point of Japanese control by December 1942. A.) French Indochina B.) Hong Kong C.) Manchuria D.) Thailand
Strong nuclear forces act over _____ distances within atoms.
two reasons why interdisciplinary science is important to society
which kind of bond is created by a weak electrical attraction between polar molecules
how might Greece's physical features have affected the development of the Greek trade, culture and legacy?
"More than 60% of the students scored below the mean on the last test." Can this statement be true? Why or why not?
Please help!!!!!!!!!!!!!!!!!