IndiaStudyCenter.com
Colleges & Universities | Distance Education | Admission Notifications | Entrance Exams | Course Syllabus | Question Papers
Home / Test Papers / IGNOU / CS04 Data Structures through C and PASCAL
CS04 Data Structures through C and PASCAL June 2005
Ask a question
Print this page
IGNOU CS-04

CS-04 Test Papers

IGNOU MCA

About IGNOU MCA Course

IGNOU MCA Syllabus

IGNOU MCA Assignments

IGNOU MCA Test Papers

IGNOU Programs

IGNOU

Courses, Admissions & Eligibility

Admission to BA International Hospitality Administration - 2008-09 Session

Admission Procedure & Schedule

Colleges, Faculties & Departments

Who's Who at the University

Re-Admission Procedure

Study Centres in India

Partner Institutions outside India

Syllabus

IGNOU Test Papers (by Course)

IGNOU Test Papers (by Paper code)

Assignments

IGNOU Exam Timetables

Notifications, Circulars & Announcements 2008

Events, Seminars & Workshops

Examination Results

IGNOU Improvement tests

Test Papers / Previous Question Papers of IGNOU CS04 Data Structures through C and PASCAL June 2005

PGDCA / MCA (I Yr)
Term-End Examination

June, 2005

CS04 : Data Structures through "C" and "PASCAL"

Time: 2 hours
Maximum Marks: 60

Note : There are five questions in this paper Question No. 1 is compulsory. Answer any three questions from the rest. All algorithms should be written nearer to 'C' or Pascal Language.

1. (a) Write an algorithm to convert an lnfix expression into Postfix expression. Also convert the following Prefix expression into a Postfix expression:
(i) // * + ABCDE
(ii) - + A * B/CDE (10)

(b) Write an algorithm to implement bubble sort, and sort the following list in ascending order by using the algorithm. (10)
14, 11, 3, 15, 18, 9

(c) Give three applications of Trees. (3)

(d) Define the following terms with a suitable example of each: (7)
(i) Tree
(ii) Depth of a Tree
(iii) Height of a Tree
(iv) length of a Tree
(v) Forest
(vi) Leaf node
(vii) Degree of a Tree

2. (a) Design an algorithm to implement a Deque using Arrays. (5)

(b) Find a minimum cost spanning tree of the following graph using PRIM'S algorithm. (5)
-----DIAGRAM-----

3. (a) L1 and L2 are two singly linked lists which are already sorted. Now, write an algorithm to concatenate L1 and L2. Ensure that the concatenated list is sorted. (5)

(b) Write a function that returns the height of an AVL tree. (5)

4. (a) Construct a Binary tree from the given Preorder as well as lnorder traversals:
Preorder * - + E AB + CD
Inorder E + A - B * C + D (5)

(b) Write an algorithm that accepts two singly linked lists L1 and L2. lt should print L3, where L3 is a singly linked list and L3 = L1 ∩ L2. (5)

5. (a) What is a 'heap' ? Write an algorithm for the insert as well as delete heap operations. (7)

(b) List at least 3 differences between Arrays and Pointers. (3)

6. (a) Explain the following types of file organization techniques: (6)
(i) Sequential File organization
(ii) Indexed Sequential File organization
(iii) Direct File organization

(b) Write a recursive algorithm to generate a fibonacci sequence upto the nth term, where n is any integer. (4)

Most popular pages

Business Schools - Engineering Colleges - Medical & Nursing Admissions - BEd in Distance mode - Journalism & Media Studies - Forensic Science

Search this site

Enter a detailed keyword. Ex: Question Papers of IGNOU MCA Ist Semester