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

If the mass of an object is decreased, its gravitational force will _____. 1. decrease 2. decrease by the distance squared 3. increase 4. increase by the dist
5/9 + (-4/5) 1/4 11/45 -9/14 -11/45
Why was education so important to the Puritans? They believed knowledge of the Bible would protect you from the devil. Reading and writing would allow you to pa
Fill in the blank in the following sentence with the appropriate form of the verb encantar below.¡Me ________ las frutas! a.encantas b.encanta c.encanto d.e
If the mass of an object is decreased, its gravitational force will _____. 1. decrease 2. decrease by the distance squared 3. increase 4. increase by the dist
2x-50=150 Someone please help me out
The “I have a dream” speech referred to which historic American document?
If the code of girl is 48 what will the code of boy be?
In the structure of a muscle, several fascicles lie bundled together to form a muscle, just as several (a. bone cells b. ligaments c. osteons) lie together to f
3[(15-3)^2\4] Simplify the expression