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

4x^2-28x+49=5 solve the quadratic by completing the square
27 devided by 1053 in decimal form like 528.6
ray wants the larger of two aquariums.One aquarium has 20 in. by 20 in. and has a height of 18 inches.The other aquarium has a base that is 40 in. by 12in. and
I have been stuck with this one, and i would like to how to solve this. In each case, determine whether line AB is parallel or perpendicular to CD. (a) A(0, 0),
where are chromosomes found in eukaryotic cells
a rectangle has an area of 30 square meters and a perimeter of 34 meters. what are the dimensions of the rectangle?
How to find the area of a circle ?
How to find the area of a circle ?
Dirk Nowitzki of the Dallas mavericks scored 44 points in a recent basketball game. He scored no 3-point shots, but made a number of 2-point field goals and 1-p
27 devided by 1053 in decimal form like 528.6