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

Is it ever appropriate for a diplomat to express disagreement with his or her country’s leader?
What is the main stimulus for bile secretion from the gallbladder?
Explain why (√10)^3d is equivalent to (10^d)^3/2
A mass m = 12 kg is pulled along a horizontal floor, with a coefficient of kinetic friction μk = 0.06, for a distance d = 7.8 m. then the mass is continued to
What is highest estimate for the total number of muslims that live in the world today?
HELP WILL MARK BRAINLIEST!!!Write a Poem about a Mountain and a Hill.
Help please! Math Nation Section 6 Test Yourself Practice Tool.
‘It is more important to help the poor than to celebrate the Holy Communion.’ Evaluate this statement.
What fraction of a batch of trail mix consists of peanuts
How are viruses spread from cell to cell?