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 the average de Broglie wavelength of oxygen molecules in air at a temperature of 27°C? Use the results of the kinetic theory of gases The mass of an oxy
Chicago to Memphis is 527.4 miles Memphis to New Orleans is 393.8. How far is Chicago to new movie orleans
Given the following code, what is the final value of i at the end of the program? int i; for(i=0; i<=4;i++) { cout << i << endl; } Question 5 pow
What kind of quadrilateral is the shape shown here?The matching arrow labels indicate that two opposite sides are parallel.​
If there were no air resistance, a penny dropped from the top of a skyscraper would reach the ground 9.3 s later. To the nearest integer, what would the penny's
The solutions to the inequality y > −3x + 2 are shaded on the graph. Which point is a solution? (0, 2) (2, 0) (1, −2) (−2, 1)
Suppose you were interested in the effect of breastfeeding versus formula feeding on the composition of gut flora in newborns. As part of your experiment, stool
Prove that n is odd if and only if 3n + 6 is odd by contradiction.
What is the purpose of TCP?
how to ensure that the child is up to date with their immunization in childcare center