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

Which is NOT true about eukaryotic cells? A. They are larger. B. They contain ribosomes. C. They have no nucleus.
Find the simplified product. b-5/2b X b^2+3b/b-5
PLEASE HELP! Find the degree measure of each numbered angle.
A sealed container can hold 0.325 L of gas at 1.00 atm and 293 K. How many moles of gas can the container hold?
Rewrite the sentences below to make them more concise..... Baseball, one of our oldest and most popular outdoor summer sports in terms of total attendance at ba
Need help please. Math and I'll give 30 points. Please and thank you. :DAnd have a great day! :)
find the perimeter.
The oldest oceanic crust is a. found at the mid-ocean ridges. b. beneath the least amount of sediment. c. older than the oldest continental crust. d. less than
How much weight does the women in the video lose in a year? 80 pounds 90 pounds 50 pounds 20 pounds
How do you calculate the minimised dimensions: length width and height of a rectangular prism with the given volume of 10m^3?