CS606 Midterm Online Quiz

0%

CS606-Midterm

1 / 50

Follow of B is ____ .

2 / 50

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

3 / 50

Parser takes tokens from scanner and tries to generate ______ .

4 / 50

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

5 / 50

Parser always gives a tree like structure as output

6 / 50

Compilers are sometimes classified as.

7 / 50

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

8 / 50

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

9 / 50

Responsibility of _____ is to produce fast and compact code.

10 / 50

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

11 / 50

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

12 / 50

_______ algorithm is used in DFA minimization.

13 / 50

A lexical analyzer generator automatically constructs a _____ that recognizes tokens.

14 / 50

Lexer and scanner are two different phases of compiler

15 / 50

Intermediate Representation (IR) stores the value of its operand in

16 / 50

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

17 / 50

______ phase which supports macro substitution and conditional compilation.

18 / 50

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

19 / 50

One of the core tasks of compiler is to generate fast and compact executable code.

20 / 50

A _______ is a top down parser.

21 / 50

Consider the grammar

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

23 / 50

Reduction of a handle to the ------- on the left hand side of the grammar rule is a step along the reverse of a right most derivation.

24 / 50

Lexical Analyzer generator _______ is written in Java.

25 / 50

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

26 / 50

___________ phase which supports macro substitution and conditional compilation.

27 / 50

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

28 / 50

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

29 / 50

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

30 / 50

An important component of semantic analysis is _________ .

31 / 50

One of the core tasks of compiler is to generate fast and compact executable code.

32 / 50

____________avoid hardware stalls and interlocks.

33 / 50

In PASCAL ___________ represent the inequality test.

34 / 50

Lexical Analyzer generator _______ is written in Java.

35 / 50

Left factoring is enough to make LL1 grammar

36 / 50

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

37 / 50

Lexical Analyzer generator _______ is written in Java.

38 / 50

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

39 / 50

Parser takes tokens from scanner and tries to generate______ .

40 / 50

45.Follow of C is ____ .

41 / 50

LR parsers can handle _______ grammars.

42 / 50

Functions of Lexical analyzer are?

43 / 50

First of C is ______ .

44 / 50

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

45 / 50

____is evaluated to yield a value.

46 / 50

Grammars with LL(1) conflicts can be made LL(1) by applying left-factoring, substitution, and left-recursion removal. Left-factoring takes care of ________conflicts.

47 / 50

Responsibility of _____ is to produce fast and compact code.

48 / 50

Which of the statement is true about Regular Languages?

49 / 50

_______ algorithm is used in DFA minimization.

50 / 50

Functions of Lexical analyzer are?

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