CS606 Midterm Online Quiz

0%

CS606-Midterm

1 / 50

Lexer and scanner are two different phases of compiler

2 / 50

Flex is an automated tool that is used to get the minimized DFA (scanner).

3 / 50

LR parsers can handle _______ grammars.

4 / 50

This grammar contains a reduce-reduce conflict. If a DFA states contains both [X → α •, a] and [Y → β •, a], then on input “a” we don’t know which production to reduce with. This is called a reduce-reduce conflict. Usually due to gross ambiguity in the grammar.

5 / 50

In multi pass compiler during the first pass it gathers information about __________ .

6 / 50

Responsibility of _____ is to produce fast and compact code.

7 / 50

In PASCAL ___________ represent the inequality test.

8 / 50

The transition graph for an NFA that recognizes the language ( a | b)*abb will have following set of states.

9 / 50

____________avoid hardware stalls and interlocks.

10 / 50

Lexical Analyzer generator _______ is written in Java.

11 / 50

Which of the statement is true about Regular Languages?

12 / 50

The non-terminal _______ is left recursive.

13 / 50

Left factoring of a grammar is done to save the parser from back tracking.

14 / 50

Alternative of the backtrack in parser is Look ahead symbol in ______ .

15 / 50

Which of the statement is true about Regular Languages?

16 / 50

Left factoring is enough to make LL1 grammar

17 / 50

Left factoring of a grammar is done to save the parser from back tracking.

18 / 50

Yacc contains built-in support for handling ambiguous grammars resulting in shift-reduce conflicts. By default these conflicts are solved by performing the ________.

19 / 50

Functions of Lexical analyzer are?

20 / 50

An ----- does not need to examine the entire stack for a handle, the state symbol on the top of the stack contains all the information it needs

21 / 50

___________ phase which supports macro substitution and conditional compilation.

22 / 50

When generating a lexical analyzer from a ________ description, the item sets (states) are constructed by two types of “moves”: character moves and e moves.

23 / 50

Optimal registers allocation is an NP-hard problem.

24 / 50

In parser the two LL stand(s) for ____________ .

25 / 50

Front end of two pass compiler takes________ as input.

26 / 50

Consider the grammar

27 / 50

Functions of Lexical analyzer are?

28 / 50

Left factoring is enough to make LL1 grammar

29 / 50

We use ----- to mark the bottom of the stack and also the right end of the input when considering the Stack implementation of Shift-Reduce Parsing.

30 / 50

In LL1() parsing algorithm _________ contains a sequence of grammar symbols.

31 / 50

LL(1) parsing is called non-predictive parsing.

32 / 50

Left factoring is enough to make a grammar LL(1).

33 / 50

Compilers are sometimes classified as.

34 / 50

In DFA minimization we construct one ______ for each group of states from the initial DFA.

35 / 50

The transition graph for an NFA that recognizes the language ( a | b)*abb will have following set of states.

36 / 50

In DFA minimization we construct one ______ for each group of states from the initial DFA.

37 / 50

First of C is ______ .

38 / 50

Ambiguity can easily be handled by Top-down Parser Select correct option:

39 / 50

The following two items A -> P • Q B -> P • Q can co-exist in an ______ item set.

40 / 50

______ phase which supports macro substitution and conditional compilation.

41 / 50

Parser always gives a tree like structure as output

42 / 50

Lexical Analyzer generator _______ is written in Java.

43 / 50

In LL1() parsing algorithm _________ contains a sequence of grammar symbols.

44 / 50

Follow of B is ____ .

45 / 50

Flex is an automated tool that is used to get the minimized DFA (scanner).

46 / 50

In compilation process Hierarchical analysis is also called-----------

47 / 50

Compilers are sometimes classified as.

48 / 50

In predictive parsing table the rows are ___________ .

49 / 50

An important component of semantic analysis is _________ .

50 / 50

Typical compilation means programs written in high-level languages to low-level ____________.

Your score is

The average score is 0%

0%

Qunoot e Nazilah
Dua e Hajat
4 Qul
6 Kalma
Dua-e-Akasha
Darood Akbar
Surah Fatiha
Dua-e-Ganj Ul Arsh
Dua-e-Jamilah
Ayat-ul-Kursi