BIT_R_5_comp and design const_Sept 2022
BIT_R_5_comp and design const_Sept 2022
Instruction to candidates
1. This question paper has THREE (3) Sections.
1
SECTION A
Multiple Choice Questions
Attempt All Questions [30×1=30]
3. Compiler is a type of :
A. Machine code
B. Language translator
C. High level language
D. Programming
2
7. When a computer is first turned on or restarted, a special type of absolute
loader is executed called:
A. Compile and go loader
B. Boot loader
C. Boot strap loader
D. Relating loader
11. Which of the following derivations does a top-down parser use while
parsing an input string? The input is assumed to be scanned in left to
right order.
A. Leftmost derivation
B. Leftmost derivation traced out in reverse
C. Rightmost derivation
D. Rightmost derivation traced out in reverse
12. Compiler should report the presence of ______ in the source program, in
translation process.
A. classes
B. objects
C. errors
D. text
3
13. Lexical analysis is about breaking a sequence of characters into:
A. Groups
B. Packets
C. Lines
D. Tokens
4
19. Parse
tree is use in:
A. Syntax analysis
B. Lexical analysis
C. Code optimization
D. None of the above
5
25. Compiler can check ______ error.
A. logical
B. syntax
C. content
D. both ‘A’ and ‘B’
29. Shift
reduce parsers are:
A. Top down Parser
B. Bottom Up parser
C. May be top down or bottom up
D. None of the above
6
SECTION B
Short Answer Questions
Attempt any five (5) questions out of eight (8) questions [5×6=30]
2. Design a NFA with ∑ = {0, 1} accepts those string which starts with 1 and
ends with 0.
7
SECTION C
Long Answer Questions
Attempt any two (2) questions out of three (3) questions [2×20=40]
1. Define compiler with its role in language processing. Explain different phases
required to convert high level language into target program. [8+12]
2. Explain NFA with different tuples. Construct the transition table for the
given NFA and convert it into equivalent DFA. [6+14]
3. Write the L-attributed definition and s-attributed definition. Find first and
follow sets from the given grammar. [8+12]
S → aB/bA
S → aS/bAA/a
B → bS / aBB/b
****BEST OF LUCK****