4
SET - 3 MCA (Revised) Term-End Practical Examination 01706 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 to create a binary tree. 10 Write a program in C language to count the number of leaves of a binary tree. 10 MCSL-025/ S3 1 P.T.O.

01706 - Indira Gandhi National Open University papers... · SET - 3 MCA (Revised) Term-End Practical Examination 01706 December, 2009 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE

  • Upload
    dominh

  • View
    216

  • Download
    0

Embed Size (px)

Citation preview

SET - 3

MCA (Revised)

Term-End Practical Examination 01706December, 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 to create a binary tree. 10

Write a program in C language to count the number of leaves of a binary tree. 10

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

SECTION - B : Networking

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

Run the following commands and write the use of each command : 4

(a) ipconfig (b) tracert(c) netdiag (d) rsh

Perform the following tasks : 10

Find the files (with full path) in your home directory whose names are startingwith alphabet "a" and redirect this output to a text file.Find the roundtrip delay to a website www.acm.org .Find all the lines in a file that has at least one decimal digit.Create a file using copy command. Open this file using vi editor for editing.

3. Configure the TCP/IP settings on your computer. Explain the purpose of each of the 6settings you have done.

MCSL-025/ S3 2

SECTION - C : DBMS Lab

1. Consider the following relations for a database that keeps track of business trips ofsales persons in a sales office :Salesperson (sid, sname, department)Trip (sid, triplD, departure_date, return_date)Expense (TripID, Account of, Amount)Please note that for a trip the salesperson may spend some amount on account of travelcost and some amount on account of stay at the destination. Perform the followingactivities for the sales office :

Create the tables from the relations giving keys, data types and constraints, if 8any. Enter about 3-5 sets of data in the tables.Write and run the following queries using SQL : 12

List the departure and return dates of all the trips made by the salespersonwhose name is "Sanjay".Find the total expenses incurred on the trip whose trip ID is "T001"Find the dates of all the trips made by the salespersons who are in thedepartment "x".Find the name of the person who has made maximum number of trips.

MCSL-025/ S3

3 P.T.O.

SECTION - D : Java Programming

Write a program in JAVA that stores the name and enrolment number of a student in 10a class students. The class should have a constructor and a method to display thestudent detail. Write the appropriate main for demonstrating the class.

Create and run an applet in JAVA that accepts an even number as input and prints the 10next five even numbers.

- o 0 o -

MCSL-025 / S3

4 3,000