adplus-dvertising
frame-decoration

Question

In the context of abstract-syntax-tree and control-flow-graph.
Which one of the following is true?

a.

In both AST and CFG if node N2 be the successor of node N1.

b.

For any input program, neither AST nor CFG will contain a cycle

c.

The max no. of successors of a node in an AST and a CFG depends on the input program

d.

None of the mentioned

Answer: (c).The max no. of successors of a node in an AST and a CFG depends on the input program

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. In the context of abstract-syntax-tree and control-flow-graph. Which one of the following is true?

Similar Questions

Discover Related MCQs

Q. Match the following:
List-I List-II

A. Lexical analysis 1. Graph coloring

B. Parsing 2. DFA minimization

C. Register allocation 3. Post-order traversal

D. Expression evaluation 4. Production tree

A B C D

Q. Which of the following pairs is the most powerful?

Q. Consider the following grammar G.
S → F ⎪ H

F → p ⎪ c

H → d ⎪ c

Which one is true?

S1: All strings generated by G can be parsed with help of LL (1).

S2: All strings generated by G can be parsed with help of LR (1).

Q. What is the maximum number of reduce moves that can be taken by a bottom-up parser for a grammar with no epsilon- and unit-production to parse a string with n tokens?

Q. Consider the following two sets of LR (1) items of an LR (1) grammar.
X -> c.X, c/d

X -> .cX, c/d

X -> .d, c/d

X -> c.X, $

X -> .cX, $

X -> .d, $

Which one is false?

1. Cannot be merged since look ahead’s are different.

2. Can be merged but will result in S-R conflict.

3. Can be merged but will result in R-R conflict.

4. Cannot be merged since goto on c will lead to two different sets.

Q. What is the binary equivalent of the decimal number 368

Q. AB+(A+B)’ is equivalent to

Q. Which of the following is the fastest logic ?

Q. A latch is constructed using two cross coupled

Q. DAG representation of a basic block allows

Q. Which of the following actions an operator precedence parser may take to recover from an error?

Q. Which of the following is used for grouping of characters into tokens?

Q. A optimizing compiler

Q. Input to code generator

Q. A synthesized attribute is an attribute whose value at a parse tree node depends on

Q. In a bottom up evaluation of a syntax direction definition ,inherited attributes can

Q. _________ or scanning is the process where the stream of characters making up the source program is read from left to right and grouped into tokens.

Q. _____________ is a graph representation of a derivation

Q. Which of the following symbols table implementation is based on the property of locality of reference?

Q. Assume that the SLR parser for a grammar G has n1 states and the LALR parser for G has n2 states. Hence which one is true?