Recent questions tagged expression-evaluation

5 5 votes
1 1 answer
265
265 views
Arrange the following prefix expressions in ascending order on the basis of their values.$-\:*\: 2\: /\: 8\:4\:3$$\uparrow \:- \:* \: 3\:6\:*\: 4\:2\:5$$+\:-\:\uparrow \:...
4 4 votes
2 2 answers
705
705 views
Consider the following infix expression $Q:\left((A+B)^{*} D\right) \uparrow(E-F)$. The equivalent postfix expression of $Q$ is$A B+D ^{*} E F \uparrow$ -$A B+D^{*}-\upar...
3 3 votes
2 2 answers
350
350 views
What is the result of evaluating the postfix expression "$43^{*} 25^{*}+b-$ " ?$8$$14$$10$$5$
7 7 votes
3 3 answers
1.6k
1.6k views
In Reverse Polish notation, expression $\mathrm{A} ^{*} \mathrm{~B}+\mathrm{C}^{*} \mathrm{D}$ is written as$\mathrm{AB}^{*} \mathrm{CD}^{*}+$$\mathrm{A}^{*} \mathrm{BCD}...
1 1 vote
1 1 answer
1.4k
1.4k views
The minimum number of arithmetic operations required to evaluate the expression $f(z)=8 x^{3}+3 z+12$$4$$5$$3$$6$ 
3 3 votes
2 2 answers
1.5k
1.5k views
The prefix expression is $-+a b c+d^{*}$ ef. Evaluate the expression for $a=10, b=2$, $c=5, d=3, e=4, f=1$$3$$4$$10$$6$ 
0 0 votes
3 3 answers
499
499 views
If y is of integer type, then the expression 3*(y-8)/9 and (y-8)/9*3 then-a) may or may not yield same outputb) must yield same output
0 0 votes
1 1 answer
595
595 views
44. Evaluate each of these expressions. a) 1 1000 ∧ (0 1011 ∨ 1 1011) b) (0 1111 ∧ 1 0101) ∨ 0 1000 c) (0 1010 ⊕ 1 1011) ⊕ 0 1000 d) (1 1011 ∨ 0 1010) ∧ (1 0001 ∨ 1 1011)
0 0 votes
2 2 answers
554
554 views
The postfix equivalent of the infix expression $(a+b)^{*}(c^{*}d-e)^{*}f/g$ is :$ab + cd^{*}e – fg^{*}/^{*}$$ab + cd^{*}e - fg/^{ }$$ab + cde^{*} – fg/^{ }$$abcd + e^{*} ...
2 2 votes
1 1 answer
838
838 views
$\text{ABC}{\ast}+$ is the postfix form of :$ \text{A}\;{\ast}\; \text{B} + \text{C} $$ \text{A}{\ast} + \text{BC} $$ \text{A} + \text{B}\;{\ast}\; \text{C} $none of thes...
0 0 votes
1 1 answer
450
450 views
The equivalent postfix express for $d/(e+f)+b*c$ is :$defbc/++$$def+/bc+*$$def+/bc*+$None of these
0 0 votes
2 2 answers
2.2k
2.2k views
The equivalent postfix expression for $d{\large /}(e+f)+b*c$ :$defbc/++*$$def+/bc+*$$def+/bc*+$None of these
0 0 votes
1 1 answer
481
481 views
If the post fix form of a string is $ABC+-D$*, The actual string is:$(A-(B+C))$*$D$$((A-B)+C)$*$D$$((A+B)-C)$*$D$$(A+(B-C)$*$D)$
0 0 votes
1 1 answer
1.6k
1.6k views
If the postfix form of a string is $ABC +$ $– D^{*}$, the actual string is :$\left ( A-\left ( B+C \right ) \right )^{*}D$$\left ( \left ( A-B \right )+C \right )^{*}D$$\...
1 1 vote
5 answers 5 answers
3.0k
3.0k views
What is the value of the arithmetic expression (Written in C)$2*3/4-3/4*2$$0$$1$$1.5$None of these
0 0 votes
0 0 answers
487
487 views
The postfix notation for infix notation $a^*(b+c)+d÷e$ is given by$abc^*+de ÷ +$$abc+^*de ÷ +$$abcde +^*÷ +$$abc^*+de + ÷$
0 0 votes
0 0 answers
257
257 views
The infix notation helps ______ to compute and postfix & prefix notations help ____ to compute.human, algorithmprogram, humanhuman, machinemachine, human
0 0 votes
2 2 answers
1.6k
1.6k views
Suppose x and y are floating-point variables that have been assigned the values x=8.8 and y=3.5. what will be the value of the following expression?2*x/3*y
5 5 votes
5 5 answers
3.2k
3.2k views
______ to evaluate an expression without any embedded function calls.Two stacks are requiredone stack is neededThree stacks are requiredMore than three stacks are require...
1 1 vote
3 3 answers
2.2k
2.2k views
Evaluation of the given postfix expression $10 \: 10 + 60 \: 6/^*8-$ is$192$$190$$110$$92$
0 0 votes
1 answers 1 answer
512
512 views
0 0 votes
1 1 answer
1.1k
1.1k views
While evaluating the expression tree, if the left or right child is not present then the value of that particular missing child is taken as 0?Have a look at this question...
0 0 votes
1 1 answer
1.1k
1.1k views
0 0 votes
1 1 answer
906
906 views
The evaluation of parenthesis free arithmetic expression $5 + 3 \uparrow 2 - 8/4 * 3 + 6$ gives. ($\uparrow$ represents 'power of operator')147836None of the above
2 2 votes
2 2 answers
2.3k
2.3k views
Consider the following productions along with their semantic rulesHere ⋅ i and ⋅ s corresponds to inherited and synthesized attributes respectively. The value for express...