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

Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
i need with math it say the ride-it store rents bicycles. the cost is $8.50 for 1 hour, $13.64 for 2 hours, $18.80 for 3 hours, and 23.95 for 4 hours. if the pa
You have a piece of wood that is 7 3/4 feet long.  You want to cut one piece that is 3 7/12 feet long and one piece that is 4 1/12 feet long.  Do  you have enou
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
A laptop computer is priced at $650. If the sales tax is 5%, find the total cost of the computer, including sales tax.
Proof: Given: Isosceles trapezoid TRAP with TR=PA Prove: Angle RTA = angle APR
You have a piece of wood that is 7 3/4 feet long.  You want to cut one piece that is 3 7/12 feet long and one piece that is 4 1/12 feet long.  Do  you have enou
i need with math it say the ride-it store rents bicycles. the cost is $8.50 for 1 hour, $13.64 for 2 hours, $18.80 for 3 hours, and 23.95 for 4 hours. if the pa
i need with math it say the ride-it store rents bicycles. the cost is $8.50 for 1 hour, $13.64 for 2 hours, $18.80 for 3 hours, and 23.95 for 4 hours. if the pa