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

The percentage of oxygen in C2H5COOCH3​
The molar mass of copper (I) carbonate is
A large national bank determines if each of its branches is profitable or not profitable. Additionally, the location of each branch is classified as urban, subu
Who says (paraphrased) "treat me like you'd treat your dog"? (MSND) 2006
Question (point Find the volume of the pure below leave in terms of IT for answers that contain T Round your answer to the nearest hundredthir necessary 811 101
This attached picture !!
Find the indication of the right triangle
Which of the following is not an example of a chemical change? A. rusting iron B. an apple ripening C. cutting paper D. a piece of wood burning
5(n+1) = 2n + 20 can someone tell me the answer and explain
29:07 Using the patterns of inverse variation, complete the following table if y is inversely proportional to the cube of x: x 0.5 64 2 Y 16 a. 1 0.037 4 b. 2 C