In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE?
In the context of abstract-syntax-tree (AST) and control-flow-graph (CFG), which one of the following is TRUE? Correct Answer The maximum number of successors of a node in an AST and a CFG depends on the input program
- Abstract syntax tree (AST) is a tree that represents the abstract syntactic structure of a language construct where each interior node and the root represents an operator and the children of the node represent the operands of that operator.
- Control flow graph (CFG) is the graphical representation of control flow or computation during the execution of programs or applications. These are mostly used in static analysis as well as computer applications.
Option 1: FALSE
In CFG code of N2 may be present before N1 when there is a loop or goto.
Option 2: FALSE
CFG contains cycle when input program has loop.
Option 3: TRUE
Successors in AST and CFG depend on input program.
Option 3: FALSE
A single statement may belong to a block of statements.
মোঃ আরিফুল ইসলাম
Feb 20, 2025