CS606 Midterm Online Quiz

0%

CS606-Midterm

1 / 50

In predictive parsing table the rows are ___________ .

2 / 50

Responsibility of _____ is to produce fast and compact code.

3 / 50

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

4 / 50

LR parsers can handle _______ grammars.

5 / 50

_______ of a two-pass compiler is consists of Instruction selection, Register allocation and Instruction scheduling.

6 / 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.

7 / 50

A _______ is a top down parser.

8 / 50

The non-terminal _______ is left recursive.

9 / 50

45.Follow of C is ____ .

10 / 50

Functions of Lexical analyzer are?

11 / 50

An important component of semantic analysis is _________ .

12 / 50

Follow of B is ____ .

13 / 50

We can get an LL(1) grammar by _______ .

14 / 50

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

15 / 50

Parser takes tokens from scanner and tries to generate ______ .

16 / 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

17 / 50

Functions of Lexical analyzer are?

18 / 50

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

19 / 50

____is evaluated to yield a value.

20 / 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.

21 / 50

Consider the following grammar,

22 / 50

In PASCAL ___________ represent the inequality test.

23 / 50

Which of the statement is true about Regular Languages?

24 / 50

In Three-pass compiler ____ is used for code improvement or optimization.

25 / 50

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

26 / 50

Front-end of a two pass compiler is consists of Scanner.

27 / 50

____________avoid hardware stalls and interlocks.

28 / 50

Yacc contains built-in support for handling ambiguous grammars resulting in _______

29 / 50

Recursive ____________ parsing is done for LL(1) grammar.

30 / 50

Parser takes tokens from scanner and tries to generate ______ .

31 / 50

_______ algorithm is used in DFA minimization.

32 / 50

Parser always gives a tree like structure as output

33 / 50

A grammar is LR if a ------ shift reduce-reduce parser can recognize handles when they appear on the top of stack.

34 / 50

First of C is ______ .

35 / 50

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

36 / 50

Compilers are sometimes classified as.

37 / 50

In Back End module of compiler, optimal register allocation uses______ .

38 / 50

The regular expressions a*|b* and (a|b)* describe the _____set of strings.

39 / 50

Responsibility of _____ is to produce fast and compact code.

40 / 50

Recursive ____________ parsing is done for LL(1) grammar.

41 / 50

Lexer and scanner are two different phases of compiler

42 / 50

Parser takes tokens from scanner and tries to generate______ .

43 / 50

Which of the statement is true about Regular Languages?

44 / 50

Left factoring is enough to make LL1 grammar

45 / 50

In a transition table cells of the table contain the ________ state.

46 / 50

_______ of a two-pass compiler is consists of Instruction selection, Register allocation and Instruction scheduling.

47 / 50

Parser always gives a tree like structure as output

48 / 50

LR parsing _____ a string to the start symbol by inverting productions.

49 / 50

Optimal registers allocation is an NP-hard problem.

50 / 50

NFA is easy to implement as compared to DFA.

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