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 results from multiplying the six trigonometric functions? -3 -1 1 3
what is a solution set for xsquared+ 3X-4=6
what is the place of the 5 in 35.052
August kekule described the various ring structures of the carbon compound benzene. What type of chemist would he be considered today? A. Inorganic chemist B. O
Which group was a US ally in the Vietnam War? A.) Viet Cong B.) Army of the Republic of Vietnam C.) Viet Minh D.) People's Army of Vietnam
The time to complete a project is inversely proportional to number of people who are doing the project. A certain project can be completed by 5 workers in 24 da
A cake shop bakes a variety of brownies. The top-selling brownies are ones with toppings of chocolate chip, walnuts, or both. A customer enters the store. The p
which of the following is an example of a complex formula
how do you find the least common multiple of three numbers?
what is the purpose of each level of government