Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                

mid paper

Download as pdf or txt
Download as pdf or txt
You are on page 1of 3

CJ SANKALCIIAND PATEL

~ '1
FI\CULTY OF ~NC IN EEHING & ' I 1.C ll~OI.OG\'
SJ\NKl\l.CI 11\NU P/\Tl! t. COl.l.~GL 01·
ENGINEERING VISNJ\GAH

Progrnmt• & Br,mch: B.l ed1 - C..:0111putl'f E11g11we1111g


Semester: Vil Date: 24/09/:W 19
Subject N.imc: Compiler Del>ign Tinw: 12:00 TO 1:30 PM
S11hjcc1 Code: lET1030703 Total Marks: 40

lnSlrJIClions:
1) Mt1ke sutt,1ble cl',sllmpllons wherever necessary
.!.1 I 1gurc 10 the ngh1 rndicarc full marks.

QUE:
(A) Anc;wcr the follo,\fog questions:(Any four) (20)
.,.,1. What 1s a compiler? Explam lhe various phases of compiler m detail, with a neat sketch.
2. Write the cwo me1hods used m lexical analyzer for buffering the input. Which technique
is used for speeding up the lcx1tal analyzer?

J. Check following grammar 1s LL (1) or not?


S->aBIC
B -> bC I€
C -> cs IC

4. Construct DFA for following Regular ~pression. Use firstpos, lastpos andfollowpos
functions to consrruct DFA.
(u·!b•)"'

5. Construct the collection of sets of LR(O) llems for the following grammar.
S-> Aa I bAc I de l bda
A-"'d

(B) Answer the following questions:(Any four) (20)


l. Explain vanous error recovery strategies of Compilers.
2. Explain storage allocation strategies.
-3. Explain symbol tables in brief.
..A. Discuss Various Code optimization methods.
s. Convert the following statement into triple. indirect triple and quadruple forms.
A = (B~C) $ E 1- (B~C) "' F
& TEC HNOLOC\
FAClJl T\ OF E"l:Gll\:URING
. 110 PATEl SAI\KAlcCHAND P \TE L CO U EG f OF El'\GINEE.Rl~G

tJ
Pr,1grommr "'
~\; O T ~h - C\m tpm rr En~mttnng lnf om ,:it iM Tercru
,olog)
\ ISNAGAR

., ...
Brunch: Da tr: _, 09 ':~1~
Senu•.,.cr r: \lJ Time: I ~:00 PM TO I :30 P\1
n Pf\.'lgr.1Illmtn,_!!
To tal ~o
Subject Namt>: P) tha
Ma r~ :
SuhJr.cl C'odr: I F.Tll1307u::
In~, ruction~:
I) (.) Ui.: 'illl n l\() I ·~ i:om ru '!ll'I') 11.
..... \.o 2 10 Que :--.ll .
2) .\nempt n) "I '1ueslll.,ns fro.'TI Q
\1. "e ~u.mtilc nssum ruons ,, her
e,er ne-~e~ ~
J)
rli.s
4) Figure 1~ the n~ht inJ,c 1e full mJ
- - - - - (05)
Multiple Choit'\' Qut>~lion~ - - - -- - - - - -
Q- I tuple?
(i} luch of the fr,lkm in~ is J f>.\ 1hon
' \\
lb) ( l.:: .3l
(o)f l. :.3 l (d) ' }
._ __ le) (I , ::. 3l dis t 1.pop( I l""
, (ii) 1 Suppose list I i:; [3. -t
5. ::o, 5. 15, 1, 3]. "h at 1s list I ltt~
(b) [ 1. 3. 3. -t 5. 5. "SJ::o.
(a) (). 4. 5. 20, 5. 25. l. 3] [ I " •I -
(d) "O - ,
). ~ -i
' ' I '] • ·'· "'· ). - •
- .,0
(c)I.,~• .'.I.
.. -·.
- • :-. • .,

(iii) , \\ hat is Ou tpu t of Fol lm, ing?


L = ra'.'b'.'c'.'d')
1 pnnl "" ~ioin( L)
· (b) None
(a) Error
(d) ['a'. 'b". ·c·. 'd')
I • (C) abed
(h) I lfb 1s11 dktional)...
wh at does an) (b) do?
ke~ of 1he- (b) Returns Fal
se if dictJOOal) isemplY
1
(n) Ret urn s Tru e if nn~
di.:1ion:i~ ,s rrut' sn't e'\St for
of the (J) Method an~\ ) doe
(\') Rl'turns lrut' ,fa ll 11.e)s dictiomm
dictionan are true
t)p e of inheritance':'
\\ h1ch of 1he folio\\ mg is not a \b) Muh1-le,el
ta) Double--le,cl
(d) Multi le
c Sin le-level (OS)
EnU). Menu
Wntc a note on nin ter widget:
(OS)
hon
Explam split and JOm a stnng in P)t
(OS)
hon "il h Example
Explain Exccpbon Handling in Pyt
(IS)
wnh Example.
Explaan Classical Cipher in Python
(IS)
xl Button
Wnte a ~ on Tkinter widget: Te
(IS)

substn1115 W11hm a Slri•


Write a Pylhon program 10 find lhe
. . . . . pl"Ol,alR that sho
ws the Conces,I or lnherilanl:D.
pp b . . .
iple pydm proapam that draws I lme
UI S label IS "X ... -
Sankn lchand Patel Colleg e of Engineering, Visna gar
B .L. Sc,n-V IJI (CE) Mid Exan,ination - Sep-2 019

Suhjccl: I luman Machine Interface (J E'f 103070 4) Tota\ Marks: (20)


r imc : 10:00/\ M 10 11 :00AM Date: 25-09-2018
/\ffcmp f r1ny four Questions. (5 marks per answer)
- - ------------------------------------------------------------------------------------------------ ------- ------- -------
., I. Wlwt is HM I? Discuss the domain where HMI designed plays important role?
2. Discuss the building blocks of Natural form of Communication to the system
.,a. flow I IMI can help jn medical domain
~ - Why understanding of user's Psychology is important in designing of HMI?
\
5. Discuss various haptic attachments to the human body for the HMI?
,6. Discuss various live applications running in the market which has successful implemenlalion
of speech interface
7 Discuss the movies scenes where Interactive digital surfaces applications were simulated?
8. Discuss the software component involved in manipulating digital objects for various
application?

----------------------------------------------------------------------------------------------------------------------------

You might also like