search
Log In
0 votes
471 views
Let The value of below expression is A.

6 2 3 + - 3 8 2 / + * 3 ^ 3 +

and Let the value of below expression is Y:

2 A * 16 +

What is value of sqrt(Y)

Ans. 16
  • 🚩 Duplicate | 👮 Himanshu Kumar Gupta | 💬 “https://gateoverflow.in/273171/madeeasy-test-series-programming-%26-ds-stack”
in DS 1 flag 471 views
1
I am getting answer as 26.60. Please Verify anyone. I am not getting the required answer :(
0
I am getting the same..can you post the solution?
0
In solution they simply say A =120 without giving solution and further calculate value of Y
1
I don't think they are right... :/
0
added the solution @minipanda

1 Answer

2 votes
|6|2|3|  +
|6|5|  -             (2+3=5)
|1|                   (6-5=1)
|1|3|8|2| /        
|1|3|4|+          (8/2=4)
|1|7|*             (3+4=7)
|7|                 (1*7=7)

|7|3|^           (7^3 = 343)
|343|3|+
|346|

Therefore A=346

Y= 2*346+16 = 708

answer should be 26.60
0
Yes it is 26.60..but answer key is 16 :/
0
the answer is $26.60$ and $16$ is wrong i think.
0
correct answer is 26.6;

16 is wrong for sure;

Related questions

0 votes
1 answer
1
3 votes
1 answer
2
1.2k views
Time required to evaluate a. prefix, b. infix, c. postfix_____O(n) ? for expression evaluation (infix, prefix, postfix) operand stack needed____True? for conversion from one to another notation operator stack needed_____True? time required for conversion from infix to postfix___O(n) ... among { infix, prefix, postfix } require more scan__? PS: i googled for all this but not found anthing exact..
asked Nov 26, 2016 in DS 2018 1.2k views
1 vote
0 answers
3
708 views
Conver the following infix to Postfix and Prefix $log ( 3 ! )^ {log4} *log log ((6/7)*4+x)!$ $ sin 2x cos (3x+4) $ Please use stack method to solve . Diagram would be appreciated
asked Nov 10, 2016 in DS PEKKA 708 views
2 votes
3 answers
4
1.8k views
Consider the following expression with infix notation A * B - (C + D) * (E / 5) ^ F What is the maximum height of the operator stack during conversion from infix to postfix ? a) 3 b) 4 c) 5 d) 6
asked Jan 28, 2016 in DS Tushar Shinde 1.8k views
...