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

The measure of an angle is 34.6°. What is the measure of its complementary angle?
A one-day pass to an amusement park costs $40. A round-trip bus ticket to the park costs $5. Write two equivalent expressions to find the total cost of a one-da
Any gïrls here free to talk
A barbar wants to set up a salon in a room measuring length of 3m by 3m .He has a simple wooden chair,3 large mirrors and one bulb . a) using the knowledge of s
im sad and depressed because i just got called to the library to get told i didnt mke the team for the battle of the books
I will give 50 points answer all why the order of the proof is correct d,a,c,b Please explan dosnt have to be super detailed haha 9. Order the steps below to co
1/10 + -9/10 = what in fraction form
What is the largest known number called?
spade realty sold lots for $23240 per hectare . what is total sales values if the lots in hectare were 2,3,4 ?
What element is in period 4, group 12?