liyahlove8248 liyahlove8248
  • 10-01-2020
  • Computers and Technology
contestada

Assume the number variable contains the number 1000.

What value will be in the number variable after the preceding code is processed?



A.0

B.1000

C.2000

D.3000

Respuesta :

colocho08
colocho08 colocho08
  • 22-01-2020

Answer:

Explanation:

We could get the four options for this particular example, but we must know what happens with the variable number the value 1000.

In this case, we are going to assume four scenarios:

1) n = n - n this is equal to 0

2) n = (n - n) + n = 1000

3) n = n * 2 = 2000

4) n = n * 3 = 3000

These are simple examples, we could get these options in different ways.

Answer Link

Otras preguntas

Please help have a nice day please attach a file​
A period in music is most like a: A. Sentence B. Word C. Paragraph D. Phrase
why did sir syed Ahmed khan wrote ' the causes of the indian revolt'?​
Angles S and T are vertical angles. If angle S has a measure of ( x − 2 ) ∘, and angle T has a measure of 40 ∘, what is the value of x
The twelve month calendar is an advancement in the technology of Ancient Egypt. True False
PEOPLE OF THE INTERNET I REQUEST YOUR HELP ONCE AGAIN
What is the sale price for a beach umbrella with a regular price of $43.59 which is on sale for 20% off?
( I need help please….)
Read the following paragraph from a sociology textbook written by Brad Dudley: Most people learn about acceptable behavior from their families, friends, and co
What happens when a light wave is refracted? The waves spread out. The wave changes direction. The wave is scattered. The wave changes frequency.