MASTER OF COMPUTER APPLICATIONS (MCA)
(5 th SEMESTER) ASSIGNMENTS JANUARY 2010 & JULY 2010 (MCS-OSl, MCS-OS2, MCS-OS3, MCSL-OS4, MCSE-003, MCSE-004, MCSE-Oll)
] SCHOOL OF COMPUTER AND INFORMATION SCIENCES INDIRA GANDHI NATIONAL OPEN UNIVERSITY MAIDAN GARHI, NEW DELHI - 110068
Course Code Course Title Assignment Number Maximum Marks Weightage Last Date of Submission
MCS-051 Advanced Internet Technologies M CA(5)/OSll Assign/20 10
100 25% 15 th April, 2010 (For January Session) 15 th October, 2010 (For July Session)
There are six questions in this assignment of 80 marks. T he rest 20 marks are for viva-voce. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentatio n. QJ : Write a program using Servlet, JSP and JDBe fo r banking application where the new bank customer can register and opt fo:- different bank accounts such as current account, saving account The application should capture the customer details and depending upon the type of account ,it should ask about their employment details(e.g. for saving account, there should be salary details and for commercial account there should be business turnover. Put the necessary validation checks also. (15 Marks)
Q2: Create a table ofa award list ofMCA slUdent as an XML document. T he table must have the name of the student, list of courses, TEE marks , assignment marks and the final status (SC/NC) (10 Matks)
Q3: Write a simple temperature conversion web application which must conta in three components:
(i) An input HTML page that contain an HTML form. On this form the user enters a number of degrees, selects an action to convert from Celsius to Fahrenheit or from Fahrenheit to Celsius and then click a submit button. to do the conversion (ii) A servlet that processes the form and stores a lavaBean with the temperature request scope.
information in the
(iii) A lSP that prints out a message such as 22 degree Celsius is an approximately equal to 71.6 Fahrenheit or 32 degree Fahrenheit is approximately equal to 0.0 Celsius and provides a link back to the input form (15 Marks)
Q4:
Write a MDB (Message Driven Bean) for news agency that has to capture the data from various news sources. The newly written MDB should accept the XML format of the news. The XML dala needs to be parsed and stored in the database .. The news formal is as follows: (15 Marks)
<news _ id>
</news_id>
<source>
</source>
<date>
</date>
<type_of _ news> </type-of-news>
<news_content> </news_content>
Q5:
Differentiate between the following: (i)
GET and POST
(ii)
(ii) Servlet engines and Servlet chaining
(ii i)
(iii) Session and cookies
(iv)
XML and SGML
(v)
Session bean and entity bean (15 Marks)
Q6:
Write code to use a form to authenticate a client using the session information stored in the HTTP sess ion object in the web server (10 Marks)
Course Code Course Title Assignment Number Maximum Marks Weightage Last Date of Submission
MCS-052 Principles of Management and Information Systems MCA(5)/052/Assign/2010 100 25% 15'h April, 2010 (For January Session) 15'h October, 2010 (For July Session)
This assignment has seven questions. Answer all questions, carries 80 marks. Rest 20 marks are for viva voce. You' may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Answer to each part of the question should be confined to about 350 words. Question I:
Explain what yo u mean by Management Information System (MIS). Discuss the role of MIS in an organization? Describe the important components of MIS. (15 Marks)
Question 2:
Define entrepreneurship. Why is it import to economic development? List the primary steps in starting a new Business? How the Information Systems can be used and implemented for the healthy growth of a Business. (15 Marks)
Question 3 :
What are Artifi c ial In te lligence Systems and how can they be categorized? Also, discuss the role of these AI systems in the Management and Marketing. (10 Marks)
Question 4 :
Differentiate between Enterprise Resource Planning and Supply Chain Management (SCM). Disc uss so me of the important features ofERP. (10 Marks)
Question 5:
Explain some of the security threats to information system s? How does encryption ensure data sec urity? (10 Marks)
Question 6:
List some the important Business Intelligence Tools currently available. Also, explain different the role of business intelligence tools in different management levels. (10 Marks)
Question 7:
Write short notes on the following:
(i) (ii)
Customer Relationship Management OLAP in decision-making (10 Marks)
Course Code Course Title Assignment Number Maximum Marks Weightage Last Dates of Submission
MCS-OS3 Computer Graphics and Multimedia MCA(S)/OS3/Assign /2010 100 25% lS'h April, 2010 (For January Session) 15th October, 2010 (For July Session)
There are four questions in this assignment. Answer all the questions. 20 Marks are for viva-voce. You may use illustrations and diagrams to enhance explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Question 1: a)
Explain the following terms in the context of Computer Graphics: Vector Scan Display (ii) Visualisation (iii) Bit planes (iv) Computer Simulation (v) OpenGL
(5 Marks)
0)
b)
Write the Bresenham line generation algorithm for positive slope. Explain the use of this algorithm. Use this algo rithm to draw a line with endpoints (2, 1) and (6, 4) Comment of the quality of the line that you have drawn using the algorithm. (5 Marks)
c)
Consider that a clipping window ABCD has the following coordinates: A(O,O), B(20, 0), C(20, 20) and D(20, 0). Consider the following three line segments: XY with endpoints (-5, 0) and (25, 30); MN with endpoints (30, 35) and (20, 30); and OP with endpoi nts (10, 10) and (25, 20). Use the Cohen Sutherland line clipping Algorithm to find the visible portions of the three line segments in the clipping window. Explain each of the steps used to determine the visible portion of the line in the algorithm. (5 Marks)
d)
Consider a regular hexagon ABt:;DEF is only partly visible in the window ABDE. Show or explain how Sutherland - Hodgman polygon clipping Algorithm can be used on this case to find the visible portion of the hexagon in the window. (3 Marks)
e)
Write and explain the mid point ci rcle generation algorithm.
(2 Marks)
Question 2: a)
(
Explain the Homogeneous Coordinate Systel)l wi th the help of an example. Assume that a triangle ABC has the coo rdinates A(O, 0), B(4,4), C(2,2). Find the transformed coordinates when the triangle ABC is subjected to the clockwise rotation of 45째 about the origin and then translation in the direction of vector (1 , 0). You should represent the transformation using Homogeneous (5 Marks) Coordinate System.
d)
b)
A polygon has 4 vertices located at A (0, 0) B (5, 0), C (5, 5), D (0, 5). Apply the following transformations on the polygon: (i) Scaling and (ii) xy shear about the origin You must make and state suitable assumptions about scaling and shear factors used by you. (5 Marks) _ c) Exp lain the following projections with the help of an example. (i) Orthographic Projections (ii) Oblique Projections (iii) Isometric Projections (5 Marks) d) Find the principle van ishing points when the object is first rotated with respect to the X ax is by 30째 and Y axis by 60째, and then projected onto z = 0 plane, with the centre of projection being (0, 0, -10). Also define the term Vanishing point in the context of Comp uter Graphics. (5 Marks) Question 3: a)
What are the uses of Bezier Curves in Computer Graphics? Draw a Bezier curve having the control points as PI (0, 0), P2 (2, 5), P3 (5 , 9), P4 (10, 20). Calculate the coordinates of the points on th e cu rve corresponding to the parameter u = 0.2, 0.4, 0.6. Draw a rough sketch of the curve and show coordinates of various points on it? (5 Marks)
b)
Why do you need to use visible-surface detection in Computer Graphics? Explain Scan Line method along with the algorithm for the visible-surface detection with the help of an example. How scan line method is is different to z-buffer method? (5 Marks)
c)
Explain the following terms in the conttxt of computer Graphics using suitable diagram and lor mathematical equ at ions or one example. (10 Marks) (i) Phong Shad ing (ii) Diffuse Reflection (iii) Basic Ray Tracing Algorithm (iv) Surface of revolution (v) Equation ofa plane that passes through point r(O,O,O) and the normal to plane is given by N (1 ,0,-1)
Question 4:
a)
Explain the followin g with the help of an example or diagram and/or mathematical equation used (10 Marks) in the content of Computer Graphics and Multimedia (i) Zero Acceleration (ii) Sprite animation (iii) Computer Assisted animation (iv) Steps for creating animation (v) Negative Acceleration (vi) Features of animation hardware (vii) Features oran an imation software (vi ii) Any two uses of animation
d)
e
s)
Explain the following terms in the context of Multimedia giving one example wherever applicable! needed. (10 Marks) (i) Hypertext (ii) Virtual Reality (iii) JPEG Graphics and it's application (iv) Digital Sound versus Analogue so und (v) Any two Audio file formats (vi) Interlaced Scan for image capture (vii) Any two video file formats (viii) List of basic tools for creating and editing multimedia.
7
Course Code Course Title Assignment Number Maximum Marks Weightage Last Date of Submission
MCSL-OS4 Laboratory Course M CA(S)/LOS4/Assign/201 0 100 25% 30 lh April, 2010 (For January Session) 31 'I October, 2010 (For July Session)
This assignment has two parts I and II (Advanced Internet Technologies and Computer Graphics & Multimedia) and each part is for 20 marks. Answer all the questions. Lab record for all the respective sessions (given in the MCSL-OS4 Lab Manual) for each course carries 20 Marks each. Rest 20 marks are for viva voce. Please go through the guidelines regarding assignments given in the MCA Programme Guide for the format of presentation. Made assumptions if any while solving the problems and state them clearly. PART-I: MCS-OSI (Advanced Internet Technologies) Ql: Develop a web page using Servlet which ask for your name and address and print a message " We/camel Mr.lMiss. YOllr Name all this web page "'and show the current date and time on the top of web page. (5 Marks)
Q2: Write a JSP Program , which displays a web page containing two web links one for your profiling and other for the schedule of theory of practical classes of your Batch. When one click on link for getting your profile it goes to a JSP page which display your personal profile and by clicking on link for classes sched ul e another JSP page will open to show the schedule. (5 Marks)
Q3: Write a program using JDB C and JSP to display the computer books available in your Study Centres Library. Provide suitable options for issue/return of the books and sea rching and pupation in the library database. (5 Marks) Q4: Create an XML document for student's records at your Study Centre.
8
(5 Marks)
PART-II: MCS-053 (Computer Graphics and Multimedia)
Ql : Write a program in C/C++ using OpenGL to draw a circle of red colour inside of a triangle of blue co lour on a background of ye llow colour. (5 Marks) Q2 : Write a program in C or C++ to Cohen-Suth erland line clipping algori th m.
(5 Marks)
Q3: Write a program in CIC++ using OpenGL to draw a hard wire diagram as shown in figure given below. Use basic primitives of openGL. (5 Ma rks)
100
40
Q4: Write a program in CIC ++ using OpenGL to perform a 3-D imensional transformation, such as translation ,rotation and reflection, on a given rectang le. (5 Marks)
9
Course Code Course Title Assignment Number Maximum Marks Weight age Last Date of Submission
MCSE-003 Artificial Intelligence and Knowledge Management MCA(5)/E0031 Assign/2010 100 25% 30 th April, 2010 (For January Session) 31 st October, 2010 (For July Session)
This assignment has ten questions and carries 80 marks. The rest of the 20 marks are for viva-voce. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Question.1 Explain eac h of the following w. r. t. the discipline of A.!,: (i) (ii) (iii) (iv) (v) (vi)
A.!, problem Combinatorial problem Understanding Learning Uncertainty The Turing Test
(15 Marks)
Question.2 Write 3 LISP programs to: (i) (ii) (iii)
count the number of atoms in a list. find th e factorial of a given number. reverse the top路 level elements, elements in the inner lists of a given list. (15 Marks)
Question.3 Discuss state space representation for the following well-known problems: (i) (ii) (iii)
Travelling Salesman Problem Water-Jug Problem Human Cannibal River-Crossing Problem.
(15 Marks)
Question.4 Describe what 'Physical Symbol System Hypothesis' is. Further, critically examine (5 Marks) its validity, relevance and significance.
Question.S Compare backward reasoning & forward reasoning strategies in A.1.
(5 Marks)
Question.6 Briefly discuss rule-based representation, ofknowledge.
(5 Marks)
Question.7 Discuss limitations of expert system.
(5 Marks)
Question.8 What are 'heuristics' in A.!,? Explain.
(3 Marks)
10
Question.9 Enumerate 4 equali ty predicates in LISP.
(2 Marks)
Question.IO Write a LISP program to solve a quadratic equation ax' + bx + c ~ 0 having real coefficients a, b, c.
(10 Marks)
II
Course Code Cou rse Title Assignment Number Maximum Marks Weightage Last Date of Submission
MCSE-004 Numerical and Statistical Computing MCA(5)1E004/Assign/2010 100 25% 30'h April, 2010 (For January Session) 31 st October, 2010 (For July Session)
This assignment has four questions in all and carries 80 marks. The rest of the 20 marks are for viva-voce. Answer all the questions. You may use illustrations and diagrams to enhance the explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Question.! a) Solve th e equati ons:
20x, - 2X2 + 4X3
=
- XI -lOx, +X3
=-3
8
2x, + 3x 2 + 20x 3 = 7 (10 Marks)
using the LU deco mposition method.
I f-ru: s
12
b) Compute the integra l
1=
by applying Gauss' s Quadrature formula.
X
(1 0 Marks) Question.2 (a)
Write a program in C to find a root using Secant Method. Perform the five iterations to obtain the smallest positive root of the equati on I (x) = cos x + 2sin x + x' verifY your answer with the program written by you. (10 Marks)
(b)
Out of the three methods i.e. Secant method, Regula Falsi method and the Newton Raphson method which method is more efficient and why? Determine the efficiency or th e o rd er of these three methods? (10 Marks)
Question.3 a) Solve by Jaco bi 's method the following system of linear equations. 2Xl -X2
Xl
+ 2Xl
XI - X2
+ Xl -
=- 1
x) = 6
+ 2x)= -3 .
b) Solve the following systems using the Gauss elimination method (i)
(8 Marks)
XI - X2 + x) = 0, 2xI + 3X2 + X3 - 2><., =-7 3xI + Xz - Xl + 4x..= 12, 3x, - 5X3 + x, = 9
(ii)
+ X l = 5, + 3 X2 + 6x) = 6 4x, + x) + 3><.,= 7
3Xl XI
X3 + 5><.,= 8,
12
( 12 Marks)
Question.4 a) T he following table is given:
x
o
f(x) :
2
I 3
(8 Marks)
2
5
12
14 7
Find the interpolating polynomi al that fits this data . .
b) Evaluate the integral 1=
dx f-0 1+x I
using
(i) composite trapezoidal rule, (i i) composite S impson's rule, with 2, 4 and 8 equal subintervals.
(12 Marks)
Course Code Course Title Assignment Number Maximum Marks Weightage Last Dates for Submission
MCSE-Oll Parallel Computing MCA(3)fEOII/AssignI2010 100 25% 30 th April, 2010 (For January Session) 31" October, 2010 (For July Session)
There are ten questions in this assignment. Answer all questions. 20 Marks are for viva-voce. You may use illustrations and diagrams to enhance explanations. Please go through the guidelines regarding assignments given in the Programme Guide for the format of presentation. Question.1 Using Bernstein 's conditions, detect maximum parallelism between the instructions of the following code: (8 Marks) PI:X~ Y*Z
P2: P ~ Q + X P3: R~T+X P4: X ~ S + P P5:V~Q ! Z
Question.2 Discuss, along with diagram, an arithmetic pipeline for Multiplication of two 8-digit fixed numbers. (8 Marks) Question.3 Discuss important environment features for parallel programming.
(8 Marks)
Question.4 Exp lain the fo llowing: a) Concurrent and parallel executions. b) granularity ofa parallel system.
(8 Marks)
Question.S What are the advan tages of para liel processing over sequential computations? Also exp lains the (8 Marks) various leve ls of para llel processing. Question.6 a)What are vario us criteria for classification of para tiel computers? b) Define and discuss instruction and data streams.
(8 Marks)
Question.7 Differentiate between UMA, NUMA and COMA. Also explain loosely coupled systems and tightly coupled systems .
14
(8 Marks)
Question.8
What are the various rules and operators used in Handler's classification fo r various machine types? What is the base for structural classificat ion of parallel comp uters? (8 Marks) Question.9
Determine the dependency relations among the following instructions: II : a ~ b+c; 12: b ~ a+d; I3: e ~ aJf;
(8 Marks)
Question.IO a) Explai n dataflow computation model. b) Enumerate applications of parallel processing
(8 Marks)
15