12
7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 1/12 No. of Printed Pages : 4 7: Time : 3 Hours Note : There are Maximum Marks : 100 four sections in this paper. Each section is of 45 minutes duration. ttempt only those sections in which you are not yet successful Answer all the questions in each section. Each section carries 20 marks and the viva voce for each section is of 5 marks separately. SECTION A Data and File Structures 1• Write a C program to implement stack data structure with all its functions. 0 MCSL-025 P)/51 MASTER OF COMPUTER APPLICATIONS Revised) MCA) Term-End Practical Examination June, 2014 MCSL 025 P)/S1 : LABORATORY COURSE FOR DATA AND FILE NETWORKING, DBMS LAB AND JAVA P ROGRAMMING) STRUCTURES, P.T.O.

MCSL-025 S1 S2 S3 S4.pdf-14j

Embed Size (px)

DESCRIPTION

previous

Citation preview

Page 1: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 1/12

No. of Printed Pages : 4

7:

Time : 3 Hours

Note : There are Maximum Marks : 100foursections in this paper. Each section is of

45 minutes duration.ttempt only those sections in which you arenot yet successful Answer all thequestions in each section. Each section carries 20 marks and the viva voce for

each section is of 5 marks separately.

SECTION AData and File Structures

1• Write a C program to implement stack data structure with all itsfunctions. 0

MCSL-025 P)/51

MASTER OF COMPUTER APPLICATIONS Revised)

MCA)

Term-End Practical Examination

June, 2014

MCSL 025 P)/S1 : LABORATORY COURSE FOR DATA AND FILE

NETWORKING, DBMS LAB AND JAVAP ROGRAMMING)

STRUCTURES,

P.T.O.

Page 2: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 2/12

SECTION B

Networking

ou do not have suffi cient

Perform the practical on LINO C U NIX I W indows 2000. In case y that task.rights to perform a task then write all the steps needed to perform

4

2.Run the following com mands and w rite the uses of each comm and :

a) ping

b) rep

c) rsh

d) chkdsk

3. Perform the following tasks :a) Find the so rted list of active users.

b) Con figure TCP /IP filter.

c) Install network printer.

4.Show all the steps to install Rockw ell Protocol Interface RPI).

2MCSL-025 P)/S1

Page 3: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 3/12

SECTION C

DBMS Lab

5. a) Create the following table with proper data type for all the fields. The keyfield is underlined. Insert 10 meaningful records in the table.

BOOK (ISBN, Title, Author, Publisher, Pages, Price)

(b) Answer the following queries using SQL on the above table : 2

i) List all the books whose pages are more than 250 and price is lessthan 200.

ii) Find the name of the author and the publisher of the book withISBN = 12746923.

iii) List all the titles and their price, pub lished by ANY BO OK Pvt. Ltd. .

MCSL-025(P)/S1 .T.O.

Page 4: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 4/12

SECTION D

Java Programming

6. Write a Java program to create two threads T1 and T2. Thread T1 is having

priority six and thread T2 is having default priority assigned to it. Implement

threads T1 and T2 in such a way that T1 prints table of 2 and T2 prints table

of 5. 0

MCSL-025 P)/S1 ,000

Page 5: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 5/12

No. of Printed Pages : 4I MCSL-025 P)/S2 I

MASTER OF COMPUTER APPLICATIONS Revised)

MCA)

1285erm-End Practical Examination

June, 2014

MCSL-025 P)/S2 : LABORATORY COURSE FOR DATA AND FILE STRUCTURES,NETWORKING, DBMS LAB AND JAVA PROGRAMMING)

Time : 3 Hours aximum Marks : 100

Note : here are four sections in this paper. Each section is of 45 minutes duration.Attempt only those sections in which you are not yet successful. Answer all thequestions in each section. Each section carries 20 marks and the viva voce for

each section is of 5 marks separately.

SECTION A

Data and File Structures

1. Write a C program to implement Binary Search algorithm. Find whether thevalue 25 is available in the following list, using this program : 0

20, 21, 21, 24, 25, 26, 27, 28, 40, 48, 50, 59, 100.

MCSL-025 P)/S2 .T.O.

Page 6: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 6/12

SECTION B

Networking

Perform the practical on LINU X I UN IX Windows 2000. In case you do not have sufficierights to perform a task, then w rite all the steps needed to perform that task.

2. Run the following comm ands and write the uses of each command :

(a) telnet

(b) netdiag

(c) rcp

(d) grep

3. Perform the following tasks :

(a) Create a Cron job that sends the message Keep on working to all theactive users after every 30 minutes.

(b) Configure a window s client as a VPN client.

(c) Find all the lines in a file that contain the words UN IX or LINUX . •

4. Show all the steps for configuring the Internet Conn ection Firewall (ICF).

MCSL-025(P)/S2

Page 7: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 7/12

SECTION C

DBMS Lab

5. a) Create the following tables with proper data type for all the fields. The keyfield is underlined. Insert 10 meaningful records in each table.

TEACHER (T_id, D_id, Subject, Name, Date_of birth, Years_of Exp)

DEPARTMENT (D_id, Address, D_Name, Total_No_of Students)

(b) Answer the following questions using SQL on the above table : 2

(i) List the Name. and D_Name of the teachers of Subject Computerwho are having more than 2 years of experience.

(ii) List the Name and Subjects of the teachers who are associated withthe department where more than 200 students are registered.

(iii) List the Name and Date_of birth of all the Physics teachers.

MCSL-025(P)/S2 .T.O.

Page 8: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 8/12

SECTION D

Java Programming

6. Write a Java program to create an applet which takes area of a circle as inputand draws the circle in blue color.

MCSL-025(P)/S2 ,000

Page 9: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 9/12

MCSL-025 P)/S3o. of Printed Pages : 4

MASTER OF COMPUTER APPLICATIONS Revised)

MCA)

Term-End Practical Examination

June, 2014

MCSL-025 P)/S3 : LABORA TORY COURSE FOR DATA AND FILE STRUCTURES,NETWORKING, DBMS LAB AND JAVA PROGRAMM ING)

Time : 3 Hours aximum Marks : 100

Note : here are four sections in this paper Each section is of 45 minutes duration

Attempt only those sections in which you are not yet successful. Answer all thequestions in each section. Each section carries 20 marks and the viva voce for

each section is of 5 marks separately.

SECTION A

Data and File Structures

1. Write a C program to create Singly Linked List with all its methods. Also write amethod to count the number of nodes in this Linked List. 0

MCSL-025 P)/S3 .T.O.

Page 10: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 10/12

SECTION B

Networking

Perform the practical on LINUX/ UNIX/Windows 2000. In case you do not have sufficient

rights to perform a task then write all the steps needed to perform that task.

2. Run the following commands and write the uses of each command :

(a) ftp

(b) hostname

(c) ipconfig

(d) drivers

3. Perform the following tasks : 0

(a) Find your Ethernet Physical Address.

(b) Add a new user in a group and define permissions.

(c) Send a mail to a group and to yourself.

(d) Set the execution time for a job to run it automatically after 5 minutes.

4. Perform encryption of a file on Windows 2000 server.

MCSL-025(P)/S3

Page 11: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 11/12

SECTION C

DBMS Lab

5. a) Create the following table with proper data type for all the fields. The keyfield is underlined. Insert 10 meaningful records in the table.

STUDENT (S_id, Name, Dep_Name, Age, Address, Programme, Marks)

(b) Answer the following questions using SQL on the above table : 2

(i) List name and address of all the students who are more than 25 yearsold and registered in MCA programme

(ii) Find Department name and Programme in which student withS_id = 1200012340.

(iii) List the name and address of all the students who are registered in

BCA programme and having more than 75 marks.

MCSL-025(P)/S3 .T.O.

Page 12: MCSL-025 S1 S2 S3 S4.pdf-14j

7/21/2019 MCSL-025 S1 S2 S3 S4.pdf-14j

http://slidepdf.com/reader/full/mcsl-025-s1-s2-s3-s4pdf-14j 12/12

SECTION D

Java Programming

6. W rite a Java program to imp lemen t the following class hierarchy :

Bank Account

Saving_Account urrent_Account Fixed_Deposit

Your im plementation should include the following :

(i) Proper con structors for all the classes.

(ii) A polymorphic function Find_Balance ) to find the available balance in

account.(iii) Proper mechan ism for exceptions handling.

MCSL-025 P)/S3 3,000