Evaluation of a Prefix Expression Multiple choice Questions and Answers (MCQs)

DOWNLOAD FREE PDF <<CLICK HERE>>

Evaluation of a Prefix Expression Multiple choice Questions and Answers (MCQs)

Congratulations - you have completed Evaluation of a Prefix Expression Multiple choice Questions and Answers (MCQs).

You scored %%SCORE%% out of %%TOTAL%%.

Your performance has been rated as %%RATING%%


Your answers are highlighted below.
Question 1 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions RIGHT ANSWER]
How many stacks are required for evaluation of prefix expression?
A
one
B
two
C
three
D
four
Question 1 Explanation: 
2 stacks are required for evaluation of postfix expression, one for integers and one for characters.

Question 2 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions RIGHT ANSWER]
While 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 to right
Question 2 Explanation: 
The string is read from right to left because a prefix string has operands to its right side.

Question 3 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions RIGHT ANSWER]
The associativity of an exponentiation operator ^ is right side.
A
True
B
False
Question 3 Explanation: 
The associativity of ^ is right side while the rest of the operators like +, -, *, / has its associativity to its left.

Question 4 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions RIGHT ANSWER]
How many types of input characters are accepted by this algorithm?
A
one
B
two
C
three
D
four
Question 4 Explanation: 
Three kinds of input are accepted by this algorithm- numbers, operators and new line characters.

Question 5 [CLICK ON ANY CHOICE TO KNOW MCQ multiple objective type questions RIGHT ANSWER]
What determines the order of evaluation of a prefix expression?
A
precedence and associativity
B
precedence only
C
associativity only
D
depends on the parser
Question 5 Explanation: 
Precedence is a very important factor in determining the order of evaluation. If two operators have the same precedence, associativity comes into action.

Once you are finished, click the button below. Any items you have not completed will be marked incorrect. Get Results
There are 5 questions to complete.

DOWNLOAD FREE PDF <<CLICK HERE>>