github

Made bySaurav Hathi

CSE - Mock Test - 13

Q1:

In the context of abstract-syntax-tree and control-flow-graph.

Which one of the following is true?

Tags:
Section:
Compiler Design
Options:
Q2:

Which one of the following is true at any valid state in shift-reduce parsing?

Tags:
Section:
Compiler Design
Options:
Q3:

Given the following expression grammar:

E → E * F | F + E | F

F → F – F | id

Which of the following is true?

Tags:
Section:
Compiler Design
Options:
Q4:

Which of the following derivations does a top-down parser use while parsing an input string?

Tags:
Section:
Compiler Design
Options:
Q5:

Which of the following statements is false?

Tags:
Section:
Compiler Design
Options:
Q6:

A grammar that produces more than one parse tree for some sentence is called

Tags:
Section:
Compiler Design
Options:
Q7:

S → C C

C → c C | d

The grammar is

Tags:
Section:
Compiler Design
Options:
Q8:

A bottom up parser generates

Tags:
Section:
Compiler Design
Options:
Q9:

A bottom up parser generates

Tags:
Section:
Compiler Design
Options:
Q10:

In Lex, a class is complemented by first placing

Tags:
Section:
Compiler Design
Options:
Q11:

The table created by lexical analysis to describe all literals used in the source program is

Tags:
Section:
Compiler Design
Options:
Q12:

From where it take its input from?

Tags:
Section:
Compiler Design
Options:
Q13:

__________or scanning is the process where the stream of characters making up the source program is read from left to right and grouped into tokens.

Tags:
Section:
Compiler Design
Options:
Q14:

Task of the lexical analysis

Tags:
Section:
Compiler Design
Options:
Q15:

The lexical analysis for a modern computer language such as Java needs the power of which one of the following machine models in a necessary and sufficient sense?

Tags:
Section:
Compiler Design
Options:
Q16:

The set of all strings over  = {a, b} in which a single a is followed by any number of b’s a single b followed by any number of a’s is

Tags:
Section:
Compiler Design
Options:
Q17:

The set of all strings over  s= {a, b} in which all strings having bbbb as substring is ___________.

Tags:
Section:
Compiler Design
Options:
Q18:

Assembler is a program that

Tags:
Section:
Compiler Design
Options:
Q19:

The circuit used to store one bit of data is known as_______

Tags:
Section:
Compiler Design
Options:
Q20:

An intermediate code form is

Tags:
Section:
Compiler Design
Options: