In the given C snippet, find the statement number that has error. //C code to push an element ...
View QuestionIf -*+abcd = 11, find a, b, c, d using evaluation of prefix algorithm.
a) a=2, b=3, c=5, d=4 b) a=1, b=2, c=5, d=4 c) a=5, b=4, ...
View QuestionUsing the evaluation of prefix algorithm, evaluate +-9 2 7.
a) 10 b) 4 c) 17 d) 14 Answer: d Explanation: Using the evaluation of ...
View QuestionAn error is thrown if the character ‘\n’ is pushed in to the character stack.
a) true b) false Answer: b Explanation: The input character ...
View Question
Find the output of the following prefix expression.
*+2-2 1/-4 2+-5 3 1
Find the output of the following prefix expression. *+2-2 1/-4 2+-5 3 1 a) 2 b) ...
View QuestionWhat determines the order of evaluation of a prefix expression?
a) precedence and associativity b) precedence only c) associativity only d) depends on the parser Answer: a Explanation: ...
View QuestionHow many types of input characters are accepted by this algorithm?
a) one b) Two c) Three d) four Answer: c Explanation: ...
View QuestionThe associativity of an exponentiation operator ^ is right side.
a) true b) false Answer: a Explanation: The associativity of ^ is right side ...
View QuestionWhile evaluating a prefix expression, the string is read from?
a) left to right b) right to left c) center to right d) center to left ...
View QuestionHow many stacks are required for evaluation of prefix expression?
a) one b) two c) three d) four Answer: b Explanation: 2 stacks are required ...
View Question