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

Concerning blood, which virus poses the greatest risk for workers? HIV Hepatitis C Hepatitis B Hepatitis A
Express in Simplest Radical Form:Simplify the expression: √10​×√50​a. √5​b. √500​c. 10√5​d. 5√2​
Where else would elastin be helpful in keeping bones safe from absorbing too much energy
How did the 13 colonies contribute to the foundation of the United States?
What is an equation of the line that is parallel to y=3x−8 and passes through (1, 8)?
4d+5d-6+3d-4d+5 Terms Like Coefficient Canstants
What is the Multiplicative Inverse Property of Inequality? A) Taking the reciprocal of both a and b can change the direction of the inequality B) Taking the squ
Which aspect of globalization have a positive or negative effect on your company?
A fishing boat can hold fewer than 9 people. How many people (x) can it hold?​
Does removal of neurotransmitters allow us to change our responses quickly True OR False