TCS
Company
In a revolutionary new computer language, when there are no parentheses in an algebraic expression, the operations are grouped from right to left. Thus, a + b * c in such languages means the same as (a + b)*c in ordinary algebraic notation. If 4 + 4 / 4 is evaluated in such a language, the result would be
a. 8/4
b. 20/4
c. 32
d. 16/4
e. 0.0/4
Read Solution (Total 6)
-
- 4+4*1/4=> (4+4)*1/4=8/4
- 11 years agoHelpfull: Yes(5) No(1)
- (4+4)/4
8/4
- 11 years agoHelpfull: Yes(4) No(1)
- @ABHIJEET RANJAN from where did u get this questions...........did you appear for TCS written test-2013 this year????
- 11 years agoHelpfull: Yes(2) No(1)
- (4+4)/4=8/4
- 11 years agoHelpfull: Yes(1) No(1)
- yes rudra...
u r right
- 11 years agoHelpfull: Yes(0) No(1)
- ans :a)8/4
both *,/ are have same priority
so|| to (a+b)*c
here (a+b)/c
=(4+4)/4
=8/4 - 11 years agoHelpfull: Yes(0) No(1)
TCS Other Question