aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Data Structure Quiz 15
  • Consider the infix expression ((a + b * c))* d + e * (f +...
Multiple choice

Consider the infix expression ((a + b * c))* d + e * (f + g). If the expression tree is drawn, then the height of the tree, is

  1. 2

  2. 3

  3. 4

  4. 5

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The expression ((a + b * c)) * d + e * (f + g) results in a tree where the root is the final '+'. The depth of the tree is 4 levels.

Keep practicing — related questions

  • Consider the infix expression ((a + b * c))* d + e * (f + g). If the expression tree is drawn, how many nod...
  • Consider the infix expression ((a + b * c))* d + e * (f + g). If the expression tree is drawn, how many nod...
  • Consider the infix expression ((a + b * c))* d + e * (f + g) If expression tree is drawn, how many nodes ar...
  • The infix expression A+(B-C)*D is correctly represented in prefix notation as
  • The prefix expression for the infix expression a*(b+c)/e-f is
  • (A + B) * C is an example of _________________ type of expression in data structure.
  • If Infix = (a + b) * (c - d) / (e + f) is the INFIX expression, then what will be its Postfix value in POST...
  • Which of the following is the correct conversion of the infix expression A+B*C into postfix expression?
Play the full quiz 🎤 Practise this topic out loud
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy