Sie sind auf Seite 1von 4

MCA (Revised)

Term-End Practical Examination


'
, . June, 2OOB :,; li

COUFSE(FORDATA AND"FILE
MCSL-ilZil: LABORATORY
) STRUCTURES, NETWORKING,
DBMS LAB'& JAVA

Tt:mealfawed:3 hours I 00
Ma,ximarr*'Idsr.ks::

I$f-e ; There are, four secfions (Data qnd File Structures,Nefr^oork ing, DBMS Lab.and Jaua
Programming) in this paper. Each section is for.4A minutes durqtion. Attempt only
those sectiransin whieh you arc not successful ag,yet. ' , 1
' 1 1

'ii,,:::.. Answgr
all 'the guestions ih each secfion. Each settion cartrIes20 maiks,:and the
uiva-we of thdt sect\on is for 5 marks.

SECTION A : Data and File

ftrh a-pgngramin C that'insertsan item in'front of a circular queue.

Write a program in C to find the maximum value in an array.


:

i .

MGSL-Oz5P/S2 FrT,O.
SECTION B : Nettrrorking

Perform the practiiols on LINUX / UNIX/ Wintdows2000. ln caseyoudo not ha,uesuffictent


rights to perform a task, then ririftaofd'fhe.:3tepineededto perform that task,

L . ' ,' 'l f : " ; , . . , ' i i i ; i , r i . r , li i, ' n " , i' i , i ' o


, t,.:,\i.
l. Run the following.o**unds and write the useof Luin ,
"o**inh
''

(a) chkdsk ._.t

(b) fc

(c) 'telnEi ' ''


i r,; .l
r J{

,-t. ,4,.
.i

(d) netstat'l'*

, 2 . Perfrym.the follswingtasks:
(a) Find the round+ripdg$y td.rry,1snou.ac.in.

(b) Get the list,of,nllthe r.rsers


of,the:machine. ;
(c) Adda userlGi*,"ttin41, limitad,permissions. .' ,
,,. : :.

,.r*!*r41'.-.?*r '

, 3. , lnstall and co-nfigure,a chent.


'' ": ' ; : * - i ' ' i r iri ^; ;
,,'

Mq$+:o25P/S2
SECTIONC:DBMSLab
-..

giving appropriate key,' data tlpes


i

createthe,follouring tables for a departrnentalstore


and ddhstraints, if anY ;
' i .
:cust-name, cust-phone)
Customei (cusUd,
Item-List (item-id, item-name, item-price)
' . t r - ,
.
'''.1'.'1^ttr.Cr'ure't*r;s-id,custjd,item-id,date.of-purchme,quantity).
i . { i . : . 1 . , . , r

a customer.This sale may include


n *r"r-ia is a unique id that is assignedto one saleby
and ltem-List taues
, *oj,,'-a*. Enter qbout 3 sets of ,*uningful data in Custorner
'l '
" andraboutlf sets of data in "Purchase" table'
in part (a)' 12
'lii;
(U) Write,#irrp the following'queriesusing SQL on the tablescreated
purchased some item on or
, (i) Find the customer name of the customerswho have
,il;,
i:' after "01-01-2008"
note sales-id for a sale should
," the bill for a particular sale made. Please
ilri
be,fie same.
11;'i -^ll +L^ *ao*
*.+'. Find'theitem_nameofthe.itemthathasbeensoldthemost..
rjj "':l
,*:
; r .s '

;"1

t$',:i

;i#3j
'1i'. '
'..''. .')r'
SECTION D : Java programming

1 . Write a program in JAVA that acceptsan integer


of four digit length, extracts
. ' all,thb
- digits and
stores them into an yay. ;-
The program arso outputs tn"selingtJaigit*.
: r.:.!
10
t'i':tt: ,
I i

2. write an applet in JAvA that calculatessimple


interest. The
--- applet'takes
-rr- amount and rate of
interestasinput,calcu|atesthe,simpleinterestusingtheformula-
(amouuntx rate of interestl/Ih}.
The applet displap the interest amount so calcr.ilated.

-''\,:.
t,l

McsL-Oz5P/S2 4

Das könnte Ihnen auch gefallen