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

1.The narrative technique using conversation between characters is ____. omniscience dialogue pacing character insight 2.Which of the following prompts best exe
A person with an anxiety disorder is most likely to:
What is the ultimate goal of a political party? a. creating the party platform b. winning elections c. raising the most money d. nominating candidates?
help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Who was Lord Chamberlain?
when was fort sumter
Who is a pharmacy benefit manager (pbm)- why is this manager important?
What is it called when the fetus's head appears at the outer opening of the vagina?
Evaluate the following expression for x = –2 and y = –4. 4(x-y)^4
A bond is convertible at $20 and is purchased for $1,100. if the common stock of the issuer appreciates and is currently selling for $25 per share, what is the