# 3,

(a)

Veri| Cayley Hamilton theorenrfor the matrix A ard use it to find A-r.A =

11l ii -4 -lJ L-z

(b)

Fird *le Fouriercosinctransfornr x
I-x.
-24

of f,(x) =
1+ x2

& hencefind the fcrurier sine transfonncf fr(x) =

1

'l'l i

(c)

I jnr d t hc r ani-o l ' rl u { l i r

A ,,

..:

1

3 ,.

'1

.

2 - 3J
OR

" "l

€;l nl ,l t1

r ' N or1l 1xl J;01111

\

{4. ,

I:ind l;ouriersericslo rsl)re$ent flncrion given llx; by f{x) x lor (} :" xs3. s lT_x ftrr n S x 5 2a andhcnce doduce that .L 12 a .1 ,_r_+ ' .1 toeI 3a q2 -T *? . i tt.1 Fr'd Eigcn values Eigen and vccrors rnenrarrix = ot A | 1.1 ; ;l (c) i-ro 4 -zl ," incr,es or. ,nachincror rorarion rhe l[J::ruTf#';-;,?i:,,::;.,,[j',:?,ffi::q pair rrre x or "enain ,\ 0 0 tr /{t znrc srtt, ! r4.4 l? . 8 4r/6 5r/6 9.2 1 7 3| r r ? fficn.ol:-rr .1 . (al {b) {c) I r1't solvc: 6'" - E'" Solve:(D?-2DD,-t5(D,)r)z = l2xy Solve. .. & .,ii. dz z {x+y) = cly z {x-y} = Findpaflicular iruegral tD-2)-t = g(er,+sin2x*x1 of UsingLapface Transforms solve: d'* W (ej dt'- * _d)( L . -- _ e -, _ " " a 1 , ' " * " 5 ' lc = - " dx AE*4x+3y= r. v t dY + 2X + 5y = et 'dt _-:- {b) (c) Attemptanyrhree. Sotve:-(U+cq)t - 2g+cq[alcp)s + (a+cp)1: 0 -r Solve: (xit')pq - xylpi-qi):t:'0. solve: d:Y - y = cosxcoshx dx4 J t0el (d) Solve series equarion (L*xz) !2 in the dx2 - *ff - y =o a.--36_y=3x2+4x+l '6(a) (h) Solve l04l \ A lighr horizontal strul AII of lerrgrh tieely pinncd,,,1 Lis &.8 uu.i,. uncar.rhcacrionof equar c'ntpressive and opJrsire ftrrcesP at eacllol'its cnrjsand cairils a load w at its cenlre.profe tnat the deflection at the centre (3x*2)r92 "'r d", +11-iu.,-std! -:\-r*"t,1& isgiven bv n2 +" (+,*.,'4 - * , where = P zp \n Z z:t Ef OR 5(a) If -1--d ffy n nz o"l - t' act ffi repr?setrts vibration a stringof length thc of I lixed8r bothends, fird thc soluriolwith I I boundrryc$ndir;sn$y(0,t) * l{rr) --g,rrr6d8itlsl candirions (b) Ij''tf -s1;i' ".f;,Ju,i1,,,. q ()n charge t# .R # *{= w'=J a plate of the condenser is given l04l by E s j nv 't w h e r ej = dQ dt . The circuit is tuncd lo !,esonance$o that

LC

lf R? < (4LlC) arid q * 0 = i; whcn :$, r Et show rhat q [=l.g RW l-costtt I . 1 + s 2L (cospt + m x s-tnpo ..*r ] R24L r ;. : 'i {. andi= = lsJnwt " I' XI El -rql e "' sJ,npt P'/LC where p2 = L t/- ,;j:' .. ' :'l{"'i,', .:::;r .., .i .r r ':,:l . 'r'. .:,.: 'ri'.: ?rr-: a ;.+. DIIARMSINII DESAIINSTITUTEOF'T8CIINOLOGY lD:. D. . {tNfVERSrTrl, Nadiad. J oara,rlr--zoo5 r,B:tdff.3if$ti?1ffi
DAY:THrlns\^'l EXTERNALEXAM Instructions: l. Assume suitablc dataif necessary. 2. Writecachsection scparate in answcr_book. 3. Numbcr given ro rlrerightindicarcs nrark. full

ro m rril{E: oo t.oo
MARKS:60

-spgl-l-oii-l e.l. t)o rs ilirccrcti: llt)l \ our ." in ] l;init V(S)of signalgivcn lig. I it of in : Slatc provcconditir:n sl,mmciry Alt(-l) l.!$rornr:tcr, 3 A scrics * c nctw.rkis connccri'ti 5v ruppl" l{ rvirh thr.riugh srvitch. t *. 0 a At s*'ilchis closcd. Dcsign nctwork suchtiralur t * i0r'"*rlrirr)rlrshould chargcd up to 9ll9/o ol'its finalvalue. 4. FindV; ( 0+) fora ncnn,ork givcnir, fig. 2. 5. Fora serics Rl.c nctrvork, = 3Q, l, * | h, c = 0.5f. Iior givc' vnluss R syslcm has overdamlxdrosponss. whsr firooifrcations n:guiredro giring criticalty damrrdt rcsponsc. I I Q.2 (Al.l.:l a ncl:vork givcnin fig. 3, swirchK is closcd t = 0. Irind i di/dr at , , d'i/dt'art=0+. (i3)L)sing Laplacc rransfornration method.r'cri2(t) for a ncr*..digivcnin f ''lig. 4.Srvirch K closcd I = 0 is ar olt ------..-Q.2 (Ailrora nclwork offig. 5, v1(r)* ] sint. r > {)"v1(1)e 0, { .* (}.l,rind (l). v" (ll) Using Olrcrational mc&od, outi(r)for a givcnL{uarirrl. find Q.3 .: (1) corvolve two signalsgiven lig.6 u*ing grryhicsl in radhod. (B) Ffudout z- paramcteisofrro:turork in fiS. :. grwn + d:i/dt2 di/dt- 2t r r: , i (0t = 44, di/t1r(0-) = -2Alscc. I tsl i5l tsl lsl tsl {sl oR ---------Q.3 T* of nerwork fig.8. in !l] li"d ourequivalent nerwork givcn (B).In 1li nctrvork of.!ig.9,elrt=A switchis movedfrom positio'n ro b. a Findout i(t1.tt'': [5] , [5] '" ': .. .t:. rt'."i1. :iit'. ffAr*'o *j' *,,.,*,r' ,''ii-. ril,:1;f,.{i PageI of4 , lrrrd m,ain() { chitdobj: coul...:"n Inmain":} -t,' , d) \\hat is 'purc' lirnral function ? l\.hv it is ncedccl,? e)r' \4'hatis thc ambiguiq, in mulriple inhcriiance,?Horv can you solve ir ? Explain 'with suitable examrrle. Q:-1 a) Assumethat a bank maintains$vo kinds ot'accounts lbr custonrcrs one caied . as savingsaccounl and other as current accounl. Thc sar.ingsaccount pr.oviclcs intcrcrtrnrJthc rvitfidrarval facilitics and no chcqucbooh ticilitv.Currlnt accounlholderssho:rldalsomainlain a minimum balanccanclif the balancc f,rils bclow tlris lcvcl, a ccrviucclrargcis ilrrpolcd. crcars a classaccoun(that storcs cu.stontsr namc. account nuntbcr.and trpc o1'account.l)srivc classs;rv-ircc thc and cul_ucck.rlnakt.tlrcrrr rtt0rcspccific thcir rcquirctttcnts. to Includcncccssill nrcrrrhcr lrrrrclirrrrs irr ol.ilcrlcr aclr:ec llrc lollurvilrg r l:rsf.s ll l I1.\ecc1;trlcllu.sir Irrun tlrecusr()nl{rr u;rtl;rtu lr.rl:rrrer, arrd tIc l)Chcch for lltc lttinrttttnt l,;il:urcc.irrrpose pcn;rllril lrcri.ss:rl-r .rrrrl ulldatc tlrcb;rlancc l ) I )rsp i tlrr:bl llrrcc h J) l'ernr:t rvrlhdlarv:rl uptl.rtc alrd tral;urr.c 5t t.lscthc conriructors ;rll the cllsscs. lirr h) l.rplarntlrecnrrccpt cl"ornrainsr:lrip'witrrsujtalrlc crrrnptc. I.il

{ )tt
{.f .1 ;r)'l)lli||u,twlrglJrrs'1 slurr.. lo lurrrllq.;.s11;3r itt {'u1.,*rr,rrrrl l,:rfrrclrlrt.ilrfr:rlir.clr le '.\ t:tc it r)rrllp tlr tlo tlrs lirllorrrllll trlx.L. itnt ';t)'': . l{lt} {11): cl trlrrrc c i rs .l,lt..{ (.clsirr: .l;rsr 'f l'l il ll.llltetc .ltslhe olllcclof ('clsirrsilrrssirrrrl llrrrlr.,,l,.;L..lirl lialtrcttltctt class. \\'t'rtc col)r'srsion r<lutirtc sourcccl;ss irr IAt It) \\'rilc i pro$alr to <lefinc conrJrlcrclass rvithrual and inrapin;rr-r, i{'s thr:r { ls rt;ctttllelr anri{r' olr:r!rlatl '+ ()J)fr:rl{)r ) lu 1>eriorrrr lnultilllicilion ol lrlp , ornl)lc\rrunrhe ls. lJ I :i t./- I l ( )\-_l l r) I I )rr .rs .ltr ttlctl. .r t l irrrl ,rtrl Cf"l' { r t \r 1 t llc l6116r \ I ! , . , } i1. : : r . ' l. ; g l \ . I) litroul, opc lr llilc : ios . ir r l{ ) s , , ( ) ut , ( r s . : i t l c J }, l. t i :) irrfilc.operrlrrgcl; h) \\1r;rt llrc;rtlr..rrrl:rges'l :trc s;rr.irrg Lt birr:rrr d:rl;r l,nn./ c) Lrplain the diflcrcrrccin opcrationbctweenthcsc rw,o$tarcmc:lrs, pc$on pl{ p2); f2l t2l { tl pl''p?. where pcrson a ctasr pl.p2rrc chjects. is and , Persol d) \[|}ra|doci poinrer ' :' lhis point too ls, i} l \ ' r . i t e r statgm e nlthatmovesthcgel.pcrr: t t e r. l. 1 h 1 1 e s lra e } ' wa rd t i. o mt h c ft' t'i ;;;;,,J position currenl '"''loi-'*'h1cur-calletl :ttttltorr*t lltcrn' crr:rs 'it':rtt\' lll \ lrrn{} I rlttl +1r.r'it'u 'r p "s . s - p :I .*l lttl- wi sur cxanrp crasstrr tabro re l;'ilili: 1"::H1';:1"' "t rncn<t. ,,, l'T"Jlon"trrc thc or is 'asscd.s :i YJtr:;lntlx l,lll-li::J"'T;:tiJ 'l'tlRlf'rlali' ilr'thc no is tlivisiblctrv 3' lile ( to opcna fil-'' .t ni*.u.* rhcd;lfercni mntt** ttt't slorc nunrrct dantr trtc r1":i,1]';,lcrboar iil,f,"jf,$il'ii::lll'"'u"'o'1

\

l rr

p{fccnlagt t u d r rttcr ; r ) \ \ n tcap r o Sr am|hatstcrcstlrcdatao{.5s t u d t n t s in rlrc |rlt ' . sis E c n t . (3 l. , a n { l or .rr ,rr" ,t a.no whosc t-rNn;itlct cl:rr" il; rhcn displa),* ;il"ni"n llx'
Itr'rrr'x) ;rrxl ;tp;tittrlisill:rvs tlr:rt
"'l l l l r" 'ri {'l rt.l l \ r r l r r ' l t \ {tlll' lr ll' r llr lr r tlll' lltr "t ql " ltl r l { r l l l tr Yt ' r l llt' ' lr tll"r \r r r l' 1, 1\ \ nlt . t l t r { r l ' r ' t t " ''* " ;tt;"ti;"1 \\

-';t;;l;:;ttlsl:tttrlitrltr l r{ l

' "' t"tt'

r'l rl 'l f'l

1 't

*:tt " sur,)ll(l\(

1]" t;l::""
;ril in i t lt c l' c r t )

csc't\ cl;tss tlt:rlrc,.,r

trttrt'trrlt.ttn'ttritrtrtt':ttt'i''

"1n't

( )l<
ril
l. I

i'c'e .'^l} rrlr.lculs ir.le ltt'e rrl' g.ir.err ;rrx|,rlir1ll:r1.lt cl;rss ..,..,,'.1,.... :$.r} \\,ti{e3 |'|{)ti|..rrl1 i 'sc"slta|e lrlrrc virtrrallirrrctitn "t"t'"pt' tlrt ill\l irlc lo lltc t'ectanslc' "iongi'''i:*cl 1i.canrltu"""r"'t'*i*nr"'t' l,'t \\'ritc;r progr:1m ' ""'"tit rtttlct *.,,tli fitc t'ur ill rcrctsr t(l l- | 'lF. 1:::t i' -J4=_ DHARMSINH DESAI INSTITUIE ON ISEIII{OLOGY, ",. , IDEEMEDUNTVERSITYI MATHEMATICS-III December2' ?fi82 : Instructions J TD. u L -+- l r-- NADIAD. SeatNo.:-Time:l0.fi)to 1.00 Max. Marks:60 tlclcwcL/rT] ExaMS IrI B.E.SEM.- [EC/CX' l. separate answerbook. Answer each sedion in sePar 2. trigures to the right indicate m'aximummarks for that SECTION I 2s a2+9 l. (a) (h ) ' {e) Il2l Find Fourier Seriesibr i(x) = x2 in (-r.r) that Prove in r0.r) 91 e tt - e-u* e- "t z I sinx n I a2+ : 2sin2x * 3 s jn 3 x a?nA .. ...| I l:ind cosine sci;cs 1'orl(x) : x-x' in (0.1). (d) (c) i l 'A : ir" o rl lz - + -11 tinct 3-3A r-A1 0 1 . n =g i *^ , a ( x ( b i.r -r. 1 J = 0 , x (a , X )b I;ind Fou.ier trurslbrrn of 1{x) (t) proverhatA o t {-r -r" 2l 221 LZ is orthtgonal. 2 -1 1 ) {r) l0el r Otrurlu Crxinc ecrlc*ftrr F{x) * K x f o r0 3 x s l/ 2 = k(l-x)lbr l/2 5 x { I (l ') Irind thc riitik vl tlrc riiatrix A n'1 lr' ," t' u"l lZ, Z, n, lt ' u ' " u ' l laz Sz 62 72) (cj J- bvaluatc: L.r l -i--- , I I tri, methul r,f residues. I s2 (s2 - a2) I f I 1 loel (a) i I i (b) & lbst for consisteacY solvc: 3x+3 y* 22=l,x+Zy=4 1 0 v* 32 =2,2x-3y-z=5 Find Fouriertransformof {1x) i.i = 1 -x 2 lx l < l if = 0 if lx l > I '!.:" . r' -I (xcosx-sinx)2 use rt to evaluate: i'rf A ,,i ,,lt''r l. .,. : ry".: .i ,t 0 x' dx ''.. (c) for Find Fourierserieg f(x) = xcosxin (-n,ur)' . .:' ..r ' .*- F, i.,' t. i' iir-sfadF.$

ffi4*
Xl*.*
.:.t_,

l

3.
(a) (b) {c)

Fird cisfs n*"ue cigenvectore the matrix A = * for

fs ro 6l
lo t I LO 0

trl

2J

Fird Fru,,,.rseries ,f"l : *.. in for 1-o,o; FindFq:rierseries f(x) : x2 in (0,r) for _xrin (_1,0) -

4.
(a) Sr r lv c _I

SECTION.II
i1r.

* ),= 0 l.< "

(h ) (c) (d) (c)

Srrl,c

.-: * r?D * ]), t-

= 7 uV 5

\

sutvc:{[]-5D+4)v _- 3-2x Form tl,'Lpanial difi'cruntial cquationfion l(x?-y?, z*xy) = 0. Solvc:Z'ig''+ql +l) = arSolvr: dz ixz * _F:t_ * dx)y 6t _, dy = t\

(0
5. {a)
( b)

S o lvc: tD z - 2D + 4) y = e'sin{ x4 )olvc: secy ++ =c os x ,+[*.,,r] oxdy oy2 Sofvc: zg
dr

= 3tany

, z{x,A)

= j{

(c)

, _dy. -2x-2y=5e'
At

dx
i,

dv
dl

= 4 X+ 2 y + 5 o " t

6. {a)

toeJ
$ofve; y.1 !2 . dx dx2 SOlvc:p+q=sinx*siny - ,r*- + Zxy = 2x:s in (J o g x ) (t') (c) " S o t v e : *- k = s !.w cco s2 y dxdY 0v2 . : :r. OR , ,.,ii,i. ', I 6(a) - ' S o lvc: ? + q2 - Z ox-Zqy + I =0. p (b) *r*rcn"d-striogirio .; lgTtv . = yo sinr(z-xfi. ff it is'ietcffied from rest this pmidcn, *, 9,"3.bV Y -. -a "'nm the displacement y(x,t). ==:=:*****===== . .,,:. , points = 0 & * =l is inriallyin a position x '., - DllanMsr$g DEsA.r rNsrrru11E oF ,r,nr.n^*^___

_-rrodH*tT#il"roc:,

iil
,r' :'

b,teenc,aayobia^+ :;ffiffi$"*fii', orient"o n""n""ir"? r.1jffi ;?; :"]=,est se ctio n th e e a ch to rJ.9rtlres in o a e p a .r a te r &te andDesisn !4exisum Marke: 5o seat N o. - fttl*"ator,", A's'*er c. Ma,.e suitable crearry. ,h!r-,^_ L an'wer boo' ansWer book. - .._ **- .' t"*Iil",i narkg for assurq>tio;-;;;l*imurn -::_?n.. ve ne s;; : r ce ; ii..ITffj "1L.. e.l {") srate r:c (l ) l{ularO;'irr':'/J:'al ' co'r e sEcrroN - r "ii,li.l.:i]:".1",i::,:, . qtatement " r' ".."',," r .o Jiu*o' d in t::) ;; :lj ;]j,l' t' (-1.' l 1 e 1 1 q ir rc c e i v (' r is a'e associat u i:,." ,, l;j H#: :;1,;,o**"ilJ";;:";:t,,:; ijm::';;;'JJJTl;:il' :di ::;il Derine ( . ; l) Def ir r e n ,,ti ru t ( 3) ilH: : i ( 4) . ; i; ; ; ; : : lr,s dIr rj xampl e or synchronous ".r "j\, Jil ;:;..:"t'"*"n or a svstem' fork (s,,.;i;;;*;ffi1;:j{*ii^:i:$iil,i; {,{) Bxplajn J.lll Toun

,r, iijr:*Activat

t5l ion (rocus , _ contro't i .n 1 i .^ -,.- or I n"trich used Is ln a scquence by

0.r,,,

dlasram ;t"ff;;v,,y

I

'""4-in-iJJil^un. dlasram. *;:;,"i: lrl nt ii"'"..n..l']'"''i'"'I ncr owj ' ::L;;; ".;sttonshiF ,, ]]i !r ) E.rpl.i .;e'crariz.tiou ;;l;.:l#;::. Il0l (r) ",,o /,as-a relaticnshlp,
Dcscrlbe
d lag ram. Glve the {a ) ot l f e. et ) t t YPes Ly pes ( of r er a t i o n s h i p in = r ""^^, - ". : ' : 9"t s deployment f or f o' r J owing

(4)

i5) *".ir;j
:.'':,")

j:#;:i:."
i { fc ' e n t

lb) statJ

(c) Ar,5e"1ation

'' r \\') :;TrJ[:;:,:::;- o''"n'"^'r;: ;ff;i:';i;jn'lijij]li."n
oR

ty p e s o f $e$ s ages u..:..cJn * * _,,^* -u * c: rr, seguencc l t' " t' -r!' l r r r aw t h+ r , di agram. r.r:.:j ,J r.,^ , -

{d) cr.ass

rromrsl
Iql

0 .: {u ) Dr aw t he c ,a ^ r -...---

9:'itnl'i:.ii, catabaie ;.,;".'i11"3;i5i:r.y:'o.'f=512s8 os=$user can v. .,, . ^ c (D) Drew the e^;:li":. r ha r h a s l:ij:.1'l:"r t,Jeb servei"li ":::?, diasr; -Es databaseclriven web-site ( iorrabor";i;";;;iiJ"i;lti#'i":ir';,liil"lrr.,''l ssqrroil,rr NT oatabasel^.5t"it=iti"#ttdowsoS=windo* rl.i-i.o=.loft'u"t"=otutr."a' "1. i ts: i' fsi Q.4 (1) #"fi":l;j"li :::"g. quesriona vLrtuar run..lll"s. aoJa ;r.t"ij-" -1";:"i:::jffi i "n rharrunction ti,.1 ;'-'64'rr i;..r;l::":, i:: .. o*."rH$l,
Page 'f iiof

s*!r{F-:'

;:\. : : ''.
3

l, I
irl

I

o:

(2)

{ 3}

( 4) ( 5)

b) Becomes concrete a) Is i'gnoreci d) Is not accessible' c) Relaains pl:re virtual:l descrlbes the hiding of what is tb-e tei-dt"t j-n- a objects from each other ot implementadJ;;;irs C+ + c l ,a s s ? b) D ata hi di ng: a ) En c a p s u J a ' -:c n ' d) D ata abstracti on' c ) D a i a i 4 i e re n ta i i o n ' d o you thl nk i s used to seP arate Which cf ghe iJi""ing cl ass l i st? t he b a s e c l a s s e s i n a -b a s e (-) d} Ti l de c) seml * col on{ ;) (' ) a ) c o l rs o a r' f l l -c o i tn A=B+C+D? made for the statement llow m a n y fu l c i :o r' c a l l s a r e di { c )3 b :: a )L thi rrk j s used i n the seekgo P a ra m e te r do you whi c h u " .k ;t" p ci nter to the sLart of the fi l e? lun c tro n tc : p t= t' i ' o n th e j o : i : : r ') i ) {'I l ci) jos::initial

{(,i

{?)

c) b) ios : : L- t : c l a ) 1oS: : s l: r - ' <l a t a t y 1 ) t 's t o l l t t r r ! l : '- r 't r t 'w \ c apa! - i 'i l t y irl}r en a ' lat t : ; ; ac e has =e lr is s a: i it c t ) E x l e n s i b 'l e c) Abstractect o' T; t * ; lat ed a ) ov e : loan* i : protot.yl)e f unc l l o n ljxa m ine t he ic ilowing memo); void Reaci5emo iCMemo { t g b e p 'r 's s c d & s a l l ' a r g u m e n t ? c x pec *" i n g What i, s t lr e f t : nc t ion p o 'i n t c r b) A Cllcmo ob]ect a) A c Hc : : lo obJ c c t ' d) A copy of CMerno obiect' r ef er e n c e c ) A c H. : : r o obiec t : A f unc t ion funct:'on' another insidt a) Can be dtf,ined function' another inside b) c",t not-i*-ieflned space' g l 'o b a l in c ) Can not be def lned class ' iaside d) Can nc t be def ined XYL{ cla s s f; fl o a t s t at ic Pr iv at e: i; int s t at jc : Pur - > 1ic char c; : s t at ic Pr ot ec t ed
t,

{8)

(9)

byt es Size of above class ls d) 0 ? l -) g c) 1 al -\ the C + + P rogram l nto ----€ ( 1 0) T h e c o m Pi l e r l ra n i l a te s c) A S C i j b l M achi ne C od* . a ) BY te C o d e '

d) P ascal

Q. s

i n foi ' l t' w i rrg pl :ogram codes' F i n d o u t t.h t. o u tp u t o r e t.rors anv f,our'l (Attq)t r:dtrd' ) ( A s s u n e s u :i i .a b l e h e a d ' :r f i l es are i ncl ( 1) l n [ ra a ir: { v o i d ) { * li i n t fa c to r * !; l nt P roduct
-t{

t1i l l

|= f8ctotr i Product ++factori .l ( F a ctor = = fr) ; while ; c o u t< (/P ro C u ei 1s " ((P rocl rl ct< < endl

t2)

, void main O { int arrI4lt21,L,)i fortl-0; 1<4; 1++) -l':. tor (J=0rJ<2i)+tl 'cin>>arr I i ]
' co u t( ( o ttn tt; li: ,

.

i f or { l"=0 i<2;1++) -1'
' cotit<<o .r.:, '*.i" *+i *- j d ' i '. *r "

i

t*

s

:l;r' .*f ' "t. .:"1 i
-T: ,1:'

'v:,*

',<<arr {il tJl i

.

,., , ,...1 . ..'
!

I

'Assume inPut

is

:

: 1+.2

"

gage 2 of

3

{ 3)

class

base{ private: public:

i

lt" " r: ii'
int ii . ..) b a s e (1 1 i = 0;) v o i d s how 0 { cout< < ' l base : show (}
: pr j"v at e class v oid di . s p l a y i l base{ { show0

,,i

t;
c las s der iv ed public : ; }

v oid

m ain{ ) { derived d; d. s how{ ) ; d. dis pJ . ay O ; c ar { pr iv at e: public :

t4)

l c las s

c ar ( c ar & c) { } c ar O {} ' , ' , : r r t l s t ar t B o t i r {i : l r

c) { } r

l; v oid

\

m a: nili c ar c lr t - ' ul; c i. s t ar t Bot h

(c2 ) ;

{s)

) class

abci publ ic: v i rtu a l . s t ati c { rj ,e n d v i rt ual " i nt i nt f1O f2O { cout< < ' ,f1O" ; { cout((r' f2(,,,i } }

voi.d naln O {
., ,r .r lb c I ai

I i

I

I

0. 6 ( a) [ x p] s 1 n d l f te re n c e b c tw e e n earl y bi ndi ng arrrJ .l ate bi ndi nq . t21 Q ' 6{ b) T I F w l th J u c tl fi c a ti o n : C + + for vi rtuaL { 1} R u n tl .me d e c i s i o n ma k l n g faci J.l ty' of fu n c tl o n s i n c re a s e s ti m e overhead. tzl ( ?) St* tl c fu n c l i o l r c a n a c cess data members usi ng thi s p o l n r" e r. tl l Q ' 6( c ) c r eat e a s t.ri n g c l a l ;s th a t has poi nter to ci :;rr as data member and -i t a l l o w s s to l :i rrq s tri n g contfnt on dynarni c nemory. Overl oad A s s ig rrme n t (= ) o ;:e r;rto r s o tbal i t copi .es ccJrrt.rl t of a sLri ng r ns t e a d o f c o p y i :rg a d d re s s o{ a strl ng. t51 oli *.ii-) 0. 6( b) Q . 6( c ) i.ii.au r.io yol,l rsasn iry opcraLor overl.oadi.ng ancl list the operatorg t hat y o u c a n n o t o v e rl .o a d . t7l t lhic h a re th e s p e c i { i .e rs i n C + + ? E xpl ai n thei r use w i rh c x am p J e s . (31 I r lr ile a p ro g ra m th a t. d l s p l a ys area of di fferent shapes. S t or e d i ff,e re n t s h a p e s o n a sl ngl e array. B ase cl aes l s s hap e a n d c i rc l e , ti :i a n g l e and rectangl e .rre derl ved from s hap e . t51

ii,,

' .,'i;l,r...
t:, ]r

i:*

,

'qrr':i';'

,aA#;-T:' '::;ii' r;r'
' l'

..-i 1 ",i
j .'

-i[#r"

Page 3 af

3

i . i i.
I-

O*O*ffi OIOGY *3frffi T,X:J,Hfifl B.E sErlru-r rrclcnnriii'"r**o*
DgY: Tfiuesp#/ Instructions: An111te . g,tifry insepararc ansr+,er_kr,oks
r Albnptall

Dah:.g t2- zooi-

Networkanallsis

ttshtdr*";il"**x 'Figrrrcsro--rhc
C,r"cl*"

*lar{rs: 60 -

Tims lo.oo,o t. o-o S.fi r-Joi

SE(-rrnru r Q I Do asdirrctod

:]i::"rfftrilffiT.irlil:il"' (b)Fino et
JF, tn ln",;too"t* o ; + 4 i =0
(c) I'ind our l. t}. {s;nz (d) Synthesize half the

** ror ne,work in r rhe shown Fig
,"

{I0]
\
f'

i(li. *'hose characrerisric equarion is.

l

wave -.hownin Fig" 2.

i
i l

7:;#;":feralor

equivalent ;Jrirkorrhe generar rwo-porl ner*"ork rernrs in orthe t0l

I t I t
I

Q.2Doasdirecled (A) Asq,eralor a_voltage has rariation gi"Tb conrpdod anRL series ro 1.y guationn(,1=, r:0. This*"***,rf ciicuil wtre3 = o r a-*Jil,;*r* "r, = 0.r bvctosing L aswrlch. H arinre t={ rind (B) con'orverhefurrctions il;;grft: orrir* (r). using ". eluphi;,r,",h;;;;;riil;,h "r;;;;ilro,* rormura: V,(t)=1, o<1<l tu;f,i='i1 ma:her.uticar "'l<t<3
=0, all other ---OR--d/r(.s) ic r*,.rr r_r., = 0, all othert Q. z D o a sd ir e cted

$t t,. t.,. i I t I I t. Find * {r}) AB.Dj;;H" Q3 Aflempl anv T!vo. (A)Show Lltf(t), that "l';:,H#_T ::ffiJf.nn orcos(al r ) ' {l0l ..Y, , ,,t, j;;^3-^:,:::"lt,- silol}'I i1 ris. 4, ' v' u'u rru{i'('! the capaciror ca'aciPt. c a-l *"._* ln l?ig'4' rhe h"'R;=;ilh;'i'ffi00V, i.scirargcdt. *:Y*:n.i^n Solveforatr*0+. R,= Ir Mfi, cr=ro o-,r - r.r i\4f,r =10FFaodC2*20;rF. Cr 'F i Vo arrddre switcrrK rs [l 0l -t :r i* i", : 4', ; ii' 'i {, to ban nerwork :];fffiyJffiIn:mg*ffim :'il:Tiri* 5 wprisdRL {c)Apprv*';JilIffi,?i:1*#-d"#;i'ni'li;i",#TJff (i) T-nerw.orr II (ii) - nar+,ork li rfrff: t*ffi ;f if#'ffi ti,'. #f:iijffi F# fi ll tr?*n, :ffi ;';;;HTilli*'fr1 ;iji:ti;., lr: i'J t: , : .':.51.;,, ;i,,ti. 't:.t d !.r:lf..j: tr SE'CTION 4 Do as directed. (A) A 50pF capacitoris chargod retsinl0 mI of enerry by a constantchargingcurrsrt of to lA. Determine &e the_vollpge scross ryior. (B) Find the expression themutualinii.ctsncein Sreseries corupctionof trvo coupledcoils, for whenthe flux of the two coils assisr ech other,thenet equivalentinductanoe beingL1 and rvhenlhe flux of the two coilsoppose srch otlrr, tre equivalentinduclance teing t". " (C) Determine shownin Fig.7 fr,'r drivingpointimpedanct dlenetwork (D) Stal,e followingnetworkfunction validor inr:alidSpecify reason(s). the is = Yrz(s) 3s3-2s+ I 2s2+s+l (E) For lhe network shown in Fig. ti. Derermine (o). Plot magnitudeand phaseof it as a Gn ftrnctiono[ rrr f<rro > 0. Mnke comncnt on behaviorof the nelwork at differenl frgq of inpul liorn rrragnitude plot \ an1''I.wo Q -5Alrernpt I l0l (A) ['or thc tnuplcd nclrvorkslxr'.win Fig.9. rvntelocp e4rralions using KVL wherc Vi11 Vs2 & arc initial vohages capacit,.rn. &cnoss (ti) I;or the neln'ork shown in Fig. 10, ryplv ioop va;iable analysis and determinc currenl i through 3O resislor R (C) for ilrc neln,ork sholrn ir: f ig. I l,Deiffinine currsrl through l ll inductor using Nortom's tlrsorern Q6 ll0l (A) Detsrmine poworlossin tho l0 O rcsigorusingThevanin's lhe thoorern Fig. | 2. for (t] ) For nelworkshownin Fig. I 3, delsmrioo Zu andYr r. Gr:, Q,(, tl0l - " o R- - - (A) If thetransfornr thocuncntin oneportnctwork is of = I(s) 5s I r0l (s+2) 2s+2) (s'+ Dtscusstime dornain behavior from the location af poks & zeror.x.Also find its time donrain response i(t). (ll) The Fig. l shows four windings on a rni+inetrc flux conducling core. Using di{ferent shagred dots estahlishpotarity markingsand shou,nl! the steps hga- 1e Fi x.f , 8.1(^) t=r;: , , . , 9 .L d ) r 2n trr'J. '' g.zca) (:,) aa (r1. - ,-1 * 7- cl ?t:- vo F; l. q , 3'5 ( n ) tF zF IF r;g-5 4.3c8) i, \9, t --+ r i3 . 6 , E . 3 ( c ) R. l zs +-! o + \sz \ I' q c . ) +..8r Yl cl F ' , .S E-rr Ce ) ll vor l ' te bt J L:. va Fi3.g , 8.5O) r/,-v) F i3 . 1 0 , g - 5 r B ) e I rn2 (o9 rt . t{ (+) t/qF F''3. r t, g'5 3: ir' 1-rL F\."t (',ii ^ , 6.6 v11 -l 2Yr + 5( '''f"!;X:tu,ff-6(B) F i 3 .! r , , E-e Ce) .,,,.i7., '-'--&' +* l)lrrrrlrtsitrlrt)esrli|rt.slilrrle()l.l"cc|rlrtr|rr!tv.Nrrt|tir.| lltttrr:t'stlr'} { l),. L). I ,1r'r tt : r l It.tl. 1 ,. 't t,.,... IO t 6 L, J 'l t r ; rlll ,\'u :.,' | . . : r r r t r f t : f l 1, . r r lll I i r lr Jr ' r 'l t( I | ) S t 't t t lll \ r t 1 r 'l t t l r t '1 ,ttt'l i t' ',,'l ' tr :r t i tl r,,s1.1,.r | | lr r ,' r r l.' ,1 I'r ,'l r ttr ttl tttl l l tt f g rrc . lo oO eachscctionin scparateanslvcrbook' Instruclionr.l) .\nsrvcr ks' tltc ilrclic:rt(' rtter to J) l;tgtu'c* llrc riU:ltl tlttttt & whcrcvsrncccs!ijrr\' clcrr'Ir tttuttltutt l) \{akc suitablcassumptions SF:C ION*I (.).I l)tt a.s drrcctctl.. r) \\'nlc dorrn lltc outpulfrrr llrr:lbllon'ing0o(lessglllcnls: I ) cliss basc{ }. siz.tgl(bI):I nrrrn(){bascbl: co'r .') cl.rs\lcsl { irrt.j; public: classdala { int k: : \ lrl lirttral laid shorv{) | coul-'"'Jl tlass lgsl '1 r' dirt:r":| |: ) fublic: void.show{ I t;out*''"'n vlats main( ) { lesltl: daladl; lrl }; cout':< sizco(t1)"""n"{ (si zeof{dl } l.1l b ) Stalgl'RtI:rT:ALSW{'ith rnr$oR. cin poinl lo thc ohjcclrol r dcrivttl clas\, class | ) A prinlcr t(l fr t)asc 'l'lrclirllorving job' sanlc pcrfrrlrtts hv{)sl:rtcntcnls i)
ln1 a " l (): int a ( 1 0 ): 1) lrr atkliti()n trl Allocatiltg lncmon .t:Crl Opcral(lf alsn L:l.';tlc\ an olr.lecl lrv c:rlling tlrc oh.ictrt'siolls.tlucl{rr.

()t stll)lNx'l slJldln{nl! ill..' rtr" lirr ti;1 tx'olpn'pc lt:1'1tp ;)\\'ritc tilne \'I\'{'l A S. rllte;t rrtl.nrJlre ohjrcls {)!'r:lrss
.1 ri\.ltlll is ilr , - , llt lc r et t uc lr c lr v t c ll 1r 1i1, ,. : t l l {i l 1 I {'l c c l {d r i r i l r r l l t l l 'r 1 t i l

ljl

i.' !

Q:l

llttl an)' .Enemfrl .l que$ttons. otrtf i { hi l p' l orcdoadinginrllirrictron tellvc.n {rrncliott \11rat ttrcitiffcrsncc rr is c$rrnplc. f rplainn'ith suitahle cxamplc' :rti e truclorovcrlr-r irr w i tlr suitablc lr1[,xpirin corls codesijgmen:: nulpur lirllowirrg o1'tht '1\\'ntc cknrl lltc cla ss.{{ public:"'A ( coul'':'"n r \ c o lt s lru c lo rin v o k c d "I: i ,{ } I] c|a*sB { pubtic: B( ) { cout..:..'.'I, constructorinvokccl. l ihvptc<!":; ;: '" n C consbuctof class { public: C( ) {cour' C (-' 'I".T' class child : B. privatcA. pro{cclcd
{p u h li;: : : I '' " chikJ{ ,l:.{t ). ltr ).("{) i {.:oul n childinrokc'l
-ti.

::":,. *.: .",1..1i;, '

t.*:t;,i,

.: .11,,,'

'

"'j!''lt" ii):

'i
'*/l@

:;'fu
-+ I jr.

'

1l

I o tt':

s&re."

..''"

. ',':

;..r.!

CI_
1

Cec I cetrrJ lrc

l)t>

-1

Fi8' J, K

o. r c r )
Fig'2, o.l.(
\oJL

yo

I

T \ooV ,
I

I

Fi?.3, e..ecR)
th

u.tt)

r if l. 6 ,
__$*1, l.tL ,t c .3 c R ) 1{ 3lz Fr*' 3,r_ 9.s cB) z' !': Flr? ? , it I il il o& o.acn) :l 1. r';rt' ' €'",'.,'l F to, 6'4CD "S i# 1r ,F$
i

i,F

;$ir* ihl ,,! ti,- SECTION.tr Q.4 Do asdirected: tl0l l. S'hatis thetotalinductance looking from l-l' tenninals fig. l0? Establish in the coilson thecorewith proper according polarity winding direction to marking. 2. For a series network RC (output C) talienacross . Find Grz0w). What is half powerfreq.for Gr:0w). Design values R & C to havehalf powerfreq.* 1g of KHz. 3. Under whalconditions thereciprocity principlc rvill applyto a network? 4. Findrvhetlrer point -ioo rcpresents following function drivirrg lirnction. 1 c (a _, C*tt) FrL>-'6c5.) L _ ; Frcs): ffi s2 5. Irinddual nclrvork circuilGivcn in fig. ! | (h1'ncglecting of tlots) Q.5 Attempt srrv fii'o: (A)ln thenelrvork al ol'fig. l2 l}e switchK is cluscd I = 0, & stcady statehaving prcviously cxislcd. F'ind cuffenl thercsistor usingl}cvcnin's rheorern. thc in It (If) Writemeshequaliorr nelwork fer shown fig. I I in (C) Dcscibc trsnsferfunctionl'orthe onogort & lwo - pcrt ncfworksand what is significoncc irnmitoncc. loltagc*ansfcrfunclionfor circuitgivenin of Find fig .13 . Q.6 (A)l:slnblish polaritl.nrnrking lig. l,l usinglhrcc rlillercnt in dots. l3l (l)) Whatsre thc polcsnndzeros Whatdoesthcv dctcrminc any network? ? lbr l2l (Cl)For a networkgivcn in fig. 15.srvilchK is at position for a long rinrc& at F0 it a movesfrom positionn to pcllitiontr. Draw its lrans{br nenvork& wriic down loop cquations. lsl ll0l I oR --------Q.6 (A)"I'he model M{.,S for transislor anrplifier shorvn tig. l5 FindourGrz. is in (B) Detcrmine numerical valucof i2usingsourcitrsnsi'clrmation method fig.1? for l5l l5J . :,. i Dhannsinh Desai Ot: .Nadiad "lnqgtute Technolog-v i.. Ir 1. E a E:ia,n rrern I inat'"(iffiH,#Tl.Hfl *orrrn 20ol bcr. D a t e:3- | 2 - 2oot; T i me: lo .oc f6 l.c1c Instructions:l .A,nsw'Er each scction in separate answer book. ) Sudect:- Obiect Oriented Programming Design. and s I$

t.

f,-

"r,,

},Iax.tr[uks:60
SeatNo.:

2 t Figures to ttre right indicarc thc marks. 3) )Ialie suiuble assumptions rvhcrclrr necessarv clearll' menlion them &
SECTIOJY_I

qt:i I)o ns dircctt'd. \ r) lnheritancs represents rclalionship t,enveen classes canlainership and _._--.*.*_ rcprcsenls rclationslrip bllnccn cla.s:.cs. l2 l Irl \\hv doesn'! st.cfft( string. .p'): rvorh,l lll t-i c) \\iitc a l-rsr line of a spcc rfier f<rra class Tirs thrt is dcrivc,J ironr class\\''hccl and lrorn clansRubber. l2 I d) .{ staticfunclion {11 l) shouldbd cnllcd when *n objccl is &xrro1.cd. ?)'can trc callcd ruing clrts nsrrc and firnction name. .. 3) can bc callod uring objecrand Smction namc.

4) is uscdwhcna' dummvobjcctir crcard " c) Stalc TRLIE.,T.,\LSE rcason. with l2l l) A pintcr to a bascclass pointto rheoojccuof a dcri\,Ed can class. l) kr tl+'. a function can call occurcvcn lcft-hand on sids'l-an
?r'.

ssslgnincnt opcfator. 0 Writo down thc outputfor the follow{ng codesegment: class samplc{ }; main{) { sample sl: cour<.:sizco(sl):} Q:2

nl

b) Findoutcrrors thcmandwrite.Cqrot outpul.othcrw.isc tlrc ,ifiny,and corrcct simply nnrirc Aowithd,olrtpur. :, ..,I : ,j , ,trr#*,* ;' classbase{public:b;base( ) {cout({1irn'<*Urgd[ii h ulassdl: publicbase
. .:' ];i:

Ancmpr anv.4qucstion*: ll()l a) Find oul crrors,if aq!,gtd conect flpm lnd oritc ds'Tl thc oulput ,othcm.isc simply write dsurn thc orgur. nain{ ) { conetint j= }0; int &k = j: h cottl<<*j='<<jd{{'*n<-rta-<srdl' f,"tt a/ - .... : '.' r-*i jlir ' k=20: , :.: .1o cotrl(<1'j="<<j..<"k="-.'-k. l

!#"

&$.,-.' o.i ' ... ' :l:r'":l: .**i'1, *j +"iu ",,i"; # { pubtic: d l ( ): bas{ ) { cout<'fn'<<'second";} }: ' clagsd2: Public dl { Puhlic: d2t ) :d1( ) { cout<<"\n"':{'frst": } }; main( ) { d2 obj; } lltry and how are thev c) sometimes the *"*t}u, functions are de{inedconstant. dcfincd conslanl? you solvc it ? Explain d) \1'hat is the ambigurfy in multiple inheritancc? How can examPlc. with suitable ,;)\\har is the cli{Icren"" b"r*"rn function orvlcading and function orrcniding ? cxample. lixplain *.ith suitablc as*it'sonlYdala with anal' o1-cluraclsrs : a) Dcfinc fivOc.lasscsI ) classstringdalc as ) .2) chss dlte ryirhday .rnonth.l'c:r tlatcis storecl "l}ll}v)nrcmlrcr c.g.. { to \Vritc prograrfi thc folt.rving job' :rsit,s rlrrar'c*rlwrs.( all arc intcg[rs.; " I7l olass' ) rouline in source { tr\'ritel}rcconrcrsion s1: stringdatc datcdl : sl* dl: t3l *ith suitrblc cxnrnplc' o1 b) L,splainrhr:conr:Gpi 'conrairu,Tship' OR e:J . a) Define rwo ciasscs1) ciasscircle ihat slorcs radiur'srd areaof drd circle volurnsof thc cylindcr '.. heighrancl cvlindsrthat stores ?) class anddispley tltc volumc of thc c1'linder ' lo \\'ritc :r pro$Fam calculalc {51 ( Uscinhcritancc') ts it's data b) Define a clnssfi.aclionwhich containsnumcr8totand dcnominator pr{brmaddition of . mernbcrs \l'ntc a progremthat orcrloads+ opcrstorto t., t5l tu'o fractionr.lc'g, lii + ary1' SNCTNN-II Q:4 Do gsdimcl*<l': r#{: ; .:,r$a) Find oul ctrors in thc foll'owing et'atancrtts' ' i+ *DATA"); l) il.'ilrcam.intllc{ 2) inlilc.oPe{argc); of ll/hai are thc advantagen savingdatain l'inary forrn ? b) - ',",' an[3J and j(an+3) wherearr is afl afra]" c) What :s ,he .liffercncebctwecn whilc a pointer is a -. is An address a , C) { )'tr t2l izi l2 l, l2l , d) t pcintto?k* lhis IVhatdoes Pointcr i ^ that Writea sraterncnt mows;trc prttpointerl0 b)4ciforl'ard '. ft. obji0f0allcd 'cunrnrposition a strcarn in ',*i trl tl I v*. i "' -/ Q:5 Attemptany 4 questions: lt0l a) What is thc differcnce betweencpcning a 6le with a construclor fimction and openinga filc wi$ opsr( ) fimction ? \l'hen onc method is prcfcrred overrhe other? b) Explain the uignificanceof friend function witlt suitable examplc. c) Write a program to counl urd display the length of a file which is given as oommand line argument. from string sl ta string s2 d) Using pointers,write a programto copy 80 characters c) Dscuss thc different modesto opena frlc.

numbcrs thc f<rllon'irrg in form. Q:6 a) A filc eontainsa list of tclephcnc 2345678 John 2528099 Amislr
Write a progFam1o read thc file and displal'thc list and also add thc dala lo thc

j file. 15 h) \Vritc a program thal rsadsa numberficm a filc I'rth,{BtlR.DAl"( n,hiclr :torestlrs aumbet'h thc lilc ODD.DA'I if it is r:dd oonuins 10 intcgers.)end in othcrwi$c thc lile [,\'Elll.DAl" . tf] o8. i.e.;irclc, Q:6 a). Writo a programto sornpuieeid di*play sea of glvsn 2-D ob-iucts rsctrnde, triangle.Urc r"i'tual functkxt co{rccpt.Use r}rapcas hascclass.^.. [(r] : * Owrloid ''' b) Crca& g clasertring . ltrIritcrcquirodcorstructoresrd dcstruclors. o1rcrilorto comparcthc lcngthsof nro$ringrsand displav lhc larg,er sEinS lll

ry:- 1'

....
r,: ':ir' I

t{
t* il

is-- it

@;
.:
i

V t
for that question.
C D ^ Tt^ r r r

J

.d".

'l\{OI\iDA}' November 2005 29,

B.E.Snu. IIr tEc/cBtrctcld.tcl,lrql EXAMS.

?h

Scat l{o.:

Instruclions : l. Ansrvcr ench section in separutegnswerbook. :' Figuras to the righ{ indicate maxirnum marro

Time:10.00 l-OO to
Ir{ax.Marks:60

f.t2]
( a)

Iixprcssthe matrix as a sunl tlf synrrnctric & skew-svrnfnetric nratrixwhereA :

j-to t rl
-:

io'nl

(i,)

1 \ ll 1 Are the krllou,ing'ccrors linearly clcpendenr? (3,1._4),(2,2-3)(0.4:"1), & !l.so,fi nd a relation bctwecn thenr
Sttfvc: { r: n, c . i n r ,-),. J - '- - ,-'*.llxdx=
n

{i-l}

-

I

0 < t r< ;

? 3
id) {c)
ffl

tsI<2 \> 2

Hvaluate: L'1

i.\
-l

ls-2)2 ) J Olttairt fourier.serjes tlrefunction = the for f(x) xr. -r < x ( n. I)ct":lop sf n {ff) in half-rangc cosine eerics rhcrange < * <I. in 0 Artsmpt three. atry r:i;o the fourier sine and cosine traruform of rhe function f(x) = I u u i*x '
I;jt'.J 1

, Ot method residues. of

ia)

e'' &

hcnce show thnt

IOel

f -':--; _cosmx ax r-lunction 1

=
llx)

| J o 3 ,+ x z
a 1

xsinmx f ------'":
xsilx

dx
ils a .!. lburier

smies in

the interval I_r,ol.

Deducc rhat
'ii

€ & *
g

i{ j

r.l
i:.!

*, J)

l'est {br coneietencv solve:4x-y*22*t=0; & ?,*3},-z 2t=0; 7y-42-St 2x-I *72+ = =0; ly Findhalf-rangr Bt 0. .orin" series thefunctiorr for = f(x)

'&

{
f

=
Deduce sumof rheseries the
1* 1z L * 32 1. 52

kx 0sx<) 12 k(-*) )tZ s x sL

& \$

;
i i ii
. :l

.: i :
I

,.*."'t'*iki'l

,. .6,:.i.i,.t
:;;':fi-.

'1: :li, :

i .

.,*,' t

,1,";'l*;,'

..:h: ""tr.F - :. . '. . , '

.

,l .t

'i ti" i
.li

,- 1
'.-t.. :

'|
il"