Understand the flowchart and answer the question.
If A = 40 ÷ 5 x 2 + 4
B = 5 x 6 ÷ 3 – 3
What will the computer show after executing the task?
A. 3
B. 5
C. 7
D. 4
Answer: (C)
Solution:
According to the given question,
A = 40 ÷ 5 x 2 + 4 = 20, and
B = 5 x 6 ÷ 3 – 3 = 7
If we compare Values of A and B we can say A > B.
According to the given flowchart if A > B then the computer show value of B which is 7.
Therefore, the computer will show 7 after executing the task.