Expression Tree Multiple choice Questions and Answers (MCQs)

 

 Help authour, Buy PDF Ebook   >>>Click Here<<<

Expression Tree Multiple choice Questions and Answers (MCQs)

Click on any option to know the CORRECT ANSWERS

Question 11
What is the postfix expression for the following expression tree?
A
abcde++**
B
ab+cde+**
C
abc+de+**
D
abcd+*e+*
ICT Questions answers

Question 11 Explanation: 
If the given expression tree is evaluated, the postfix expression ab+cde+** is obtained.

Question 12
In an expression tree algorithm, what happens when an operand is encountered?
A
create one node pointing to a stack
B
pop the nodes from the stack
C
clear stack
D
merge all the nodes
Microbiology Questions answers

Question 12 Explanation: 
When an operand is encountered, create one node trees and push it on to the stack. When an operator is encountered, pop the pointers from last two trees from the stack.

There are 12 questions to complete.

 

 Download all FREE PDF Ebook >>>CLICK HERE<<<