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

Can anyone help me? The ___________ system classifies resource materials in a library using numbers a) Dewey decision system b) cataloguing c) library congress
please help me write an essay about 'biggest mistake in life' in about 200-250 words​
Find the area of the parallelogram ABJF
Question, 40 points What are the endpoint coordinates for the midsegment of △PQR that is parallel to PR¯¯¯¯¯? Enter your answer, as a decimal or whole number, i
There is 5 mg in 2.5 mL how many milligrams are in 7 mL
a term may have extensional without having intentional meaning. is it true or false​
Explain why it was important that the temperature was the same for both sets of seedlings?​
what idea or belief is yoga based on?​
what is the least possible value of 8x-13 when 9 <= 3/4 +x show ur work
A line passes through the point (2, 7) and has a slope of 8. Write an equation in slope-intercept form for this line.​