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 term for controls placed on what people may write, read, say, or hear? A. censorship B. insurgence C. sedition D. suppression
Is degenerative arthritis a derivative of kyoplasty?
Joining two or more objects in a publication is known as _____.
A cylinder has a radius of 10m and a 8m. What is the exact volume of the cylinder? 160 TT m3 80 TT m3 800 TT m3 18 TT m3
Pls Help Me For 30 Points! Match the words with the definitions. 1.duties that all citizens have; some are mandatory, like paying taxes and serving on juries;
CAN SOMEONE HELP ME ON THIS
Vascular plants have two main organ systems. what are they
A bag contains 8 yellow cubes,7 blue cubes,and 5 red cubes.If you select a cube at random,what is the probability the cube will not be blue or red
A charged particle is projected with its initial velocity parallel to a uniform magnetic field. what is the resulting path? 1. parabolic arc. 2. circular arc. 3
As age occurs, what happens to people's ability to concentrate on a task for an extended period of time? in laboratory tests, older and younger adults were pres