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

Solve the inequality
Solve each of the following equations. Show its solution set on a number line. Check your answers. |3x-2| = 19
(Please Answer Quickly) Find the distance between the point and the plane. (Round your answer to three decimal places.) (4, 2, 1) x − y + 2z = 6
Joe and Ann buy some fruit from the same shop. Joe buys 4 apples and 3 bananas for £2.50 Ann buys 3 apples and 4 bananas for £2.40 Work out the cost of (i) one
Identify the domain and range x -5 -2 1 5 7 y 10 11 4 10 15
For each function f, find f^-1 and f^-1(5). f={(-1,5), (0,0), (2,6)}
Amy thinks of three numbers, which she calls a, b and c. The ratio a: cis 4: 3. The ratio b: cis 7:5. The median of a, b and c is 80. Work out the values of a,
Evaluate the expression 8 x 1. 5
Marvin drove 310 miles in 5 hours. At this same rate, how far could he travel in 2 hours? a. 105 miles b. 124 miles c. 155 miles d. 170 miles e. 200 miles
Select the values that make the inequality m 4 true. Then write an equivalent inequality, in terms of m. (Numbers written in order from least to greatest going