4
SET - 1 MCA (Revised) Term-End Practical Examination December, 2009 04113 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 for 5 marks. SECTION - A : Data and File Structures Write and run a program in C that reverses a string using a stack. Use this program to 10 reverse the phrase "DISTANCE LEARNING". You must implement stock operations as functions. Write and run a program in C that uses the stack functions, created in question 1 to 10 evaluate a postfix expression. 2 5 + 6 5 * 7 + + MCSL-025/ S1 1 P.T.O.

SET - Indira Gandhi National Open University papers Dec... · Term-End Practical Examination December, 2009 04113 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING,

  • Upload
    others

  • View
    2

  • Download
    0

Embed Size (px)

Citation preview

Page 1: SET - Indira Gandhi National Open University papers Dec... · Term-End Practical Examination December, 2009 04113 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING,

SET - 1

MCA (Revised)

Term-End Practical Examination

December, 2009 04113

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 for 5 marks.

SECTION - A : Data and File Structures

Write and run a program in C that reverses a string using a stack. Use this program to 10reverse the phrase "DISTANCE LEARNING". You must implement stock operationsas functions.

Write and run a program in C that uses the stack functions, created in question 1 to 10evaluate a postfix expression.2 5 + 6 5 * 7 + +

MCSL-025/ S1

1 P.T.O.

Page 2: SET - Indira Gandhi National Open University papers Dec... · Term-End Practical Examination December, 2009 04113 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING,

SECTION - B : Networking

Perform the practical on UNIX/LINUX/Windows 2000. In case you do not have sufficientaccess rights 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) pathping (b) nslookup

(c) hostname (d) verifier

Perform the following tasks : 10

Get the list of users presently active. Show this list in a sorted order.

Create a file named test.txt with at least two lines of content. Copy this file toanother directory.

Run a process in the background. Show all the processes that are running in thebackground.

Show the use of telnet. Write the problems that you may encounter duringconnection with remote machine.

3. Configure IPsec policy and rules for transport mode on the local computer. 6

MCSL-025/ S1 2

Page 3: SET - Indira Gandhi National Open University papers Dec... · Term-End Practical Examination December, 2009 04113 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING,

SECTION - C : DBMS Lab

1. Consider the following relations for a study centre :Student (Enrolment No, st_name, st_telephone, prog_code)Book-Adopted (course code, Book_ISBN)Programme (prog_code, course code)The student enrols in a programme. A programme has fixed number of courses andeach course can adopt a book. Perform the following tasks for the centre :

Create the tables identifying keys, data types and constraints, if any. Enter about 83-5 sets of data in each table.Write and run the following queries using SQL : 12

List all the courses that a student, whose enrolment number is given, willhave to take.List those books that have been used for more than one course.Find the number of courses a student has to do for each programme.Find the student who has the same telephone number as that of studentwhose enrolment number in "S001".

MCSL-025/ S1

3 P.T.O.

Page 4: SET - Indira Gandhi National Open University papers Dec... · Term-End Practical Examination December, 2009 04113 MCSL-025 : LABORATORY COURSE (FOR DATA AND FILE STRUCTURES, NETWORKING,

SECTION - D : Java Programming

Write a program in JAVA that creates a class Rectangle having suitable data fields. 10The class should have methods for setting the values of the data fields and a method tocalculate the area of the rectangle. Write the appropriate main method to demonstratethe use of this class.

Create and run an applet in JAVA that accepts three numbers and displays the three 10numbers in ascending order.

- o 0 o -

MCSL-025 / S1

4 5,000