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 is 43.808 in written form
Which is an abiotic factor that can be found in a rain forest ecosystem?
Nonshielded cable with a 1.5-inch diameter should have a minimum bending radius of A. 1.5 in. B. 12.0 in. C. 3.0 in D. 18.0 in.
1. Trucks? A. have a larger blind spot. B. are easy to stop in case of emergency. C. can easily see your car.
A 75-year-old male with long-standing hypertension and angina due to coronary heart disease presents with ankle edema, nocturia, increased shortness of breath w
Write 5.54 million in ordinary form
The ratio of boys to girls in a classroom is 2 : 3. If there are 20 children in total, how many boys are there?
You are trying to determine the mass of sodium chloride required to create a 0.875 m solution in 534 g of water. How many moles of NaCl are required? [?] mol Na
HELP ASAP PLEASE: Which of the following best explains the causal relationship between the G.I. Bill and the expansion of the US highway system?
4 Pencils and 2 rulers cost $8. 2 pencils and 4 rulers cost $10. Find the cost of 3 rulers and 3 pencils