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

If P(A)= 0.3 , P (B)= 0.2, and P(A and B)= 0.1 , determine the following probabilities: (a) P( A' ) (b) P (A U B) (c) P(A' INTERSECT B) (d) P [ (A U B)' ] (e) P
identify the mode of communication for the activity. tweet about your favorite tv show . my favorite TV show is: LOST
A triangle has two equal side and a third side that is 15 cm long. If the perimeter is 50 cm, how long is each of the two equal sides?
A recent poll of 1971 home owners in West Virginia showed that the average price of a house in the U.S. is $319,000 (A) Sample Statistic (B) descriptive statist
What is red shift? What does it indicate?
1/x + 3 = x +10/ x - 2
Order these decimals from least to greatest pls 1.2; 0.12; 12; 0.012; Order these decimals from least to greatest pls 9.7; 9.71; 9.68; 9..90
Which graph represents a negative linear association between x and y? Graph A Graph B Graph Graph D
Two planes leave wichita at noon. One planes flies east 30m/h faster than the other plane, flying east at what time will they be 1200 mi apart?
When the primary potential harm is the breach of individually identifiable data, to protect against such disclosures researchers should: