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

James opened the door of his cluttered refrigerator. is this sentence a fragment?
Someone who inconspicuously harbors a pathogen and spreads it to others is a _______
Which of these statements has the most casual tone? thanks for coming to our party. we all had a great time. it was an awesome party. thanks for coming, man. th
Which of the following is the primary purpose of interest groups?
A plant that is homozygous for red fruit is crossed with a plant that has yellow fruit Wjat will be the genotype and phenotype of the offspring
Which action related to benefits can best give employers an advantage in the labor market?
Latoya has a lot of doctor’s visits coming up, and her children all need vaccinations for the upcoming school year. which type of insurance would be most helpfu
« Question 33 of 50 Who was the author of the book "On The Origin of Species"? A. Charles Darwin B. Ralph Waldo Emerson OC. Henry David Thoreau D. Charles Dicke
If there were no asymmetry in the information that a borrower and a lender had, could there still be a moral hazard problem?
The effectiveness of a blood-pressure drug is being investigated. an experimenter finds that, on average, the reduction in systolic blood pressure is 47.3 for a