Modulewise Questions On All Module SPCC
Modulewise Questions On All Module SPCC
Q.2 Indicate the order in which following system programs used, from developing
program up to its execution. Assembler, loaders, linker, macro processor,
compiler, editor, debugger , macro, loader, linker, DBMS, OS, interpreter. And
also define each one details. (FH-15, FH-21)
Q.6 How various system programs are involved to develop any program for
its execution? (FH-21)
Module 2
Q.1 State the reason for assembler to be multi pass program.
Q.2 With reference to Assembler explain the following tables with suitable
examples. (i) POT (ii) ST (iii) MOT (iv) LT (v) BT (FH-15,FH-16,FH-
17,FH-18 ,FH-21)
Q.3 Explain databases used in Single pass assembler design with suitable example.
Q.5 What is forward-reference problem? How does a single pass assembler solve
it? (FH-17,FH-18)
Q.6 Draw flowchart and explain with database working of pass 2 of assembler.
(FH 17,FH-18)
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar
Vasantdada Patil Pratishthan’s College of Engineering & Visual Arts
Q.8 Consider the following Assembly Program : (FH-22) 10 Marks START
501
A DS 1
B DS 1
C DS 1
READ A
READ B
MOVER AREG A
ADD AREG B
PRINT C
END
Generate Pass 1 and Pass 2 and also show the content of database table involved in
it.
Q.9 Draw a neat flowchart of pass 1 of two pass assembler design.(FH-22 5 marks)
Q.10 Explain databases used in Single pass assembler design with suitable example.(FH-21
10 marks)
Module 3
Q.1 What is positional parameter in macro? (FH-16)
Q.2 Draw a flowchart and explain with databases the working of pass 1 of macro .
Q.6 Explain different pseudo-ops used for conditional macro expansion along with
an example.
Q.7 With reference to macro processor , explain the following tables with
suitable examples. i) MNT ii) MDT iii) ALA
Q.8 Consider following code. What will be the entry come under MNT ? The current values
for MDTC and MNTC are MDTC=1 and MNTC=1 (FH-22 -2 Marks)
MACRO
INCR4 &AR1, &AR2, &AR3
A 1, &AR1
A 2, &AR2
A 3, &AR3
MEND
Q.9 Define macro & Explain conditional macro, parameterized macro, Nested
macro with suitable example.(FH-21)
Q.10 Draw a neat flowchart of two pass macro processor.Explain with the help
of example.(FH-22) 10 marks
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar
Q.3 What are the different functions of loaders?/ Explain function of loader(FH-
15,dec 16,FH-17,FH-18,FH-19,FH-22) 5 marks
Q.4 Explain the design of Absolute loader.and mention all the data structure
in details.(FH-17,FH-19)
Q.5 Explain difference between Linkage editor and linking loader. (Dec-18)
Q.6 Explain the working of Direct linking loader with example, showing entries
in different database built by DLL. (FH-17,FH-18) 10 marks
Q.7 Explain design of dynamic linking loader along with example. (Dec-15)
Q.8 Explain difference between Dynamic Linking loading and Dynamic linking
with example. (FH-16)
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar
D🡪dD |e
Q.2 Explain various phases of compiler with suitable example.FH-18, SH-19
10 Marks FH-21 FH-22 5 marks
Q.4 Define cross compiler. Explain in brief what activities are performed in
various phases of the compiler.
Q.5 Write a brief note on the compiler. Also mention the advantages
and disadvantages of a compiler.
Q.9 Difference between Top Down and Bottom-Up Parser with example.
Q.10 Find FIRST & FOLLOW for the following grammar and
LL(1) table
S🡪 Bb J Dd
B🡪 aB I C
L🡪 L,S | S
B🡪 aB I C
D🡪cD | c
Q.19 What will be the FOLLOW(A) for following grammar? FH-21 (2 marks)
S🡪AaAb
S🡪BaBb
A🡪ε
B🡪ε
i)Only a
ii)a, b
Iii)Only b
Iv)Only ε or also come for 10 marks in university exam ask for
different example.
Q.20 What do you mean by operator precedence grammar? With the help of
following given grammar pass it input string a+b*c*d. 2/5/10 Marks SH-19
FH-22 E🡪E+T/T
T🡪T*V/V
V🡪a/b/c/d
Q.24 What is left factorial? Find first and follow for the following grammar . SH-19
10 Marks
Q.25 Describe or write a short note Syntax Directed Translation with attributes.SH-19
4 marks
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar
Q.29 Compare Pattern; Lexeme and token with example FH-22 5 Marks
Module 6
Q.1 Generate Three address code. FH-19 FH-22 6 Marks
For(i=0;i<10;i++)
{
If (i<5)
a=b+c*3;
else
x=y+z;
} in university exam ask three address with different example.
Q.4 Generate Three address code for following code.FH-18 FH-22 6 Marks
While (x<y) do
if (p<=q) then
a=2*b
else
a=3*b in university exam ask three address with different example.
Q.6 List and describe the different intermediate Code generation with example.
Q.8 Explain different code optimization technique along with an example. FH-
22 ( 5 Marks) FH-16, FH-17,SH-17,FH-18,SH-18 ( 10 marks )
Q.9 Explain Data Flow Analysis / Explain Basic and flow Graph. FH-17 10 Marks
Q.10 Explain three address like Triples and Quadruples code with
example FH-19, SH-18 5 Marks
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar
Q.14 What are the different ways of representing Intermediate code? Explain
with example. FH-22 5 Marks
Q.16 Which technique is applicable to optimize the given code? FH-21 2 marks
a=10;
for (j=0 ; j< a*2; j++)
{ x= j+2; }
i )Code Motion
Ii)Copy Propagation
Ii)Induction Variable Reduction
Iv) Common Sub-expression Elimination
Department of Computer Engineering Subject: SPCC (TE SEM-VI) CSC601 Prof: Prajakta Khelkar