मराठी
महाराष्ट्र राज्य शिक्षण मंडळएचएससी विज्ञान (संगणक विज्ञान) इयत्ता १२ वी

Draw the tree structure for the following expression: Y = (A + B)/[(C * D + E)] - Computer Science 1

Advertisements
Advertisements

प्रश्न

Draw the tree structure for the following expression:

Y = (A + B)/[(C * D + E)]

आकृती
लघु उत्तर
Advertisements

उत्तर

Expression without assignment

(A + B)/(C ∗ D + E) 

Main operator = /
Left subtree = A + B
Right subtree = (C * D + E)

Expression Tree Diagram:

            /
          /   \
        +       +
       / \     /   \
      A   B   *     E
               / \
              C   D

If assignment (Y =) is included:

              =
            /   \
           Y     /
               /   \
             +     +
            / \   /   \
          A   B  *   E
                  / \
                 C   D
shaalaa.com
  या प्रश्नात किंवा उत्तरात काही त्रुटी आहे का?
2024-2025 (July) Official Board Paper

APPEARS IN

Share
Notifications

Englishहिंदीमराठी


      Forgot password?
Use app×