Está en la página 1de 56

MCA (Revised) Tefrr-End Practical Examination Decembet, 2006

AND WEB DESIGN CONCEPTS : MCSL-016 INTERNET


Time allowed:2 hours Note: Maximum Marks: 50

There are two questionsin this paper carrying 20 marks eoch. 70 morks ore t'or uiua-voce.

1.

Createa form in HTMI- to fill up an examinationform and perform the validationchecksusing 20 JavaScript. . . . . Name : Text Box Program : Combo Box Enrolment Number : Text Box SubjectCode : Combo Box

Note : (i) (ii) Enrolment Number should be minimum of 10 digits. Subject Code should be alphanumeric, not exceeding six characters.

2.

Write a code in HTML to design a page with two frames. The frames should remain 20 proportionate even when the page is resized.

1 MCSL-o6P/S 1

5,OOO

MCA (Revised) Term-End Practical Examination

December, 2006
AND WEB DESIGN MCSL-016: INTERNETCONCEPTS
Timeallowed:2hours Note: Maximum Marks: 50

There are two questionsin this paper carrying 20 marks each. 70 morks are for uiua-uoce.

l.

Design a web page having a forrn as given below to purchasea plane ticket : . r r . r Flight Number Starting from DestinationCredit Card Text Box Combo Box Combo Box Text Box Combo Box (one for each : day, month and year) Also perform validation checks on Flight Number, Date of joumey and Credit Card (it should not exceed 15 digits) using VBScript. Create a home page of your regional centre in the following format :
Regional Centre Information

20

Date of joumey -

2.

20

Program link No. of Study Centre Examinationrelated matters

I Information

On clickingthese links, appropriate information shouldbe displayedin the Information column.

MCSL-o16P/S2

4,000

MCA (Revised) Term-End Practical Examination

December, ?OOG
MCSL-016 INTERNET : AND WEB DESIGN CONCEPTS
Timeallowed:2hours Mqximum Mqrks : 50

Note : There are two questions in fhis paper carrying 20 marks each. 70 marks are lor uiua-uoce. 1. (i) Write HTML code to develop a web page with the following format : Framel FrameZ Frame3 Frame4 Frame5

(ii) . Creale a text box in frame 2, 3 and 4 and a text box and a button in framel. liii) Clicking the button in framel, addition of numbersgiven in frame2, frame3 and frame4 should be displayedin frameL. 20

(iv) Insert an image in frameS.

2.

Using Jarnscript, create a web page having 3 image files insertedon it, which switch between 20 one another as the mouse points over the image and also its backgroundcolour changes.

MCSL-o16P/S3

2,000

MCA (Revised) Term-End Practical Examination

December, 2006
AND WEB DESIGN CONCEPTS : MCSL.O16 INTERNET
Timesllowed:2hours Note : Maximum Mqrks: 50

L0 morks are for There are two questions in this paper carrying 20 marks each' uiua-uoce.

1.

write HTML code to generatethe following output : \ City Delhi Shimla


Srinagar

20

Weather \

Today's Weather

Max.

Min.

2.

validation of each field Createa form in HTML containing the following fields and perform the 20 using VBScriPt. . . . Credit Card number Password Amount to be wiihdrawn : Text : Text : Text

Note ; (il (ii) (iii) Credit Card number must be of 70 digits' Possurord must be minimum of 4 digits' Amount to be withdrawn should not exceed 75,000/- at o time.

MCSL-o16P/S4

2,000

MCA (Revised) Term-End Practical Examination

December, 2006
17: C AND ASSEMBLYLANGUAGE MCSL.O PROGRAMMING
Timeallowed:2hours

Maximum Marks : 50

Note :

in this There are two parts (C Progromming and Assembly Language Programming) which you are paper. Eoch part is for 7 hour duration. Attempt only thqt part(s) in not successfulas Yet. PART I C Programming

Note : 1.

5 marks' is Answer the following question.It carries20 marks snd the viua-uoce t'or

and print them in sorted write an interactivec program which will read-in five studentrecords the members for the first order. Each record should be representedby a c structure having by their first name' name, last name and student roll-number (an integer).Sort the records 20 You can read-in the information from the consoleor from a file"

PART II emblY Language Programming

Note : 2.

5 morks' is Answer the following question.It corries20 marks and the uiuo-uoce for

inputs and print out their Write a program in assemblylanguagewhich will read-in four decimal sum and the averagein decimal numbers'

20

7 M C S L - o 1 P l S1

5,000

MCA (Revised) Term-End Practical Examination Decembet, 2006


17 MCSL-O : C AND ASSEMBLYLANGUAGE PROGRAMMING
Timeallowed:2hours

Maximum Marks: 50

Note:

There are two parts (C Programming and AssemblyLanguageProgramming) in this pqper. Eachpart is for L hour duration. Attempt onlg that part(s) in which you are not successfulos yet.

PART I C Programming

Note : Answer the following question, It carries20 marks and the uiua-uoceis t'or 5 morks. 1. Write an interactiveC program that reads characterstrings from the standardinput (keyboard) 20 and prints them in the reverse.Use pointers.

PART II Assembly Language Programming

Note: 2.

is Answer the following question.It carries20 marks and the uius-uoce Jor 5 marks'

Write an assembly language program that will take three decimal inputs and display the 20 minimum of them.

1 MCSL-o 7PlS2

4,000

MCA (Revised) Term-End Practical Examination Decembet, 2006


LANGUAGE 17 MCSL-O : C AND ASSEMBLY PROGRAMMING
Timeallowed,2hours Nofe : Maximum Marks : 50

There are two parts (C Programming and Assembly Languqge Programming) in this paper. Each part is fo, t hour duration. Attempt only that part(s) in which you are tf not succes ul os yet.

PART I C Programming

Note : Answer the following question. It cqrries20 marks and the uiua-uoceis t'or 5 mqrks. 1. A baby creche charges Rs. 4/- per hour until 9.00 PM, Rs. 3/- per hour between 9.00 PM and midnight, and Rs. 3.50 per hour after midnight. Write a program that reads the creche startingtime in hours and minutes and the endipgtime in hours and minutesand then computes 20 fee. the baby-sitter's

PART II Assembly Language Programming

is Note : Answer the following question. lt carries 20 marks and the uiuq-uoce for 5 marks. 2. Write an assemblylanguageprogram which will read-in decimal numbers as input repeatedly 20 until a zero value is entered and print the sum of all the digits entered.

MCSL-o7PlS3 1

2,000

MCA (Revised) Term-End Practical Examination Decembet, ?OOG


MCSL-0 17: C AND ASSEMBLYLANGUAGE PROGRAMMING
Time allowed: 2 hours

Maximum Marks: 50

.Note:

There are two parts (C Programming and Assembly Lorguog. Programmingj in this paper. Each part is t'or 7 hour duration. Attempt only that part(s) in which you are not success/ul as yet.

PART I C Programming

Note : Answer the following question. It carries20 marks and the uiua-uoce for 5 morks. is l. (a) Write an interactive C program to compute the product of two matrices of size n x m andmxk.

10

(b)

Write a program that reads a line (string of alphabets) from the keyboard, convertsthem to lower case, sparatesthe line into different words which are to be printed on separate lines. 10 Example : THIS IS A MANGO. Output : this is a mango

M C S L - 01 7 P t S 4

'P.T,O.

PART II Assembly Language Programming Ngte : Answer the following question. It carries20 marks and the uiua-uoceis for 5 marks. , . 2. Write an assemblylanguageprogram to compute the product of two decimal inputs. 20

MCSL-017Pt54

2,000

MCA (Revised) Term-End Practical Examination Decembet, 2006


(FORDATA AND FILE COURSE : MCSL-025 LABORATORY DBMS LAB & JAVA NETWORKING. STRUCTURES, PROGRAMMING}
h Timeallowed:3 ours Note: Mqximum Marks: 700

There are lour sections(Data and File Structures, Networking, DBMS Lab and Joua Programming) in this paper. Eoch s;ectionis t'or 40 minutes duration. Attempt only that part(s) in which you are not successfulas yet. Answer all the questions in each section. Eoch section carries 20 marks and the is uiua-uoce for 5 marks SECTION A : Data and File Structures

l.

Write a program in order.

'C'

languagethat accepts5 stringsas input and prints them in lexicographic 10

Z.

'C' languageto accept a paragraph of text as input. The program should Write a program in of print the list of words and the number of occurrences each word in the paragraphas output' 10

M C S L - 0 2 5 P /1 S

P.T.O.

SECTION B : Networking Perform practicals 7 to 4 on Linux/LJnix/IAlindows 2000. e. 5 is on Sheilprogramming.


l. Run the following commands and write the use of each command : (a) (b) (c) (d) telnet tracert drivers fc

2. 3' 45.

Make your own subdirectories cailed first and secondin your home directory. Write a shell script which returns the PID of a process.Provide necessary input. connect and configure your computer with a Local Network printer. Monitor the IP routing status.

MCSL-025P/S 1

SECTIONC:DBMSLab l. (a) ,Create database customersof a shop. The detailsof the table that is to be createdare for given below : Table : Customer (b) CustomeLid Name Area Phone i :

Enter at least 5 setsof meaningfuldatain the table and answerthe following queriesusing 15 SQL (il (iil Print the entire customer table. Delete record where area is NULL. 'A' as first letter in their names'

(iii) Find the names of those customerswho have

(iv) Update phone numbers of all customersto have a prefix as your city sTD code. (v) Display area and number of recordswithin each area'

M C S L - 0 2 5 P /1 S

P.T.O.

SECTION D : Java Programming 1 . write a program in Java that acceptstwo strings 51 and 52 as input. The program should checkif either of the input stringsis a substring the.other and give of appropriatemessage as output.

10

2 . write a program in Java to launch 5 threads.Eachthreadshould incrernenta countervariable.


Run the program with synchronization.

10

MCSL-O25P/S 1

5,000

MCA (Revised) Term-End Practical Examination

December, 2OOG
(FORDATA AND FILE MCSL-025 LABORATORY : COURSE DBMS LAB & JAVA NETWORKING, STRUCTURES. PROGRAMMING}
Timeallowed:3hours Maximum Marks : 100

Note : There are four sections(Data and File Struch)res, Networking, DBMS Lab and Jova Programming)in this paper. Eqch sectionis for 40 minutes duration. Attempt only that port(s) in which you ore not successful yet. as Answer all the questions in eqch section. Eoch section carries 20 mqrks and the is uiua:uoce for 5 marks.

SECTION A : Data and File Structures

l.

'C' languagethat acceptstwo singly linked lists A and B as input. Now, Write a program in the program should print a singly linked list that consistsof only those elements which are common to both A and B. 70

2.

'C' Write a program in languageto implement a queueusing two stacks.

10

MCSL-O IS2 25P

P.T.O.

SECTION B : Networking Perform practicals 7 to 4 on Linun/Unix/lhlindows 2000. e. 5 is on shell programming. l. Run the following commandsand write the use of each command : (a) (b) (c) (d) pathping drivers chkdsk hostname

2-

Find your Ethernetphysicaladdress usingappropriatecommand.

3.

Find the files in your home directory whose accesspermissionsare set to rwxrw<rw:<,

4.

Find the round-trip delay to any websiteusing appropriate command.

5.

Set the executiontime of a job so that it can run automatically after20 minutes.

MCSL-O25P/S2

SECTIONC:DBMSLab 1. Create the following tables : Table : Order_Party Order_number Order_date Customer_code Table : Order Order_number Item_code Quantity L0

Designateappropriate field(s)of both tables as keys.

2'

Create a form for data entry to both the tablesmentioned in the above question.

10

MCSL-025P/S2

P.T.O.

SECTION D : Java Programming Write a program in Java for the addition of two complex numbers. Write a program in Java that acceptsa file as input and counts the number of words in it'

l.

10 10

2.

MCSL-025Pt52

4,000

MCA (Revised) Term-End Practical Examination Decembet, ?OOG


(FORDATA AND FILE : COURSE MCSL-025 LABORATORV DBMS LAB & JAVA NETWORKING. STRUCTURES. PROGRAMMING)
Timeallowed:3hours

Maximlrm Marks: 100

Note : There are four secfions (Dat:a and File Structures, Networking, DBMS Lab and Jaua Programming)in this paper. Each sectionis for 40 minutes duration. Attempt only I that part(s) in which you are nof success/u as yet. Ansi;werall the questions in each section. Each section carries 20 marks and the is uivq-uoce for 5 marks. SECTION A : Data and File Structures

1.

'C' language to implement a Dequeue using pointers. All operations Write a program in 10 associated with a Dequeueare to be implemented.

2.

Write a program in

'C'

language to implement Kruskal's algorithm.

10

MCSL-025 /S3 P

"P.T.O.

SECTION B : Networking practicals 7 to 4 on Linux/Unix/11/indows 2009. e. 5 is on shell programming.

{ itrl-s;,:.;l'.r,iut:l ;li$ l!' *,


2
(a)
(b) (c)
' ..1 1

nslookup
route lpq,
. -r. ::' . , .:. . it

'

.i
1

(d)

netdius
.r.i.'T

2.

Displaythe namesof all files in the


: , _ ; r . , i : l ' . ' , :

are larger than 600 KB.

. 1 . . . r .

3.

Send multiplefiles to a printer. Also, write the cornmand that is to be ex<ecuted remove any to file from print queue.

4.

create a cnonjob that sendsyou a messageafter every10 minutes.


..4..., ::..,' :t.r ,-'. :,. :... .._ :_,. ..,, ..: :.. :

5.

Customize configure and IP$gppoltcypnd

o.n rylesfol transport;r.ngde the'localcomputer.

MCSL-O25P/S3

1.

' v'vwrll5 Createthel followingtable and perform the necessarytasks , lqvreqrrut - r t . r - , , - i {efined be[ow i i, . r;.: lir.';-., 1,1r,; 1l.-,:',:.

Il,i:,...-;"

r.

,:..i'i'i

...:,i

*
i

(a)

Create the following table named Train :


,.. --:,Namg !'t ': : ' ! ' : . '' ' :.': "r':' ':: ;'':;': "'r '' '-' ""':' :i :

5
l'

Train number (b) Source station Destination-station Number-of-coaches

'

Now, enter at least 5 sets of data in the above'table and answer the following queries 75 usingSQL , (i) (ii) Find the number of the train whose name is "Circar express'!. List the names of all trains whose source station is "New Delhi".

(iii) Find the number of coachesof the train bearing number "262'1.". (iv) List the numbers of all trains which have more than 20 coaches. (v) Find the numbers of all trains whose destinationstation is "New Delhi" and have not more than 15 coaches.

MCSL-025P/S3

SECTION D,: Java Prograrnrning l.


write a program in Java for addition of two matrices.

10

2 . Write a program in Java that accepts two strings as input and concatenates them. Don't
any library function for concatenation.

10

MCSL-025P/S3

2,000'

MCA (Revised) Term-End Practical Examination f)ecembet, 2006 McsL-025: LABoRAToRy couRsE (FoR DATAAND F|LE STRUCTURES, NETWORKING. DBMSLAB & JAVA
PROGRAMMING}
Time allowea t S hours

Maximum Mqrks ; 100

Note:

There are four sections(Datq and File Structures, Networking, DBMS Lab and Jaua Programming) in this papen Eqch section is for 40 minutes duration. Attempt only that part(s) in which you are not successful yet. os Answer all the guestions in each section. Each section carries20 marks and the viua-uoceis for 5 marks.

SECTION A : Data and File Structures Write a program in 'C' languageto implement Heap Sort. write a program in 'c' languageto implement Linear search using pointers.

1.

10

2-

10

MCSL-O25P/S4

P.T-.O.

SECTIONB:Networking

Perform procticals 7 to 4 on LinuxlUnix/\\lindows 2000. Q. 5 is on shell programming. 1. Run the following commandsand write the use o{ each command : (a) (b) (c) (d) ipconfig rsh ftp diskpart

2.

Find and list the devicesthat are availablein your system. 't'. Use the ls command unj grnp to display all names starting with

3.

4.

Use lingeror

who to get a list of userson the machine

5.

When you install a Modem, how do you enable/disable call waiting on the computer ?

MCSL_O25P/S4

SECTIONC:DBMSLab
1.

tasksdefinedbelow. Create the following table a d perform the necessary


(a) Create the following ta e named Hospital Hospital-nam Hospital-addr City :

Department-1 Department-Z Department-3 Number of P tients Number-of-D tors Number-of-A bulances (b) Now, enter at least 5 sets of data in the above table and answer the following queries 15 usingSQL :
(i) (ii) Find the names f hospitals where the number of patients are more than 1000. Find the departm nts that are available in hospitals in New Delhi.

(iii) List the names o hospitals which do not have ambulances. (iv) List the names departments. (v) Find the city wh re there are large number of hospitals. nd addresses of hospitals which do not have more than two

MCSL-025Pt54

P.T.O.

SECTION D : Java Programming l. Write a program in Java to copy a file to anotherfile.

10 10

2.

Write a program in Java to store information relatedto students.

MCSL-025P/S4

2,000

MCA (Revised) Term-End Practical Examination


December, 2006

(FOROOAD' COURSE : MCSL-036 LABORATORY AND AND ACCOUNTANCY ENGINEERING SOFTWARE MANAGEMENT} FINANGIAL
Timeallowed:Shours

Maximum Msrks ; 100

Note : There are three sections in this paper. Each section is for one hour, including the uivq-uoce.Attempt only that part(s) in which you are not successfulas yet. Answer all the questions in each section. Section A and Section B carry 25 morks for the problem, and viuo-uoceis for 5 marks, respectiuely. Section C carries 30 rnarks for the problem, and uiua-uoce for 10 mqrks. Assumptions con be made whereuer necessary.

SECTION A : Obiect Oriented Ana$sis

and Design

1.

Draw the use cases and define all the classesfor a "student Admission System". Make 75 necessary assumptions.

2.

Draw the sequence and collaborationdiagramsfor the systemgiven in Question L above'

10

. '

i , ,

M C S L - 0 3 6 P / S1

D T N | . | .vr.

".,' l. 2-

,,

SECTlONB:SoftwareEngineering 7

Develop the SRS for the "student Admission System". Make necessary assumptions. Draw the following diagramsfor the problem given in Question 1 of this section : : ':.: : . . : , I (a) DFDs upto appropriate llvels (b) ER diagrams

M C S L - 0 3 6 P / S1

SECTION C : Accountancy and Financial Management l. Post the following transactionsof ABC Services prepare the joumal, ledger and trialbalance, to (or any other similar software). using Tally 30

2006 April 1 2 3 4 8 15 28 30 30 30
Started business with cash Deposited in the Bank Furniture purchased for cash Purchased goods for cash Old furniture sold for cash Paid taxes in cash Received cash from Mr. Z Bank interest credited Paid Rent Paid Salary

Rs.

10,000 4,000 1,500 3,000 6,000 3,000 30,000 4,000 7,000 7,000

MCSL-036P/S 1

4,000

MCA (Revised) Term-End Practical Examination Decemb-et, 2006


'l j :.' :.',

(FOROOAD, MCSL-036 LABORATORY : COURSE AND ENGINEERING SOFTWARE AND ACCOUNTANCY FINANCIAL MANAGEMENT}
Timeallowed:Shours

Maximum Marks: 700

Note : There are three sections in this paper. Each section is for one hour, including the as uiua-uoce. Attempt only that part(s) in which you are not successt'ul yet. Answer A all the guestions in each section. Setction and Section B carry 25 marks for the problem, qnd uiua-uoce for 5 marks, respectiuely. Section C carries 30 marks t'or is the problem, and uiua-uoce for 70 marks. Assumptions con be made whereuer necessary,

SECTION A : Object Oriented Analysis and Design

1.

Draw the use casesand define all the classesfor a "Hospital Management System". Make 1.5 necessary assumptions

2.

Also, draw the sequence and collaborationdiagramsfor the systemgiven in Question 1 above. 10

MCSL-036P/S2

:i l. 2-

SECTlONB:SoftwareEngineering T

Develop the SRS for a "Hospital ManagementSystem",,Make necessaryassumptions. Draw the following diagramsfor the problem given in (a) (b) DFDs upto appropriate levels ER diagrams Queption 1 of this sgction :

9 9

MCSL.O36P/S2

SECTION C : Accountancy and Financial lVlanagement l. Post the following transactionsof YYZ Co. to prepare the joumal, ledger and trial balance, 30 using Tally (or any other similar software).

2006 June 1 2 3 5 9 15 25 28 30 30
Mr. A started business with cash Deposited in the bank Furniture purchased for cash Purchased goods for cash Purchased goods from Mr. B on credit Goods sold to Mr. B for cash Goods sold on credit to Mr. C Received cash from Mr. C Paid Rent Paid Salary

Rs.

5,000 500 204 400 1, 0 0 0 600 300 300 100 204

MCSL-036P/S2

4,O00

',

,,: ': .' :i"

' ;

. , . . t

i : - 1

MCA (Revised) Term-End Practical Examination Decembet, 2006


(FOROOAD' COURSE : MCSL=036 LABORATORY AND AND ACCOUNTANCY ENGINEERING SOFTWARE MANAGEMENT} FINANCIAL
Timeallowed:3hours Note: ' Maximum Mqrks: 700

There are three sections in this paper. Eoch section is for one hour, including the uiua-uoce.Attempt only that part(s) in which you are not successfulas yet. Answer all the guestions in each section. Section A and Section B carry 25 marks for the problem, and uiua-uoce for 5 marks, respectiuely. Section C corries 30 marks lor is the problem, and uiua-voce Jor 70 morks. Assumptions con be made whereuer necessary.

SECTION A : Obiect Oriented Analysis and Design

l.

Draw the use cases and define all the classesfor a "Railway Reservation System". Make 75 assumptions necessary

2.

Also, draw the sequenceand collaborationdiagramsfor th'b systemgiven in Question 1 above' 10

MCSL-036P/S3

P.T.O.

SECTION B : Software Engineering 1. 2. Develop sRS for the "Railway Resenration system,,. Make.necessary assumptions. Draw the following diagramsfor the probrem given in euestion 1 of this section : (a) (b) DFDs upto appr;priate t"u"t, ER diagrams 9 9

MCSL-036P/S3

/ SECTION C : Accountancy and Financial Management 1. Post the following transactionsof James to prepare the journal ledger and trial balanceusing Tally (or any other similar software). 30

2003 April 1 2 3 5 6 7 10 72 15 T6 18 30 30 30
Started business with cash Deposited in the bank Furniture purchased (cash) Purchased goods for cash Old furniture sold for cash Purchased goods from ABC (on credit) Received cheque of money due to ABC Deposited the cheque in Bank Paid taxes in cash Goods sold to John for cash Goods sold on credit to Staiin Bank interest credited Paid Rent Paid Salary

Rs.

6,000 2,000 1,500 1,100 3,000 2.000

1,500 2,504 2,200 1,700 2,300 2.500

MCSL-036P/S3

2,000

MCA (Revised)

Term-End Practical Examination December, 2006


MCSL-036 : LABORATORYCOURSE (FOR OOAD, SOFTWAREENGINEERING AND ACCOUNTANCYAND FINANCIALMANAGEMENT}
Timeqllowed:3hours

Maximum Marks : 100

Nofe :

There are three sectionsin this paper. Each section is for one hour, including the uiua'uoce.Attempt only that part(s) in which you are not successt'ul yet. Answer as all the questions in each section. Section A and Section B carry 25 marks for the problem, and uiua-uoce for 5 marks, respectiuely.'sectionC carries30 marks for is the problem, and uiua-uocefor 70 marks. Assumptions con be made whereuer necessary,

SECTION A : Object Oriented Analysis and Design

l.

Draw the use cases and define all the classesfor a "Payroll Processing System". Make necessary assumptions 15

2.

Also, draw the sequence and collaborationdiagramsfor the systemgiven in Question 1 above. L0

MCSL-036P/S4

P . TO . .

SECTION B : Software Engineering 1. 2. Develop SRS for the "Payroll Processingsystem". Make necessaryassumptions. Draw the following diagramsfor the problem given in euestion 1 of this seclion (a) (b) DFDs upto appropriate levels ER diagrams

MCSL-036P/S4

SECTION C : Accountancy and Financial Management 1 . . Post the following transactionsof Wilson & Co. to prepare the joumal, ledgerand trial balance, using Tally (or any other similar software): 30

2006 August 1 2 3 5 7 8 9 T2 15 T6 24 28 30 30 30
Started business with cash Deposited in the bank Furniture purchased for cash Purchased goods for cash Old furniture sold for cash Purchased goods from Mr. Y (on credit) Received cheque due to Mr. Y Deposited the cheque into Bank Paid taxes in cash Goods sold to Z & Co. for cash Goods sold on credit to Mr. A Received cash from Mr.. A Bank interest credited Paid Rent Paid Salary

Rs.

800 800 500 700 1 100 1 300

800 5,300 2,400 3,400 1, 0 0 0 1,800 1.800

MCSL-036P/S4

2,000

MCA (Revised) Term-End practical Examination Decembet, 2006


MGSL-045: UNIX AND DBMS LAB
Timeallowed:2hours

Msximum Marks ; 50

Note :

part is t'or t hour durqtion' Theresre two parts(UNIX and DBMS) in this paper. Each as yet' Attempt only that part(s) in which you are not successlul PART I UNIX and the viua-uoce is t'or Answer the fotlowing questions. They carry 20 marks 5 marks.

Note :

1.

Write and executethe UNIX commandsfor the following : (a) (b) (c) (d) (e) To split a file containing100 lines into 25 lines each' To print the information about the active processes' password' To change the current passwordof the user to a new To print the last twenty lines of a text file' directory for a given pattem To searchall ihe files and the directorieswithin a particular of the string.

2.

letters and print the same in the Write a shell script to take your name as input in upper case lower case. in a text file and displaysthe altered Write a shell script which deletesall the odd numberedlines 10 output in a seParatetext file.

3.

M C S L - 0 4 5 P /1 S

P.T.O.

PART II DBMS Note : Answer the following questions. They carry 20 marks. and t.he uiua-uoce is for 5 marks.

l'

create a relational databasewith the following retationsand insert meaningfuldata in them. ENROLL (S*, C#, Section) TEACH (prof, C*, Section) ADVISE (prof, S*) PRE_REQ(C#, pre_C#) GRADES (S#, C#, Grade, year) STUDENT (S*, Sname) where s# representsstudent number, c# representscourse number, prof is thesis advisor of s*' Pre-c# is prerequisitecourse, sname is student name. perform Insertion, Deletion, Updation and Drop operations on the created relations.

10

2'

consider'the above relations and execute (a) (b) (c)

the following queries ,

^"I 2:x4=70 \

List all studentstaking courseswith a particular faculty. List a[ studentstaking at least one course that their advisor teaches.

ust those professorswho teach more than one section of the same course (d)Listthecoursesthataparticularstudentcanenrollini'e.haspassedthenecessary -'-v Fswvs urs prerequisitecoursesbut not the courseitself.

MCSL-045P/S 1

4,000

MCA (Revised) Term-End Practical Examination Decembet, 2006


MCSL-045: UNIX AND DBMS LAB
Timeallowed:2hours Maximum Marks : 50

Note :

There are two parts (UNIX and DBMS) in this paper. Eachpart is lor 7 hour duration. Attempt only that part(s) in which you are not successfulas yet.

PART I UNIX

Note :

Answer the foltowing questions. Theg carry 20 marks and the uiua-uoce for is 5 marks.

1.

Write and executethe UNIX commandsfor the following : (a) (b) (c) (d) (e) To run a program at lower priority. To compare any two files and show the differences. To show the text file on display terminal with paging control. To display the date and time. To count the number of words in a text file.

2.

Write a shell script to accept a string as input and display the number of charactersincluding the specialsymbols. Write a shell program to sort a given file which consistsof a list of numbers, in descending order. 10

3.

M C S L - 0 4 5P I S 2

P.T.O.

PART II DBMS Note : Answer the following questions. They carry 20 marks and the uiua-uoceis for 5 marks.

l.

Create a relational databasewith the following relations and insert meaningful data in an Orcheshadatabase. 5+3+:2=70 CONDUCTS (Conductor, Composition) REQUIRES(Composition,Instrument) PTAYS (Player,Instrument) UKES (Player,Composition) and perform Insert, Delete, Update operations on the created relations. Create a view to display the names of players who play guitar and flute.

2.

Considerthe above relations and executethe following queries r (a) (b) (c) List all the players who play the instrument "GUITAR". List all the compositionswhich require the "CASIO" instrument.

2lx4=10 2

List all the players and their instrumentswho can be part of the Orchestrawith a given name as input. List all the playersw-hocan play 2 or more instruments.

(d)

MCSL-045P/S2

4,000

MCA (Revised) Term-End Practical Examination Decembet, 2006


\

MCSL-045: UNIX AND DBMS LAB


Timeallowed:2hours

Maximum Marks : 5A

Note :

There sre two parts (UN/X and DBMS)in fhis paper. Eachpart is for t hour durqtion. Attempt only that part(s) in which you are not successful yet. as

PART I UNIX

Note :

is Answer the t'ollowing questions. They carry 2A marks and the uiua-uoce for 5 marks.

1.

Write and executethe UNIX commandsfor the following : (a) (b) (c) (d) (e) To set read, write and executepermissionsfor user, group and other, for a specifiedfile. To change the ownership of a file. To list all the information about the files and the directoriesin the current directory. To find the files that match specifiedcriteria. To display who is logged on to this terminal.

2.

Write a shellscript to write the initialsof any name given as input. Example : VIJAY KUMAR Output : VK

3.

Write a shell program to create a directory "D" in the current directory, then transfer all the 10 files having file name starting with "d" from the current directory to the directory "D".

M C S L - 0 4 5P / S 3

P.T.O.

PART II DBMS Note : Answer the following questions. They carry 20 marks and the uiua-uoceis t'or 5 marks.

1.

Createa relational databasewith the following relationsand insert meaningfuldata in them. 5+3+2:70 EMPLOYEE (Emp*, Emp-name, Profession) PRODUCT (Prod#, Frod-name, Prod-details) JOB-FUNCTION (Job*, Title) ASSIGNMENT (Emp#, Prod#, Job#) And perform Insert, Delete, Update, Drop operations on the created relations. Find the code of employeesand code of products involved in execution of Job#=123.

2.

Considerthe above relations and executethe following queries : (a) (b) (c) (d) List all employeeswho are involved in producingsimilar products. List all the products and their details.

2lx*-fi 2

List all the titles of the jobs for the employeeswho are producing the same product. List all the employee numbersand their names.

MCSL-045 P/S3

2,OOO

MCA (Revised) Term-End Practical Examination flecembet, 2006


MCSL-045: UNIX AND DBMS LAB
Timeqllowed:2hours

Maximum Marks: 50

Note :

There are two parts(UNIX and DBMS)in this paper. Eachpart is for t hour duration' Attempt only that part(s) in which you are not successfulas yet.

PART I UNIX

Note :

Answer the following questions. They carry 20 mqrks qnd the uiua-uoceis for 5 morks.

1.

Write and executethe UNIX commandsfor the following : . (a) (b) (c) (d) (e) To displaythe online manualfor the command"su". To display the last five lines in a text file. Pipe the output of the "who" command to the sort command. Kill a processwith its PID. List the detailsof the largestfile in the current directory' 5

2.

Write a shell script to append the contents of any three text files into a new text file.

3.

Write a shell program to encrypt any text file with the logic of your own choice (example,you 'A' 'C'; 'B' by 'D' etc. or any other replacement your choice)to encryptthe of may replace by 10 file data.

P MCSL-045 /S4

P.T.O.

PART II DBMS Note : Answer the following questions. They carry 2(i marks and the uiua-uoce is for 5 marks.

l'

Createa relationaldatabase with ihe following relationsand insert meaningfuldata in a Driving Schooldatabase. S+S+2=j0 STUDENT (St_Name,Class#, Th_Marks, Dr_marks) STUDENT_DR_TEACHER(St_Name,Dr_T_Name) TEACHER_TH_CLASS (Class*, Th_T_Name) TEACHER_VEHICLE (Dr_T_Name,License#) VEHICLE (Ucense#, Make, Modet, year) Perform Insertion, Deletion, Updation and Drop operations ori the above relations. Find the details of the vehicles owned by Dr. Murthy.

2'

Perform followingqueriesusing the relationscreatedin (a) (b) (c) (d)

Q l through SeL statements. 2lx4=10 z

List all the teacherswho teach theory as well as the driving lessonsto the students. List the teacherswho can drive all the vehicles. List all the studentswho are leaming the driving from "Raj". List all the "Ucense#" of the teachers.

MCSL-045P/S4

2,OOO

También podría gustarte