4
SET - 2 MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING, DBMS LAB & JAVA PROGRAMMING) Time allowed : 3 hours Maximum Marks : 100 Note : There are four sections (Data and File Structures, Networking, DBMS Lab and Java Programming) in this paper. Each section is for 40 minutes duration. Attempt only those sections in which you are not successful as yet. Answer all the questions of a section. Each section carries 20 marks and the viva-voce of that section is of 5 marks. SECTION - A : Data and File Structures Write a program in C language, having appropriate functions, to implement a Dequeue 12 using Arrays. Write a program in C that finds the number of elements in a queue. 8 MCSL-025/ S2 1 P.T.O.

SET - 2 MCA (Revised) Term-End Practical Examination 00301 ... papers Dec... · MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR

  • Upload
    others

  • View
    8

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SET - 2 MCA (Revised) Term-End Practical Examination 00301 ... papers Dec... · MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR

SET - 2

MCA (Revised)

Term-End Practical Examination00301

December, 2009

MCSL-025 : LABORATORY COURSE (FOR DATA AND FILESTRUCTURES, NETWORKING, DBMS LAB & JAVA

PROGRAMMING)

Time allowed : 3 hours

Maximum Marks : 100

Note : There are four sections (Data and File Structures, Networking, DBMS Laband Java Programming) in this paper. Each section is for 40 minutesduration. Attempt only those sections in which you are not successful as yet.Answer all the questions of a section. Each section carries 20 marks and theviva-voce of that section is of 5 marks.

SECTION - A : Data and File Structures

Write a program in C language, having appropriate functions, to implement a Dequeue 12using Arrays.

Write a program in C that finds the number of elements in a queue. 8

MCSL-025/ S2

1 P.T.O.

Page 2: SET - 2 MCA (Revised) Term-End Practical Examination 00301 ... papers Dec... · MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR

SECTION - B : Networking

Perform the practical on LINUX/UNIX/Windows 2000. In case you do not have sufficient accessrights to perform a task, then write all the steps to perform that task :

Run the following commands and write the use of each command : 4(a) diskperf (b) nbstat

(c) drivers (d) chkdsk

Perform the following tasks : 10

Show all the TCP/IP settings.

Find the list of devices available in your computer. Also create one directory.

Add a user having the name Test, give it limited permissions.

Use vi editor to create a text file having at least 3 lines.

3. View information of a registry of windows 2000. Show the process of adding a value 6in registry. Save the registry to some text file.

MCSL-025/S2 2

Page 3: SET - 2 MCA (Revised) Term-End Practical Examination 00301 ... papers Dec... · MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR

SECTION - C : DBMS Lab

1. Consider the following relations for an Airlines :Airplane (AirplanelD, Total_no_seats, Airplane_type)Seat-Booking (CustomerlD, AirplanelD, Date_of_flight)Customer (CustomerID, cust_name, cust_phone)Perform the following activities for the Airline :(Make suitable assumptions, if any)

Create the tables with keys, data types and constraints, if any. Enter about 3-5 8

sets of data.Write and run the following queries using SQL : 12

List all the bookings of a customer whose name is "Ranjit".Find the number of bookings for a plane "A001" for the date 05 January2010.List the details of the plane for which customer "Ajit" have been booked forthe date 11 th January 2010.List the cust_name and cust_phone of the customers who have booked forthe date 01 st January 2010 on any plane.

MCSL-025/ S2

3 P.T.O.

Page 4: SET - 2 MCA (Revised) Term-End Practical Examination 00301 ... papers Dec... · MCA (Revised) Term-End Practical Examination 00301 December, 2009 MCSL-025 : LABORATORY COURSE (FOR

SECTION - D : Java Programming

Write and run a program in JAVA that contains a class array-string that stores a string 10of maximum 10 characters in an array. Create a constructor for the class. Also writea method to display the stored string. Write appropriate main ( ) method to demonstratethe methods of the class.

Create and run an applet in JAVA that accepts a number and finds if it is divisible by 107 or not.

- o 0 o -

MCSL-025/ S2

4 4,000