(lorosig P,pe
rDd
non
$r
aa
ttn[.d r rour^B"q
Rq,k)
B. T€ch. (S€cond Semester)Theorl ExahiEation, 2010-11
!
COMPUTER CONCEPTS & TROGR\MMINC IN C
'
lidc
l|,.:
JI
|
'ha\.
tt,.
tto4..-1A
Sedn,n-A
This quesiion coniains l0 quesrions ol nrulriple cnoicc. Truc/Falsc bd Fill in lhc blanks. AllenDt all
edsoi$i'se.rion. (aJ CNr
(i) rlighlelrl Languge (i0 LovLereLL guage (iii)
HighLevelLarguasewilh someloslele1
(iv) IosLerelLaneussesithhignhlrl
(b) whi.! ol lhc lbllorving is not a inernal DOS
(i) Move (ii0
Edn
(i0
Rd
(iv) Mtdn
r
ift
folloM.s
iLio; piini("%d".siaolti)); )
a\2 (ii)
4
(iii) Would var, fion congiLr (iv) EEor, i undefin d (d) cmid*fieturclio!:
to
@npild
Fi.d (int x. inty) {
retm (G
? 0 :
E-y)J
let a, b b. 1wo non-aegaivc inlese6. The call
fiid (a 6nd(a,b)) cmbe
(i) (ii)
Mdinumorah Posilive dif.Enc
(iii) sMota,h
(i!) 1602
Mioimtmof4 (2)
b
used ro find the I
ofa, b
htj=
i
ll
P. f(:%d'i+)j i&'lo)
be.\
.
)}
(,)
Itcq;dilioo
in
$.
[email protected]
1,
hf,urt
(tr)'
[email protected]'
I
,
..c.rr{ii&iri d',, 'ii'ix r*n TheftrloopmNtbe
(r)
'
Fplaed
bv
wbile
I I
i
The vEhe iG'sn dutoodc
(D
d4l,rd
(i)
bul nor rnnralircd
wiI
be :
0
(ii0 -1
G) It
n=3. &en
outpui
oi thc stltendt
'he
Oi ('old%dlr+. +n)i sU
(i)
15
(ii)
45
b€
I
(iii) 44 (iv) (h)
Th.
(,
is
[email protected] acprdent'
sleifi{used
loI double is t
(ii)
"/"r,j
(iv) %Lf
(iii) %u (')
Usnaily
%ld
EcNionwork slovd
[email protected])'
d)
1602
are the cx'mlle ol "denre' and "includc'
(r)
S.crioD-B
Ir',/s: Attenpt my ,/,res
Pa
subqudsons(anY equol
2
(?)
(i)
Whst is
d
s of this qu6tions'
Al1
mrls.
oDerd'ns sv'Lm
r
CNe
rhe
clajsifi otion ollhe opedling svstc'n.
iii) Diferdtiate beiseo dftn'l
and
iilernal
[email protected].
&)
Erplain lhe various dna sdtable exuplcs
9_Pes
in C giring
of cach Aho give the
chssiticadon ofoPeraroN in C.
(c)
CoNen
ilre
followins nuhbes
as
sleilied
:
(i) (ll0il1l0l.0lt0l)"=(?)m (io (489.287),0=(U (iii)
{\
(lololllolol0r lol
(iv) (AB4F.cl)
(d)
Wlal
do you
Write
e
0l t0l0).=oLt=(?)x
61)ir'
nndd$and bv
abonihh lo
(st
iid
tu
tem Algorilim ?
lhe sum of individrBl
G)
Wdte
a
ptuCim in
C lo $vap two
vahes' AII bv
value a.d call bY rferencc bolh
Sction'C Nore: Anenpi mv
no
Pa.ls
fron e&h
quesnon' AII
1015=50
[email protected]' 3. (a) Explain &e wiou svmboh usd in Flow
(hd6
OEwr5eflo$ 'han
b
;$ I
:ndvh'rlEr $e
giren numb.r is Pdne ornot'
(b) (c)
Wtrat is thense ofneader 6le 2
Dieus
Wtar h the difretn'e between
declMlion of a lanable suitahle
a dennnion and
? Explain bv givine
e@!l€.
Die6sthedilIdenrstoragecls'sinc' (b)
wbal @ th€ nerits md dmerns ofstahc and
dynmic me$ory allocaliontechniques (c)
r602
wlal
?
is dara ryPe ? Explain the
[email protected] dlta
(6)
-\
d -(') lvrit ' lmgmd h c 10 sihulate ctldl . uhgswitch gstenEnr Sract using O) Vrite .lNsrd i' C to inplelml G)
6.
(!)
Show 0E usge
ofbeai ed
conlinuc
slat6ent
given li$ of Vrire a. algorirhn to sort tlie
(.)
1602
s lor Wri€ haco detunions wi$ at$$e pcrjm'L! ofa Gdglq a oalcdalion ofaca dd
7
rlr
1r\i
k a pbg.m
in C to
di.ol)y rh(
coird ola
givm file say'a.tal'.
(b)
CHle
a structu€ lo
sp{ify
dala on sFdents
giv€nb€low:
Rollnuabtr Nme. DeDenn.nr aolN. Yee ofjoining.
.
assMe that lhere ?e not moF than
100
stu&nlsinthecollase.
rir w.te a ifdion s ud(nF who
ro
Dri
nmes oI au
|oitrd ina Dan'.u1tu yed
(n) wrnc a nEdon ro print the dala of ctodenr whoseroll
(.)
wnrea,irn r,@ lo lind a
a
nmber.sCivcr rhe
binaryequralen or
givetrdecimal integertnddistlay it.
'*-
(8)
1602-3-26500