question paper - internet concepts
TRANSCRIPT
MCA (Revised)
Tefrr-End Practical Examination
Decembet, 2006
MCSL-016 : INTERNET CONCEPTS AND WEB DESIGN
Time al lowed: 2 hours Maximum Marks : 50
Note: There are two questions in this paper carrying 20 marks eoch. 70 morks ore t'or
uiua-voce.
1. Create a form in HTMI- to fill up an examination form and perform the validation checks using
JavaScript.
. Name : Text Box
. Program : Combo Box
. Enrolment Number : Text Box
. Subject Code : Combo Box
Note :
(i) Enrolment Number should be minimum of 10 digits.
(ii) 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
proportionate even when the page is resized.
20
20
MCSL-o1 6P/S 1 5 ,OOO
MCA (Revised)
Term-End Practical Examination
December, 2006
MCSL-016 : INTERNET CONCEPTS AND WEB DESIGN
T i m e a l l o w e d : 2 h o u r s Maximum Marks : 50
Note: There are two questions in this paper carrying 20 marks each. 70 morks are for
uiua-uoce.
l. Design a web page having a forrn as given below to purchase a plane ticket :
. Flight Number - Text Box
r Starting from - Combo Box
r Destination - Combo Box
. Credit Card - Text Box
r Date of joumey - 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.
2. Create a home page of your regional centre in the following format : 20
Regional Centre Information
Program link I InformationNo. of Study CentreExamination related matters
On clicking these links, appropriate information should be displayed in the Information column.
20
MCSL-o16P/S2 4,000
MCA (Revised)
Term-End Practical Examination
December, ?OOG
MCSL-016 : INTERNET CONCEPTS AND WEB DESIGN
T i m e a l l o w e d : 2 h o u r s Mqximum Mqrks : 50
Note : There are two questions in fhis paper carrying 20 marks each. 70 marks are loruiua-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 numbers given in frame2, frame3 and frame4
should be displayed in frameL.
(iv) Insert an image in frameS. 20
2. Using Jarnscript, create a web page having 3 image files inserted on it, which switch between
one another as the mouse points over the image and also its background colour changes. 20
MCSL-o16P/S3 1 2,000
MCA (Revised)
Term-End Practical Examination
December, 2006
MCSL.O16 : INTERNET CONCEPTS AND WEB DESIGN
T i m e s l l o w e d : 2 h o u r s Maximum Mqrks : 50
Note : There are two questions in this paper carrying 20 marks each' L0 morks are for
uiua-uoce.
1. write HTML code to generate the following output : 20
\ WeatherCity \
Today's Weather
Max. Min.
Delhi
Shimla
Srinagar
2. Createa form in HTML containing the following fields and perform the validation of each field
using VBScriPt. 20
. Credit Card number : Text
. Password : Text
. Amount to be : Text
wiihdrawn
Note ;
(il Credit Card number must be of 70 digits'
(ii) Possurord must be minimum of 4 digits'
(iii) Amount to be withdrawn should not exceed 75,000/- at o time.
MCSL-o16P/S42,000
MCA (Revised)
Term-End Practical Examination
December, 2006
MCSL.O 17: C AND ASSEMBLY LANGUAGEPROGRAMMING
T i m e a l l o w e d : 2 h o u r sMaximum Marks : 50
. Note : There are two parts (C Progromming and Assembly Language Programming) in this
paper. Eoch part is for 7 hour duration. Attempt only thqt part(s) in which you are
not successful as Yet.
PART I
C Programming
Note : Answer the following question. It carries 20 marks snd the viua-uoce is t'or 5 marks'
1. write an interactive c program which will read-in five student records and print them in sorted
order. Each record should be represented by a c structure having the members for the first
name, last name and student roll-number (an integer). Sort the records by their first name'
You can read-in the information from the console or from a file" 20
PART II
emblY Language Programming
Note : Answer the following question. It corries 20 marks and the uiuo-uoce is for 5 morks'
2. Write a program in assembly language which will read-in four decimal inputs and print out their20
sum and the average in decimal numbers'
MCSL-o1 7PlS 15,000
MCA (Revised)
Term-End Practical Examination
Decembet, 2006
MCSL-O 17 : C AND ASSEMBLY LANGUAGEPROGRAMMING
T i m e a l l o w e d : 2 h o u r s Maximum Marks : 50
Note: There are two parts (C Programming and Assembly Language Programming) in this
pqper. Each part is for L hour duration. Attempt onlg that part(s) in which you are
not successful os yet.
PART I
C Programming
Note : Answer the following question, It carries 20 marks and the uiua-uoce is t'or 5 morks.
1. Write an interactive C program that reads character strings from the standard input (keyboard)
and prints them in the reverse. Use pointers. 20
PART II
Assembly Language Programming
Note: Answer the following question. It carries 20 marks and the uius-uoce is Jor 5 marks'
2. Write an assembly language program that will take three decimal inputs and display the
minimum of them. 20
MCSL-o 17PlS2 4,000
MCA (Revised)
Term-End Practical Examination
Decembet, 2006
MCSL-O 17 : C AND ASSEMBLY LANGUAGEPROGRAMMING
T i m e a l l o w e d , 2 h o u r s Maximum Marks : 50
Nofe : There are two parts (C
paper. Each part is fo,
not succes tf ul os yet.
Programming and Assem bly Languqge Programming) in this
t hour duration. Attempt only that part(s) in which you are
, PART I
C Programming
Note : Answer the following question. It cqrries 20 marks and the uiua-uoce is 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
starting time in hours and minutes and the endipg time in hours and minutes and then computes
the baby-sitter's fee. 20
PART II
Assembly Language Programming
Note : Answer the following question. lt carries 20 marks and the uiuq-uoce is for 5 marks.
2. Write an assembly language program which will read-in decimal numbers as input repeatedly
until a zero value is entered and print the sum of all the digits entered. 20
MCSL-o1 7P lS3 2,000
MCA (Revised)
Term-End Practical Examination
Decembet, ?OOG
MCSL-0 17: C AND ASSEMBLY LANGUAGEPROGRAMMING
Time al lowed: 2 hours Maximum Marks : 50
.Note: There are two parts (C Programming and Assembly Lorguog. Programmingj in thispaper. 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 carries 20 marks and the uiua-uoce is for 5 morks.
l. (a) Write an interactive C program to compute the product of two matrices of size n x ma n d m x k .
(b) Write a program that reads a line (string of alphabets) from the keyboard, converts them
to lower case, s€parates the line into different words which are to be printed on separatelines.
Example : THIS IS A MANGO.
1 0
1 0
Output :
this
is
a
mango
1MCSL-0 17P tS4 'P .T ,O.
PART IIAssembly Language Programming
Ngte : Answer the following question. It carries 20 marks and the uiua-uoce is for 5 marks., .
2. Write an assembly language program to compute the product of two decimal inputs. 20
MCSL-017Pt54 2,000
MCA (Revised)
Term-End Practical Examination
Decembet, 2006
MCSL-025 : LABORATORY COURSE (FOR DATA AND FILESTRUCTURES, NETWORKING. DBMS LAB & JAVA
PROGRAMMING}
T imea l l owed :3 hou rs Mqximum Marks : 700
Note: There are lour sections (Data and File Structures, Networking, DBMS Lab and Joua
Programming) in this paper. Eoch s;ection is t'or 40 minutes duration. Attempt only
that part(s) in which you are not successful as yet.
Answer all the questions in each section. Eoch section carries 20 marks and the
uiua-uoce is for 5 marks
SECTION A : Data and File Structures
l. Write a program in 'C' language that accepts 5 strings as input and prints them in lexicographic
order. 10
Z. Write a program in 'C' language to accept a paragraph of text as input. The program should
print the list of words and the number of occurrences of each word in the paragraph as output' 10
P . T . O .MCSL-025P/S 1
SECTION B : Networking
Perform practicals 7 to 4 on Linux/LJnix/IAlindows 2000. e. 5 is on Sheil programming.
l. Run the following commands and write the use of each command :
(a) telnet
(b) tracert
(c) drivers
(d) fc
2. Make your own subdirectories cailed first and second in your home directory.
3' Write a shell script which returns the PID of a process. Provide necessary input.
4- connect and configure your computer with a Local Network printer.
5. Monitor the IP routing status.
2
MCSL-025P/S 1
SECTIONC:DBMSLab
l. (a) ,Create database for customers of a shop. The details of the table that is to be created are
given below :
Table : Customer
- CustomeLid
- Name:
- Area i- Phone
(b) Enter at least 5 sets of meaningfuldata in the table and answer the following queries using
SQL 15
(il Print the entire customer table.
(iil Delete record where area is NULL.
(iii) Find the names of those customers who have 'A' as first letter in their names'
(iv) Update phone numbers of all customers to have a prefix as your city sTD code.
(v) Display area and number of records within each area'
MCSL-025P/S 1 P . T . O .
SECTION D : Java Programming
1 . write a program in Java that accepts two stringscheck if either of the input strings is a substring ofoutput.
write a program in Java to launch 5 threads.Run the program with synchronization.
51 and 52 as input. The program shouldthe. other and give appropriate message as
Each thread should incrernent a counter variable.2.
1 0
1 0
MCSL-O25P/S 1 5,000
MCA (Revised)
Term-End Practical Examination
December, 2OOG
MCSL-025 : LABORATORY COURSE (FOR DATA AND FILESTRUCTURES. NETWORKING, DBMS LAB & JAVA
PROGRAMMING}
T i m e a l l o w e d : 3 h o u r s Maximum Marks : 100
Note : There are four sections (Data and File Struch)res, Networking, DBMS Lab and Jova
Programming) in this paper. Eqch section is for 40 minutes duration. Attempt only
that port(s) in which you ore not successful as yet.
Answer all the questions in eqch section. Eoch section carries 20 mqrks and the
uiua:uoce is for 5 marks.
SECTION A : Data and File Structures
l. Write a program in 'C' language that accepts two singly linked lists A and B as input. Now,
the program should print a singly linked list that consists of only those elements which are
common to both A and B. 70
2. Write a program in 'C' language to implement a queue using two stacks.
MCSL-O 25P IS2
1 0
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 commands and write the use of each command :
(a) pathping
(b) drivers
(c) chkdsk
(d) hostname
2- Find your Ethernet physical address using appropriate command.
3. Find the files in your home directory whose access permissions are set to rwxrw<rw:<, 4
4. Find the round-trip delay to any website using appropriate command.
5. Set the execution time of a job so that it can run automatically after 20 minutes.
3
MCSL-O25P/S2
SECTIONC:DBMSLab
1. Create the following tables :
Table : Order_Party L0
- Order_number
- Order_date
Customer_code
Table : Order
- Order_number
- Item_code
- Quantity
Designate appropriate field(s) of both tables as keys.
2' Create a form for data entry to both the tables mentioned in the above question. 1 0
MCSL-025P/S2P . T . O .
SECTION D : Java Programming
l. Write a program in Java for the addition of two complex numbers. 1 0
2. Write a program in Java that accepts a file as input and counts the number of words in it' 1 0
MCSL-025Pt52 4,000
MCA (Revised)
Term-End Practical Examination
Decembet, ?OOG
MCSL-025 : LABORATORV COURSE (FOR DATA AND FILESTRUCTURES. NETWORKING. DBMS LAB & JAVA
PROGRAMMING)
T i m e a l l o w e d : 3 h o u r s Maximlrm Marks : 100
Note : There are four secfions (Dat:a and File Structures, Networking, DBMS Lab and Jaua
Programming) in this paper. Each section is for 40 minutes duration. Attempt only
that part(s) in which you are nof success/u I as yet.
Ansi;wer all the questions in each section. Each section carries 20 marks and the
uivq-uoce is for 5 marks.
SECTION A : Data and File Structures
1. Write a program in 'C' language to implement a Dequeue using pointers. All operations
associated with a Dequeue are to be implemented. 10
2. Write a program in 'C' language to implement Kruskal's algorithm. 1 0
MCSL-025 P/S3 " 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 l!' *, ;li$
2
(a) nslookup
(b) route
(c) lpq, . i' ..1 -r. ::' . , .:. it 1
1 . .
(d) ' netdius
. r . i . ' T
2. Display the names of all files in the
. 1 . . . r . : , _ ; r . , i : l ' . ' , :
3. Send multiple files to a printer. Also,
file from print queue.
MCSL-O25P/S3
are larger than 600 KB.
write the cornmand that is to be ex<ecuted to remove any
3
4.
5 .
create a cnonjob that sends you a message after every 10 minutes.
. . 4 . . . , : : . . , ' : t . r , - ' . : , . : . . . . . _ : _ , . . . , , . . : : . . :
Customize and configure IP$gp poltcy pnd ryles fol transport;r.ngde o.n the'local computer.
1. Create the following table and perform the necessarytasks {efined be[ow i . ...:,i *' l v ' v w r l l 5 l q v r e q r r u t . r ; . : l i r . ' ; - . ,
- r t . r - , , - i i , , 1 , 1 r , ; 1 l . - , : ' , : . I l , i : , . . . - ; " r . , : . . i ' i ' i i
(a) Create the following table named Train : 5
, . . - - : , N a m g ! ' t ' : : ' ! ' : . ' ' ' : . ' : " r ' : ' ' : : ; ' ' : ; ' : " ' r ' ' " " ' : '
' - ' : i : l '
'Train number
- Source station
- Destination-station
- Number-of-coaches
(b) Now, enter at least 5 sets of data in the above'table and answer the following queries
using SQL , 75
(i) Find the number of the train whose name is "Circar express'!.
(ii) List the names of all trains whose source station is "New Delhi".
(iii) Find the number of coaches of 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 destination station is "New Delhi" and have
not more than 15 coaches.
MCSL-025P/S3
l .
2.
SECTION D,: Java Prograrnrning
write a program in Java for addition of two matrices.
Write a program in Java that accepts two strings as inputany library function for concatenation.
1 0
1 0
and concatenates them. Don't
4MCSL-025P/S3 2,000'
MCA (Revised)
Term-End Practical Examination
f)ecembet, 2006
McsL-025 : LABoRAToRy couRsE (FoR DATA AND F|LESTRUCTURES, NETWORKING. DBMS LAB & JAVA
PROGRAMMING}
Time allowea t S hours Maximum Mqrks ; 100
Note: There are four sections (Datq and File Structures, Networking, DBMS Lab and JauaProgramming) in this papen Eqch section is for 40 minutes duration. Attempt onlythat part(s) in which you are not successful os yet.Answer all the guestions in each section. Each section carries 20 marks and theviua-uoce is for 5 marks.
SECTION A : Data and File Structures
1. Write a program in 'C' language to implement Heap Sort.
2- write a program in 'c' language to implement Linear search using pointers.
1 0
1 0
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 commands and write the use o{ each command :
(a) ipconfig
(b) rsh
(c) ftp
(d) diskpart
2. Find and list the devices that are available in your system.
3. Use the ls command unj grnp to display all names starting with 't'.
4. Use lingeror who to get a list of users on the machine
5. When you install a Modem, how do you enable/disable call waiting on the computer ? 7
MCSL_O25P/S4
1. Create the following table a
(a) Create the following ta
Hospital-nam
Hospital-addr
City
Department-1
Department-Z
Department-3
Number of P
Number-of-D
Number-of-A
Now, enter at least 5
using SQL :
(i) Find the names
(ii) Find the departm
(iii) List the names o
(iv) List the names
departments.
(v) Find the city wh
(b)
MCSL-025Pt54 P . T . O .
SECTIONC:DBMSLab
d perform the necessary tasks defined below.
e named Hospital :
tients
tors
bulances
sets of data in the above table and answer the following queries
f hospitals where the number of patients are more than 1000.
nts that are available in hospitals in New Delhi.
hospitals which do not have ambulances.
nd addresses of hospitals which do not have more than two
re there are large number of hospitals.
1 5
SECTION D : Java Programming
l. Write a program in Java to copy a file to another file.
2. Write a program in Java to store information related to students.
1 0
1 0
MCSL-025P/S4 2,000
MCA (Revised)
Term-End Practical Examination
December, 2006
MCSL-036 : LABORATORY COURSE (FOR OOAD'SOFTWARE ENGINEERING AND ACCOUNTANCY AND
FINANGIAL MANAGEMENT}
T i m e a l l o w e d : S h o u r s 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 successful as yet. Answer
all the questions in each section. Section A and Section B carry 25 morks for the
problem, and viuo-uoce is 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 classes for a "student Admission System". Make
necessary assumptions. 75
2. Draw the sequence and collaboration diagrams for the system given in Question L above' 10
MCSL-036P/S 1, . ' i , , ,
D T N| . | . v r .
" . , ' , , SECTlONB:SoftwareEngineering
l. Develop the SRS for the "student Admission System". Make necessary assumptions. 7
2- Draw the following diagrams for the problem given in Question 1 of this section :' : . : : . . : , :
(a) DFDs upto appropriate llvels I
o
(b) ER diagrams
MCSL-036P/S 1
SECTION C : Accountancy and Financial Management
l. Post the following transactions of ABC Services to prepare the joumal, ledger and trialbalance,using Tally (or any other similar software).
2006April Rs.
1
2
3
4
8
1 5
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
10,000
4,000
1,500
3,000
6,000
3,000
30,000
4,000
7,000
7,000
MCSL-036P/S 1
30
4,000
MCA (Revised)
Term-End Practical Examination
Decemb-et, 2006' l j : . ' : . ' ,
MCSL-036 : LABORATORY COURSE (FOR OOAD,SOFTWARE ENGINEERING AND ACCOUNTANCY AND
FINANCIAL MANAGEMENT}
T i m e a l l o w e d : S h o u r s Maximum Marks : 700
Note : There are three sections in this paper. Each section is for one hour, including the
uiua-uoce. Attempt only that part(s) in which you are not successt'ul as yet. Answer
all the guestions in each section. Setction A and Section B carry 25 marks for the
problem, qnd uiua-uoce is for 5 marks, respectiuely. Section C carries 30 marks t'orthe problem, and uiua-uoce for 70 marks. Assumptions con be made whereuer
necessary,
SECTION A : Object Oriented Analysis and Design
1. Draw the use cases and define all the classes for a "Hospital Management System". Make
necessary assumptions 1.5
2. Also, draw the sequence and collaboration diagrams for the system given in Question 1 above. 10
MCSL-036P/S2
: i SECTlONB:SoftwareEngineering
l. Develop the SRS for a "Hospital Management System",,Make necessary assumptions. T
2- Draw the following diagrams for the problem given in Queption 1 of this sgction :
(a) DFDs upto appropriate levels
(b) ER diagrams
9
9
MCSL.O36P/S2
SECTION C : Accountancy and Financial lVlanagement
l. Post the following transactions of YYZ Co. to prepare the joumal, ledger and trial balance,
using Tally (or any other similar software). 30
2006June
Rs.
1
2
3
5
9
1 5
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
5,000
500
204
400
1 ,000
600
300
300
100
204
MCSL-036P/S2 4,O00
' , ,,: ' : . ' : i"
' ; . , . . t r i : - 1
MCA (Revised)
Term-End Practical
MCSL=036 : LABORATORY COURSE (FOR OOAD'SOFTWARE ENGINEERING AND ACCOUNTANCY AND
FINANCIAL MANAGEMENT}
T i m e a l l o w e d : 3 h o u r s Maximum Mqrks : 700
Note: 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 successful as yet. Answer
all the guestions in each section. Section A and Section B carry 25 marks for the
problem, and uiua-uoce is for 5 marks, respectiuely. Section C corries 30 marks lor
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 classes for a "Railway Reservation System". Make
necessary assumptions 75
2. Also, draw the sequence and collaboration diagrams for th'b system given in Question 1 above' 10
Examination
Decembet, 2006
MCSL-036P/S3 P . T . O .
1 .
2 .
SECTION B : Software Engineering
Develop sRS for the "Railway Resenration system,,. Make.necessary assumptions.
Draw the following diagrams for the probrem given in euestion 1 of this section :
(a) DFDs upto appr;priate t"u"t,
(b) ER diagrams9
9
MCSL-036P/S3
/
SECTION C : Accountancy and Financial Management
1. Post the following transactions of James to prepare the journal ledger and trial balance usingTally (or any other similar software). 30
2003April Rs.
1
2
3
5
6
7
1 0
7 2
1 5
T 6
1 8
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
6,000
2,000
1 ,500
1 , 1 0 0
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 : LABORATORY COURSE (FOR OOAD,SOFTWARE ENGINEERING AND ACCOUNTANCY AND
FINANCIAL MANAGEMENT}
T i m e q l l o w e d : 3 h o u r s Maximum Marks : 100
Nofe : There are three sections in this paper. Each section is for one hour, including theuiua'uoce. Attempt only that part(s) in which you are not successt'ul as yet. Answerall the questions in each section. Section A and Section B carry 25 marks for theproblem, and uiua-uoce is for 5 marks, respectiuely.'section C carries 30 marks forthe problem, and uiua-uoce for 70 marks. Assumptions con be made whereuernecessary,
SECTION A : Object Oriented Analysis and Design
l. Draw the use cases and define all the classes for a "Payroll Processing System". Makenecessary assumptions 15
2. Also, draw the sequence and collaboration diagrams for the system given in Question 1 above. L0
MCSL-036P/S4 P . T . O .
1 .
2 .
SECTION B : Software Engineering
Develop SRS for the "Payroll Processing system". Make necessary assumptions.
Draw the following diagrams for the problem given in euestion 1 of this seclion
(a) DFDs upto appropriate levels
(b) ER diagrams
MCSL-036P/S4
1. .
SECTION C : Accountancy and Financial Management
Post the following transactions of Wilson & Co. to prepare the joumal, ledger and trial balance,
using Tally (or any other similar software) :
2006August Rs.
1
2
3
5
7
8
9
T 2
1 5
T 6
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
800
800
500
700
100
300
1
1
800
5,300
2,400
3,400
1 ,000
1 ,800
1 .800
30
MCSL-036P/S4 2,000
MCA (Revised)
Term-End practical Examination
Decembet, 2006
MGSL-045 : UNIX AND DBMS LAB
T i m e a l l o w e d : 2 h o u r sMsximum Marks ; 50
Note : There sre two parts(UNIX and DBMS) in this paper. Each part is t'or t hour durqtion'
Attempt only that part(s) in which you are not successlul as yet'
PART I
UNIX
Note : Answer the fotlowing questions. They carry 20 marks and the viua-uoce is t'or
5 marks.
1. Write and execute the UNIX commands for the following :
(a) To split a file containing 100 lines into 25 lines each'
(b) To print the information about the active processes'
(c) To change the current password of the user to a new password'
(d) To print the last twenty lines of a text file'
(e) To search all ihe files and the directories within a particular directory for a given pattem
of the string.
2. Write a shell script to take your name as input in upper case letters and print the same in the
lower case.
3. Write a shell script which deletes all the odd numbered lines in a text file and displays the altered
output in a seParate text file.1 0
MCSL-045P/S 1P . T . O .
PART IIDBMS
Note : Answer the following questions. They carry 20 marks. and t.he uiua-uoce is for5 marks.
l' create a relational database with the following retations and insert meaningful data in them. 10ENROLL (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# represents student number, c# represents course number, prof is thesis advisorof s*' Pre-c# is prerequisite course, sname is student name. perform Insertion, Deletion,Updation and Drop operations on the created relations.
2' consider'the above relations and execute the following queries , ^"I -2 :x4=70(a) List all students taking courses with a particular faculty. \(b) List a[ students taking at least one course that their advisor teaches.(c) ust those professors who teach more than one section of the same course( d ) L i s t t h e c o u r s e s t h a t a p a r t i c u l a r s t u d e n t c a n e n r o l l i n i ' e . h a s p a s s e d t h e n e c e s s a r y
prerequisite courses but not the course itself. -'-v Fswvs urs
MCSL-045P/S 14,000
MCA (Revised)
Term-End Practical Examination
Decembet, 2006
MCSL-045 : UNIX AND DBMS LAB
T i m e a l l o w e d : 2 h o u r s Maximum Marks : 50
Note : There are two parts (UNIX and DBMS) in this paper. Each part is lor 7 hour duration.Attempt only that part(s) in which you are not successful as yet.
PART I
UNIX
Note : Answer the foltowing questions. Theg carry 20 marks and the uiua-uoce is for5 marks.
1. Write and execute the UNIX commands for the following :
(a) To run a program at lower priority.
(b) To compare any two files and show the differences.
(c) To show the text file on display terminal with paging control.
(d) To display the date and time.
(e) 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 characters includingthe special symbols.
3. Write a shell program to sort a given file which consists of a list of numbers, in descendingorder. 10
MCSL-045 P IS2 P . T . O .
PART II
DBMS
Note : Answer the following questions. They carry 20 marks and the uiua-uoce is for5 marks.
l. Create a relational database with the following relations and insert meaningful data in anOrchesha database. 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 todisplay the names of players who play guitar and flute.
2. Consider the above relations and execute the following queries r 2lx4=102
(a) List all the players who play the instrument "GUITAR".
(b) List all the compositions which require the "CASIO" instrument.
(c) List all the players and their instruments who can be part of the Orchestra with a givenname as input.
(d) List all the players w-ho can play 2 or more instruments.
MCSL-045P/S2 4,000
MCA (Revised)
Term-End Practical Examination
Decembet, 2006\
MCSL-045 : UNIX AND DBMS LAB
T i m e a l l o w e d : 2 h o u r s Maximum Marks : 5A
Note : There sre two parts (UN/X and DBMS) in fhis paper. Each part is for t hour durqtion.
Attempt only that part(s) in which you are not successful as yet.
PART I
UNIX
Note : Answer the t'ollowing questions. They carry 2A marks and the uiua-uoce is for5 marks.
1. Write and execute the UNIX commands for the following :
(a) To set read, write and execute permissions for user, group and other, for a specified file.
(b) To change the ownership of a file.
(c) To list all the information about the files and the directories in the current directory.
(d) To find the files that match specified criteria.
(e) To display who is logged on to this terminal.
2. Write a shell script to write the initials of 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
files having file name starting with "d" from the current directory to the directory "D". 10
MCSL-045 P/S3 P . T . O .
PART II
DBMS
Note : Answer the following questions. They carry 20 marks and the uiua-uoce is t'or5 marks.
1. Create a relational database with the following relations and insert meaningful data 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 employees and code of products involved in execution of Job#=123.
2. Consider the above relations and execute the following queries : 2lx*-fi2
(a) List all employees who are involved in producing similar products.
(b) List all the products and their details.
(c) List all the titles of the jobs for the employees who are producing the same product.
(d) List all the employee numbers and their names.
2 ,OOOMCSL-045 P/S3
MCA (Revised)
Term-End Practical Examination
flecembet, 2006
MCSL-045 : UNIX AND DBMS LAB
T i m e q l l o w e d : 2 h o u r s Maximum Marks : 50
Note : There are two parts (UNIX and DBMS) in this paper. Each part is for t hour duration'
Attempt only that part(s) in which you are not successful as yet.
PART I
UNIX
Note : Answer the following questions. They carry 20 mqrks qnd the uiua-uoce is for 5
morks.
1. Write and execute the UNIX commands for the following :
. (a) To display the online manual for the command "su".
(b) To display the last five lines in a text file.
(c) Pipe the output of the "who" command to the sort command.
(d) Kill a process with its PID.
(e) List the details of the largest file in the current directory'
2. Write a shell script to append the contents of any three text files into a new text file. 5
3. Write a shell program to encrypt any text file with the logic of your own choice (example, you
may replace 'A' by 'C'; 'B' by 'D' etc. or any other replacement of your choice) to encrypt the
file data. 10
MCSL-045 P/S4 P . T . O .
PART II
DBMS
Note : Answer the following questions. They carry 2(i marks and the uiua-uoce is for5 marks.
l' Create a relational database with ihe following relations and insert meaningful data in a DrivingSchool database. 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 thedetails of the vehicles owned by Dr. Murthy.
2' Perform following queries using the relations created in Q l through SeL statements. 2lx4=10z
(a) List all the teachers who teach theory as well as the driving lessons to the students.
(b) List the teachers who can drive all the vehicles.
(c) List all the students who are leaming the driving from "Raj".
(d) List all the "Ucense#" of the teachers.
MCSL-045P/S4 2,OOO