Professional Documents
Culture Documents
APPLICATIONS
(MCA)
ASSIGNMENTS
(July-2008 & January-2009)
(6th SEMESTER)
CS-13 CS-14
CS-15
Important notes:
1. Viva voce is compulsory for the project evaluation of each course for which 6 marks are
allocated.
2. Project should contain the following:
• 3-4 pages write-up about the logic/algorithm and data structures used in the
programs implementation.
• Code-listing with necessary comments.
2
Course Code : CS-13
Course Title : Operating Systems
Assignment Number : MCA(6)-13/TMA/08
Maximum Marks : 10
Last Dates for Submission : 15th October, 2008 (for Jul’ 08 session)
15th April, 2009 (for Jan’09 Session)
This is a Tutor Marked Assignment. There are five questions in this Assignment.
Answer all the questions. Each question carries equal weightage. You may use
illustrations and diagrams to enhance explanations. Please go through the guidelines
regarding assignments.
Question 1: Operating systems perform resource preemption for the CPU and memory,
but not for I/O devices. Why is this so? Please discuss briefly.
Question 2: Compare the following page replacement policies on the basis of the
overhead:
(a) FIFO page replacement
(b) LRU page replacement
(c) Optimal page replacement
Question 5: Discuss in detail the I/O Management, File Management, Security and
Protection mechanism in Windows Vista Operating System.
3
Course Code : CS-13
Course Title : Operating Systems
Assignment Number : MCA(6)-13/Project/08
Maximum Marks : 15
Last Dates for Submission : 15th October, 2008 (for Jul’ 08 session)
15th April, 2009 (for Jan’09 Session)
This is a Project assignment. There are three questions. Answer all the questions.
Each question carries equal weightage. You may use illustrations and diagrams to
enhance explanations. Please go through the guidelines regarding assignments.
Question 2: Study and implement the following algorithms using C/C++ programming
language.
(i) RSA algorithm
(ii) Lamport’s Bakery Algorithm for Interprocess synchronization
Question 3: To build a robust distributed system, you must know what kinds of failures
can occur.
(i) List possible types of failure in a distributed system.
(ii) Specify which items in your list also are applicable to a centralized
system.
4
Course Code : CS-14
Course Title : Intelligent Systems
Assignment Number : MCA (6)-14/TMA/08
Maximum Marks : 10
Last Dates for Submission : 15th October, 2008 (for Jul’ 08 session)
15th April, 2009 (for Jan’09 Session)
This is a Tutor Marked Assignment. There are three questions in this assignment.
Answer all questions. You may use illustrations and diagrams to enhance
explanations. Please go through the guidelines given in the Starter Kit regarding
assignments.
Question 3: For the sentence given below, develop Propositional Tree using the same
label links as those used in Human Associative Memory (HAM):
5
Course Code : CS-14
Course Title : Intelligent Systems
Assignment Number : MCA (6)-14/Project/08
Maximum Marks : 15
Last Dates for Submission : 30th October, 2008 (for Jul’ 08 session)
30th April, 2009 (for Jan’09 Session)
This is a Project Assignment. There are five questions in this project assignment.
Answer all questions. You may use illustrations and diagrams to enhance the
explanation.
Question 4: Write an iterative function named SUM-ALL using do construct that takes
an integer n as argument and returns the sum of all integers from 1 to n.
For example, (SUM-ALL 6) returns 21. (3 marks)
Question 5: Write a PROLOG program that answers questions about family members
and relationships. Include predicates and rules which define brother,
sister, father, mother, grandchild, grandfather, and uncle in terms of the
three basic relations, viz, child, male, female. The program should be able
to answer queries such as the following:
6
Course Code : CS-15
Course Title : Relational Database Management Systems
Assignment Number : MCA(6)-15/TMA/2008
Maximum Marks : 100 (Weightage – 10 marks)
Last Date of Submission : 15th October, 2008 (for Jul’08 session)
15th April, 2009 (for Jan’09 session)
This is a Tutor Marked Assignment. There are five questions (equal marks) in this
assignment. Answer all the questions. You may use illustrations and diagrams to
enhance explanations. Answer to each part of the question should be short not
exceeding 300 words unless specified and to the point. Please go through the
guidelines regarding assignment given in the Programme Guide for the format of
presentation.
Question 1:
“The algorithm to detect a deadlock is based on the detection of a circular chain in the
wait-for-graph.” With the help of an example, explain the deadlock detection algorithm.
Question 2:
Question 3:
With the help of an example explain redundancy, update anomalies, insertion anomalies
and deletion anomalies.
Question 4:
List and explain the two integrity rules of relational model with the help of a suitable
example for each.
Question5:
Discuss how the two-phase locking protocol ensures serializability, but does not ensure a
deadlock-free situation.
7
Course Code : CS-15
Course Title : Relational Database Management Systems
Assignment Number : MCA (6)-15/Project/2008
Maximum Marks : 15
Last Dates for Submission : 30th October, 2008 (for Jul’ 08 session)
30th April, 2009 (for Jan’09 Session)
This is a Project Assignment. It consists of six questions. You may use illustrations
and diagrams to enhance the explanations. Please go through the guidelines
regarding assignment given in the Starter kit for the format of presentation.
Question 1:
(a) Write the appropriate SQL commands and relational algebraic query for the
following: (8 Marks)
(b) Convert the algebraic queries into an optimized graph (10 Marks)
Question 2:
A University maintains database tables about the faculty and the students. (12 Marks)
(i) Identify suitable access rights for the faculty, students and database
administrator.
(ii) Create the access matrix for (i) above.
(iii) Write the query modification statement for the students.
8
Question 3:
A national bank and an international bank decide to merge. Assume that both the
organizations use almost similar E-R diagrams. (20 Marks)
(i) Prepare the E-R diagram for the merged bank showing all entities, relationship,
specialization, aggregation and generalization in the diagram.
(ii) Create tables and identify primary keys, foreign keys and all types of dependencies
Question 4:
Consider the following relations and the set of Function Dependencies(FDs):
SHIPMENT (ship_id, S_capacity, S_date, cargo, amount)
FDs are as follows:
Ship_id S_capacity
Ship_id, S_date cargo
Cargo, S_capacity amount
Quesiton 5:
Check the conflict-serializability of the following schedule by drawing precedence –
graph: (15 Marks)
T1 T2
read-item(X) ;
X:= X-N; read-item(X);
X = X+ M;
write-item(X);
read-item(Y)
write-item(X);
Y: = Y+N;
write-item(Y);
Question 6:
What problems occur in the database system when transactions do not satisfy ACID
properties? Explain explicitly using suitable examples (wherever necessary)
(15 Marks)