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

What character trait did Nya have that helped her get through her long walks to water
1. Pick a correct sentence. a) Youth should not be held responsible for the climate change. b) We should visit a lake that Jeremy recommended so much. c) Th
Which types of radiation consist of particles? Which consist of only waves?
now a days water management is very essential write your opinion on this​
2/3 of 2 how do i get this answer
Give reason: Raj's bicycle was not working properly. His father asked him to put some grease on the chain. Why did his father ask him to put grease on the chain
Iodine-131 is used to treat a hyperactive thyroid gland. the half-life of iodine 131 is 8.02 d. If a hospital receives a 215.25 g shipment of iodine 131, how mu
solve .1-cot⁴o / sin⁴o = 1+2 cot²o​
If Ally passed her licensing exam on Jan 15,2019 when should she complete her 30 hr Post Licensing course per Indiana guidelines?
Naira has 13 pieces of rope, each piece is 1.5 metres long. What is the least number of pieces that she needs to tie together to make a length that is at least