CS606 Midterm Online Quiz

0%

CS606-Midterm

1 / 50

Front end of two pass compiler takes________ as input.

2 / 50

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

3 / 50

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

4 / 50

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

5 / 50

Responsibility of _____ is to produce fast and compact code.

6 / 50

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

7 / 50

LR parsers can handle _______ grammars.

8 / 50

_______ algorithm is used in DFA minimization.

9 / 50

For each language to make LL(1) grammar, we take two steps, 1st is removing left recurrence and 2nd is applying fin sequence.

10 / 50

Parser takes tokens from scanner and tries to generate______ .

11 / 50

______ phase which supports macro substitution and conditional compilation.

12 / 50

Which of the statement is true about Regular Languages?

13 / 50

An important component of semantic analysis is _________ .

14 / 50

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

15 / 50

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

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

17 / 50

Consider the following grammar,

18 / 50

LR parsers can handle _______ grammars.

19 / 50

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

20 / 50

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

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

22 / 50

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

23 / 50

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

24 / 50

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

25 / 50

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

26 / 50

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

27 / 50

Responsibility of _____ is to produce fast and compact code.

28 / 50

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

29 / 50

Lexical Analyzer generator _______ is written in Java.

30 / 50

____is evaluated to yield a value.

31 / 50

Lexical Analyzer generator _______ is written in Java.

32 / 50

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

33 / 50

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

34 / 50

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

35 / 50

An important component of semantic analysis is _________ .

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

37 / 50

A _______ is a top down parser.

38 / 50

Lexical Analyzer generator _______ is written in Java.

39 / 50

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

40 / 50

In PASCAL ___________ represent the inequality test.

41 / 50

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

42 / 50

In predictive parsing table the rows are ___________ .

43 / 50

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

44 / 50

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

45 / 50

First of C is ______ .

46 / 50

Follow of B is ____ .

47 / 50

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

48 / 50

Bottom-up parsers handle a ________ class of grammars.

49 / 50

Left factoring is enough to make LL1 grammar

50 / 50

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

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