Compiler Design - Unit 4 - Week 1-Output
Compiler Design - Unit 4 - Week 1-Output
(https://swayam.gov.in) (https://swayam.gov.in/nc_details/NPTEL)
(https://swayam.gov.in/nc details/NPTEL)
[email protected]
[email protected]
NPTEL (https://swayam.gov.in/explorer?ncCode=NPTEL)
(https://swayam.gov.in/expIorer?ncCode=NPTEL) »» Compiler Design (course)
Click to register
for Certification
exam
Week 1:: Assignment1
Week1 Assignment 1
(https://examform.nptel.ac.in/2025_01/exam_form/dashboard)
Assignment not submitted
notsubmitted Due
Due date: 2025-02-05, 23:59 IST.
If already 1)
1) Which phase nfcompiler does NOT use symbol table? 11 point
registered, click
a) Code generatinn
to check your
payment status b) Syntax Analysis
c) Lexical Analysis
d) None nftheother options
Course a
outline
b
c
About
NPTEL () d
How
How does an 22)
) Which phase ofcompiler isSyntax Analysis? 11 point
NPTEL
a) First
online
course
work? ()
b) Second
Week 0:: ()
Week0
c) Third
Week 1 ()
Week1
d) None ofthementioned
Lecture 01
01.:
Introduction
la a
(unit?
unit=18&lesso
unit=18&Iesso b'#b b
n=19) DC c
Lecture 02
02:: id d
Introduction
(Contd.) (unit?
https://onlinecourses.nptel.ac.in/noc25_cs13/unit?unit=18&assessment=181
https://onlinecourses.nptel.ac.in/noc25 cs13/unit?unit=18&assessment=181 1/5
1/5
2/5/25, 10:33 PM
PM Compiler Design - - Unit
Unit44 - Week1
Week 1
unit=18&lesso
unit=18&Iesso 3)
3) Output nfthe syntax analysis is called 11 point
n=20)
Lecture 03
03:: a) P arse tree
Introduction b) Keyvnrd tree
(Contd.) (unit? c) Binary tree
unit=18&lesso
unit=18&Iesso d) Allofthe other nptions
n=21)
a
Lecture 04
04::
Introduction b
(Contd.) (unit? c
unit=18&lesso
unit=18&Iesso
n=22)
d
Lecture 05
05:: 4)
4) 11 point
Introduction
A programming language does not allow integer division operation. This isgenerally
(Contd.) (unit?
detected in the phase of
unit=18&lesso
unit=18&Iesso
n=23) a) Lexical Analysis
Lecture 06
06::
Introduction b) Syntax Analysis
(Contd.) (unit?
unit=18&lesso
unit=18&Iesso
n=24) c) Semantic Analysis
Lecture
Materials d) None oftheother options
(unit?
unit=18&lesso
unit=18&Iesso a
n=25)
b
Feedback c
Form (unit?
d
unit=18&lesso
unit=18&Iesso
n=26)
55) 11 point
Quiz: Week1
Week 1 ’ Which ofthese is not true about Symbol Table
:: Assignment a) Allthe labels of the instructions are symbols
11
(assessment?
name=181) b) Table has entry forsymbol name address value
Week22 ()
c) PerfnTm theprocessing nfthe assembler directives
Week 3 ()
Week3
https://onlinecourses.nptel.ac.in/noc25_cs13/unit?unit=18&assessment=181
https://onlinecourses.nptel.ac.in/noc25 cs13/unit?unit=18&assessment=181 2/5
2/5
2/5/25, 10:33 PM
PM Compiler Design - - Unit
Unit44 - Week1
Week 1
6)
6) A compiler can check 11 point
a) Logical errnr
b) Syntax error
D aa
bb
Cc
d
7)
7) Error recovery helps to 11 point
a
b
c
d
8)
8) 11 point
fonvertinga hardware description into actual circuitry is kn ohm as
a) S ilicnn Compilatinn
b) HDL Compilation
c) Circuit Compilation
d) None oftheother options
a
b
c
d
https://onlinecourses.nptel.ac.in/noc25_cs13/unit?unit=18&assessment=181
https://onlinecourses.nptel.ac.in/noc25 cs13/unit?unit=18&assessment=181 3/5
2/5/25, 10:33 PM
PM Compiler Design - - Unit
Unit44 - Week1
Week 1
9)
) Loops arethemajor targets for optimization since 11 point
a
b
c
d
10)
10) 11 point
For maximum speed ofexecuti on of target co de, temporary variables be best allocated to
a) Swap space
b) Main memory
c) CPU registers
D aa
bb
Cc
d
11)
11)I nterinediate code helps in 11 point
a) Program Analysis
O) Code optimization
C) Retargeting code
d) Code check
a
b
c
d
https://onlinecourses.nptel.ac.in/noc25_cs13/unit?unit=18&assessment=181
https://onlinecourses.nptel.ac.in/noc25 cs13/unit?unit=18&assessment=181 4/5
2/5/25, 10:33 PM
PM Compiler Design - - Unit
Unit44 - Week1
Week 1
12)
12)Output fiile of Lex is the input fiile is Myfile 11 point
a) Myfiile.e
b) Myfiile.yy.c
c) Myfiile.lex
d) Myfiile.obj
a
b
c
d
You may
You may submit any
any number of times before the due
oftimes The final submission will be
due date. The be
for grading.
considered forgrading.
Submit Answers
https://onlinecourses.nptel.ac.in/noc25_cs13/unit?unit=18&assessment=181
https://onlinecourses.nptel.ac.in/noc25 cs13/unit?unit=18&assessment=181 5/5