Ask Question
2 September, 18:28

The variable 'a' starts with the value 1 The variable 'b' starts with the value 10 The variable 'c' starts with the value 100 The variable 'x' starts with the value 0 Store the value of 'c' times 3 in 'x' Add the value of 'b' times 6 to the value already in 'x' Add the value of 'a' time 5 to the value already in 'x' Display the value of 'x' on the screen.

a. 355

b. 365

c. 325

d. 370

+4
Answers (1)
  1. 2 September, 18:46
    0
    The answer is B = 365

    Explanation:

    The following variable were initialized:

    a = 1

    b = 10

    c = 100

    x = 0

    Then we store the value of 'c' times 3 in 'x'

    x = 3 * c = 3 * 100 = 300

    x = 300

    Then we add the value of 'b' times 6 to the value already in 'x'

    x = x + 'b' times 6

    x = x + (b * 6) = 300 + (10 * 6) = 300 + 60 = 360

    x = 360

    Then we add the value of 'a' times 5 to the value already in 'x'

    x = x + 'a' times 5

    x = x + (a * 5) = 360 + (1 * 5) = 360 + 5 = 365

    x = 365.

    Therefore, the value of 'x' displayed is 365.
Know the Answer?
Not Sure About the Answer?
Find an answer to your question ✅ “The variable 'a' starts with the value 1 The variable 'b' starts with the value 10 The variable 'c' starts with the value 100 The variable ...” in 📘 Computers and Technology if you're in doubt about the correctness of the answers or there's no answer, then try to use the smart search and find answers to the similar questions.
Search for Other Answers