CS606 Midterm Online Quiz

0%

CS606-Midterm

1 / 50

Parser always gives a tree like structure as output

2 / 50

Consider the grammar

3 / 50

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

4 / 50

Functions of Lexical analyzer are?

5 / 50

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

6 / 50

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

7 / 50

Lexical Analyzer generator _______ is written in Java.

8 / 50

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

9 / 50

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

10 / 50

Responsibility of _____ is to produce fast and compact code.

11 / 50

Functions of Lexical analyzer are?

12 / 50

First of C is ______ .

13 / 50

Can a DFA simulate NFA?

14 / 50

LR parsers can handle _______ grammars.

15 / 50

NFA is easy to implement as compared to DFA.

16 / 50

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

17 / 50

An important component of semantic analysis is _________ .

18 / 50

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

19 / 50

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

20 / 50

Optimal registers allocation is an NP-hard problem.

21 / 50

Optimal registers allocation is an NP-hard problem.

22 / 50

Parser always gives a tree like structure as output

23 / 50

Lexical Analyzer generator _______ is written in Java.

24 / 50

In PASCAL ___________ represent the inequality test.

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

26 / 50

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

27 / 50

Compilers are sometimes classified as.

28 / 50

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

29 / 50

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

30 / 50

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

31 / 50

____is evaluated to yield a value.

32 / 50

AST summarizes the grammatical structure with the details of derivations.

33 / 50

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

34 / 50

Bottom-up parsers handle a ________ class of grammars.

35 / 50

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

36 / 50

_______ algorithm is used in DFA minimization.

37 / 50

A _______ is a top down parser.

38 / 50

___________ phase which supports macro substitution and conditional compilation.

39 / 50

Parser takes tokens from scanner and tries to generate______ .

40 / 50

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

41 / 50

____________avoid hardware stalls and interlocks.

42 / 50

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

43 / 50

NFA is easy to implement as compared to DFA.

44 / 50

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

45 / 50

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

46 / 50

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

47 / 50

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

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

49 / 50

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

50 / 50

LR parsers can handle _______ grammars.

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