Professional Documents
Culture Documents
l
g
?- YD
(b) i)escribe the four basic data types. How could rve extend the range of values they
r';pre scni?
(c) \r/irat is the difierence L.etu,een x++ & **x rvhen they are used in an expression?
(,J) r--io.,r' iegister variabie can erpedite program execution? What is wrong with tlre
l'oi lor.r,ing deciara.tion sratenrent?
2,. (a) Wlri,:h of the following varial:le natnes are vali:[and which invalid'? Why?
(i) aXeX (ii) cse.brur (iii) r:+v (iv) &narne (v) doubles (r'i) 3'd-row vii)n$
'l'otal (xi) rorv* (xii) column-total
{r,iii1 Rcw 1 (ix) float (x)Sum
{c) I)ifterentiate beirveen "break" and "continue" statements. What will the fbllowing l+2-3
code iragnrent output?
inta:1,c:0;
iio{
if(,aoio2::0) { c_i-+; a++;}
if(c:: 30) break;
i '.vhilet'a<:100);
printf("c is : oZel", c);
(c) 'lhe nrtrrrbers in tire seqlrertce "l i 2-3 :i 8 l3 21............" are calied fibonacci
luirbei:s. Write a progr?rm using a clo...nhrle loop to calcularte anci prir-rt the first rn
Page I cf3
fibonacci numbers.
4. (a) What happens when ananay with a specified size is assigned - "
(c) ldentify effors, if any, in each of the following array declaration statements,
assuming that ROW and COLUMN are declared as symbolic constants.
i) int score( 100);
ii) float valuesfl0,15];
iii) float average [ROW],[COLUMN];
iv) char namefl5];
v) int sum[];
vi) double salary[i+ROW]
vii) long int number[Row]
viii)int array x[ COLUMN]I ,
,k ,< {<
*****
,<***'F**
5. (a) What is the difference between call by value and call by reference? Describe with 3+2:5
proper examples. Which process is more speedy and why?
(b) Write a function (using pointer parameter) that reverses the elements of a given J
array.
fibonacci numbers.
4. (a) What happens when ananay with a specified size is assigned - "
(c) Identify enors, if any, in each of the following array declaration statements.
assuming that ROW and COLUMN are declared as symbolic constants.
i) int score( 100);
ii) float valuesfl0,15];
iii) float average [ROW],[COLUMN];
iv) char name[15];
v) int sum[];
vi) double salary[i+ROW]
vii) long int number[ROW]
viii)int array x[ COLUMN]I ,
*****
{.***'F{<*
5. (a) What is the difference between call by value and call by reference? Describe with 3+2:5
proper examples. Which process is more speedy and why?
(b) Write a function (using pointer parameter) that reverses the elements of a given J
array.
O
,E
/- ,)
fr: p * (*r);
printf("oZd, ohd,o/odu, p, *q, *r); I
Lr
l:l
Describe each of the following terms with an example: l0 il
i) Bitwise logical operator
ii) Pointer flexibility
1t
,
iii) One's complement operator
iv) Masking it
v) Array of structures
iI
vi) Array within structures
vii) Structures within structures
viii) Structures and functions
I
1
)
1
i
Page 3 of3
*s,V"
I
Depar-tnier-rt of' Computer Science & Engineerine
Begunt Rokeva Universitr,. Rangpur
[N.8.,{nsruer untr Fivc (S) Quasliorts, liuntber o.f'aut,lt qttestiort i,s irtrliculed to the rigttt]
P_-liiLTent
r\l rz
of Compurer. Science & urrbrrrvvrrrrE;
Engineering
r.::.:,::Fi.al,: rrxa,ri.atio, _ 20I0 (Sessio': 2009_I0)
^rr,l ^
i,.::,::;
Course Cocle: CSE 1205 Cou rse Titte: Fl";;i i;;r;;lrg
(Ansrver any Fir,e. Figures in the iigt t
*o.gin in@
Instructions:
-
a) 'lournalise the transaction fbr thc' rrio,rrr
.r Dcie,rber r0l0
b) Prepare the Cash Account of the conrpanr.
-
2- (a) Dellne depreciation. \\/hat are the factors
t: be considered in computatiorr of
deprec iation?
r'
.r1
I
.,
l, rI
, (b) The Bank Statement of Shimu Lubricant Cornpany shows a balance per bank of
TK 15,90,745 on April 30.2010. on this date the balance of cash per book is TK.
11,58,945. The follort'ing errors have been identified fiom the analvsis of trvo
Prepare the bank reconciliation for Shimu Lubricant Cornpanl.and pass the joLrrnal
entries if necessarv.
4. The Elston Motelopened a business on Mar l. 2008. Its Trial Balance befbre
adjustment on May 3l is as follorvs.
ELSTON MOTEL
Trial Balance
May 31. 2008
Pafiiculars I pebit (TK) | Credit (TK)
Cash 2500
Supplies I 900
Prepaid insurance 2400
land Li000
Lodge 70000
Furniture l(r800
Accourtts Pal,able 5300
Unearned rent 3600
Mortgage payable 40000
Cap,ital 55000
Rent revenue 9200
Advertising expenses 500
Salaries expenses 3000
Utiliry i 1000
TKI 13100 | TKrr:roo
Other data:
l. Insurance expires at the rate of TK200 per month.
2. Account of supplies shows TK 500of unused supplies on May 31.
3.Annual deprecation of Tk3600.
4.The moftgage interest is 12%
5.Unearnwd rent of TK 2500has been earned.
6. salaries of Tk 800 are accrued ar May 3i.
Instructions:
Cornpute the follori ing rarios lor 20I 0
a r Liqrridirr Rurios
b) Profitabilitr Ratios
c) Solr erre r Rrrti,rs
Paee i of --i
(B) T J Carlin opened his business on September l. 2008. DLrring the month of
operations the following occurred.
September 1. Invested TK 20000 cash in the business.
2. Paid TK 1500 cash for store rent for this month.
3. Purchasecl goods fortotal TK 2-i000. pai,ingTK 10000 in cash arrd
remaining on credit.
4. Paid TK 1200 a one \ car insurance policy,.
10. Paid cash tbr advertisirrg e\penses TK 750
20. Withdrau''f K 7-18 in cash fbr personal use.
30. Rece ived lbr service reve lrlrc TK 245.
Journalize the above transactions. post thern in tlre leclger. anC prepare a trial
balance rvith the help of ledger balances.
7. (a) How inventon, r.'aluation method affects the resrrlt of the cornpanr,?
(b) Sarnontee Cortrpanv Lirnitcd has tlre tbllouing invcnttrrr. prrlchasc and sules dlrta
tbr the rronth of Ivlarch. 2010.
lnstructions:
Under periodic inventorl, s\ sterns. detennine the cost ol inventorl, on har,d a1
March 3l and the cost of goods sold in March under -
a) FIFO b) LrFo c) Average-cost
' ,,i,
i'
o*,:*,:1;',1?[:!:]l,Hjilil"l]I]TX*,,eering
r " \'ear 2nd Serneste, Finur Exaniinario" _j9
c'urse Code: (Session: zo*gag)
cs. 124 i0
Course Titre:-Li,ear Algebra & Geometrr,r
----..-. (Answer any Five. td;
r' a) Fir,d the angre bet*'ee,
the pair of straight rines representec
ar2 +2ttry *b1',2 a2gx +2./-i,*c by
= 0. AIso find its intersecting point.
b' Sr'rri'that the clistance fronr the
origin to the orthocenter of
the triangle formed by
the lines ax2 +2hx1,+by2
-0 and *4=r {(o+b=)a\{,ryi r,
d P au' +zt,r, j +T{ '
(b)
rv = (,1. 5. 5l ir^'
Ilt at'e linearll' deperrclent' \
:l-t
I
I
I
(a) Dellne(i)VecorSpace(.ii)Sl:annirrgset(iii)Basisofa.vectot.liliat:t'. 1
(b) SlrorvthatL(S,={r,eV\v=atttt'1.a1Lti+ajtlj+.....,.'........*a,.,t.,'^t-ii:.!i
a sttirsPace of V '
I 'fl
lL
1o ,oftl#:iljffitqHffi rr:,t;.,ffi,*,,,
rotar rin,e, r,;ll.t4 r:;l':..*; *$,S,itt*,if,i1r_J.il '
Ansrver anr' five
:l
Also find tlre rncrde graphicaili, tr-onr the abor t0
e d:ra.
2. \\/irat is rne3r.r br centtt!
t:nclr.ncr,,l Is
Sh ru rhrt \l\i j Cirl; IJ\4 fbr,iro arithnre,lic ntean a goo(. nteiriLrrel, Justifr, \/our aits\\,cr.
,,nrl.tri.s. Calculate gconretric: 1
lioin al'oresaid tirta. AIso irL'an and harntrtnic n,ean
cornrn.,.t, n,r'r,nl',r. tlncjings. T/
+J
.rJ
+l
l0
w'lrat is Dispersion? \\'hat
arc'the,reasures of dispersion'7
cor,tficient oivariarion fiorn caicr.rrate standard der'iation
t.e.ilr;l;;. \\,tr1 .io.rn;l.riorvariation a,d 1
+l
1ti
J. a) Wlral is kurtosis? \\ihat
d.oes it ttleaslrre? Ilou
rrn,ler standing a fre.tucrrcr cloes the rnerisrrr.e ol l.,,rrr\o;,_ 1.._r.-
d i str ib ur ion : r.ioi, j
r:er lr.rl lncntcnts. r
ffi
i, n rn., .r ut iu.
.""' -:l"lii,.1i:ll,.li:1r,,,]:
-l
+2
r-()
;:,;lllH,:HHi;iit,i ffillfuxl::fl:;;li::,3,.t:;JilJ:i:::i:J:].11,i,,1,1,,,,
-\-----;-:_-._--
-l-ri-l-ffi
\ --ql+a-i
b0 lGl"tl;t-l6ii l.,i 17.,--rr--r --.;-
+1-r+ -q ql,c__ g-] 68- 6a-r-afr J
()
i3
() +l
Fit a Icast sqLrare line to
the dara u,irlt ..y as rhc. r'(L'pr'ndert
tver'e 67 inches, u
hut l'oLrld 1.,.. his preclicatecl it'the ireight 0f'a stLlcrent
l0
s eight'/ 'ariabr.-.
\
\
? (At B)
r-t
\ oti'lcollle ' lavorabie 'lases' iiricrtnatic -
prorlahili:-'t lll-
t* 'i rl ''
.,"'::' t
ir' ' rl
.i 'i
J
,7.r\\\rh:rtisBirlorliallrLobal-.ilitrili.triiliitior,.]f]lrl:tll.''lllt]ilfllLtlri..,..lIil.]]C(-,|]
'7
' x) rit i;-''r:1' . ir''1'
,l
irlo.utit,iriisrrib.lii-' ..r
i'\i r rrr't
i.rr.i,-l t'r-
rh.: pr.,,l,.r,l,il,.'. .,i- ::.r:tti'r:- 'l
11"'1o:
'Jiglir Lurt''i'i'''t1 ct'itts I
h) is :ii'
'',''11''i llgli:cli\'
i head-.. irr rr L-or.*rr1r\ iii,: r,:Lrrlir ,\'lllf
-r., -,.,1
lf 2 peicenr tLrses fttr'lLitt..lll.::'lll|i'i;.'i',;
I
,,,, ,i.i,,,,ti.'c i,tse. iiii 'i':r'\ri:'''
c)
\I )rtl) ILl"l: tll'"
,ilr, i,.t .t lrc\ "f
' cie t:ctive iti:'t-s '