Electronics and Communication Engineering - Microprocessors - Discussion

Discussion Forum : Microprocessors - Section 1 (Q.No. 35)
35.
To evaluate X = (A + B + 1.2) * (A + B - C) the sequence of operation is
+ + + - * =
* + + + - =
+ + - * + =
- + + + * =
Answer: Option
Explanation:

Parenthesis has first priority.

Discussion:
6 comments Page 1 of 1.

Akshay said:   5 years ago
@Subham.

When using BODMASS.
First, do the operations in the first bracket
That is 2 "+"
Then in the second bracket, there is one "+" and one "-"
Then last the multiplication *.
And for the result "="

And the order is "+,+,+,-*=.

Sai said:   8 years ago
X=(A+B+1.2)*(A+B-C).
Consider (A+B+1.2).

Here, A is added to B (+).
B is added to 1.2 (+).

Consider(A+B-C).

Here, A is added to B (+).
B is subtracted from C (-).

Then multiply values from both brackets (*).
Then the value of X is obtained (=).
(1)

Subham said:   8 years ago
If we are applying BODMAS rule how can it be option A? Please give information.

Lokes said:   7 years ago
I am not getting this clearly. Please, anyone explain me.

Deepak said:   8 years ago
I did not understand. Can anyone explain?

Hari said:   8 years ago
Please explain this question.

Post your comments here:

Your comments will be displayed after verification.