38.5k views
5 votes
What is the value of result?

result = (28 + 4) / 2
print(result)
a) 14
b) 16
c) 18
d) 32

User Mrfour
by
8.3k points

2 Answers

4 votes

Answer:

b) 16

Step-by-step explanation:

Remember PEMDAS: whatever's in the parenthesis will be evaluated before the division.

32 / 2 = 16

User Ruudt
by
8.7k points
1 vote

Final answer:

To find the value of 'result', we first add 28 and 4 to get 32, then divide by 2 to get 16 as the final answer.

Step-by-step explanation:

The value of result in the given expression result = (28 + 4) / 2 can be calculated by first adding the numbers inside the parentheses and then dividing the sum by 2. So, we first calculate 28 + 4 which equals 32. Next, we divide 32 by 2, which gives us 16. Therefore, the correct answer is b) 16.

User Dcorbatta
by
7.9k points