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

A chemical reaction has 2 elements as reactants which type of reaction may occu
what are three songs that describe Creon from Antigone
During the 18th century, how many continents did the British empire colonize? three < this one? five six seven
SOMEONE SMART 20 POINTS Not much instruction is left, I'm asked to simplify. I want to know if I got it right or wrong. I don't want the answer i just want to
How many moles are in 1g of baking soda (NaHCO3)? show all work
Find the volume of the parallelepiped (box) determined by uv and w
___is when a force is exerted on an object and the object moves a distance in the direction of the force. A)Work B) Watt C) Joule D) Power
Assume that a cell has 6 chromosomes while it is in the g1 stage of the cell cycle. how many chromosomes and how many dna molecules will it have in the g2 stage
During the height of the reign of terror in 1793-1794, the French Revolution, as led by the Jacobins, developed three notable concepts. What were those concepts
A cell contains the same DNA as its parent cell. This is a result of which process?