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

Which statement is an ineffective claim?
Which of the following are distinctive features of the Australian ballot? Select all that apply. A. it is a secret ballot B. names of all candidates appear on a
Solutions to the equation (cosx/sin2x)=(5/7) for 0
WILL GIVE BRAINLIEST A Shakespearean play that focuses on the flaws and mistakes of the protagonists is known as a
____________ is created when the audience of a film knows more about the danger of a situation than do the characters portrayed in it.
8. Mark is sitting in a chair, legs out in front of him resting on an ottoman. His knees are.....
Explain why it does not matter what letter or symbol is used to find an unknown number.
Which pair of radicals is a pair of like radicals? (See image) thanks!
What term describes the ability of the heart and lungs to supply oxygen to the muscles for a long period of time? Question 1 options: Flexibility
___ is a condition in which people cannot meet their basic needs for adequate food, clothing, shelter, or health.