amberwells606 amberwells606
  • 26-02-2022
  • Computers and Technology
contestada

1) What is y after executing the statements?

X = 5;
y = x + 1;
y= y * 2;
a. 5
b. 6
C. 8
d. 12

Respuesta :

homeworkanswers123 homeworkanswers123
  • 26-02-2022

Answer: d. 12

Explanation: if X = 5, then y = 5 + 1 because in y = x + 1, You are replacing the x with 5.

y is now 6.

Now you are multiplying 6 * 2 because of y * 2. You replace the Y with the 6.

6 * 2 = 12

y = 12 or letter d

Answer Link

Otras preguntas

h e l p m e o u t :)
how can I create a folder that will demand a password to open it?​
What is the name of this molecule?
Who are untouchables? What is the plight of the untouchables?
Easy Spanish please help me graduate y’all are the best :D
A cash register contains $10 bills and $20 bills with a total value of $520. If there are 32 bills total, then how many of each does the register contain
Suppose you are Tanim, you have a friend named robot Sophia. She is good at English. On the other hand, you have a bit difficult to speak English fluently. Now
Who is the key motivation behind European imperialism in the 18th and 19th centuries
13. If 16 people are needed to run 7 machines, how many people are needed to run 35 machines?
If you can get an answer to any question, what would you ask? You toss a fair coin 4 times. What is the probability that (round to 4 decimal places) a) you get