13
No. of Printed Pages : 3 MCSL-045/S 1
Master of Computer Application
(Revised) (MCA)
Term-End Examination
December, 2018
UNIX AND DBMS LAB
Time : 2 Hours Maximum Marks 50
Note : (i) There are two Sections in this paper.
(ii) All the questions of the two Sections are compulsory.
(iii) Each Section is of one hour duration and carries 20 marks.
(iv) 5 marks are for viva-voce for each Section separately.
(v) Attempt only those Section(s) in which you are not
successful as yet.
(A-8) P. T. 0.
[2] MCSL-045/S1
Section—A
(UNIX)
Note : Answer the following questions. They carry 20 marks and the
viva-voce is for 5 marks.
1. Create and execute the following 'UNIX commands : 1 each
(a) To list previously executed commands.
(b) To show one line summary of system status.
(c) To show who is logged onto this terminal.
(d) To set file permission of any file to r, w, x for all.
(e) To count characters in a file (text).
2. Write a shell program to combine any two text files into a single file
(appending) in the order they appear in the arguments and display the
word count. 15
Section—B
(DBMS)
Note : Answer the following questions. They carry 20 marks and the
viva-voce is for 5 marks.
3. For the schema given below, perform the tasks (a), (b) and (c) :
Branch (Branch_name, city)
Account (Branch_nalne, Acc_No, Balance)
Depositor (Customer_Name, Acc_No, Addl, Add2, City)
(a) Create tables. Select appropriate data types for each of the fields.
Identify appropriate keys. Input meaningful data for at least
10 records. 5
(A-8)
[3I
(b) Display the balance, branch_name and city for the
Acc_No. = 7943486591. 2
2
(c) List all the Customer_Name, Ac _No whose accounts are in the city
Bengaluru. 2 2I
4. Write a procedure which takes Acc_No as input and displays the
Customer_Name, Add1 Add2, City, Branch Name and Balance. 5
5. Write a trigger which fires before inserting and deleting a record in the
"Depositor" table. 5
MCSL-045/S1 3,000
(A-8)