Ds Using C Imp Questions
Ds Using C Imp Questions
SET:1
1) Section - A is Compulsory.
2) Attempt any Four questions from Section–B.
Section –A
1. Write short not e on:
a. What is an Algorithm?
b. What is array of pointers?
c. What are various operations on Strings ?
d. What are linked List?
e. What is linked representation of sparse Matrix?
f. Differentiate between Postfix and Prefix notation .
g. What is a priority Queue?
h. What is dequeue?
i. What are Binary search Tree?
j. What is sorting?
Section –B
2. Discus the various common matrix operations . Elaborate your answer with
suitable programs in C.
4. What are circular linked lists? Explain the dulcet(), cirq-display function
associated with circular linked lists.
SET:2
Time : 3 Hrs.
INSTRUCTION TO CANDIDATES :
1. SECTION-A is COMPULSORY consisting of TEN questions carrying
TWO marks each.
2. SECTION-B contains SIX questions carrying TEN marks each and
students has to attempt any FOUR questions.
SECTION-A
l. Answer briefly :
(a) What is a data structure? Mention the various types of data structures.
(b) What is an array? Give the formula to find the address of a particular location
in the array.
(c) What is a circular queue? How it differs from linear queue?
(d) Give the postfix form of an expression: (a - b * c + d) / (e + f)
(e) What is a doubly linked list?
(f) Give the linked memory representation of a binary tree.
(g) What is a sparse matrix?
(h) Mention any two applications of linked lists.
(i) Mention any two applications of stack.
(j) What is the brute force approach?
SECTION-B
SET:3
Time : 3 Hrs.
INSTRUCTION TO CANDIDATES :
1) Section - A is Compulsory.
2) Attempt any Four questions from Section–B.
Section –A
Q. 1. (a) List out the areas in which data structures are used?
(b) Which data structure is used to perform recursion?
(c) What are sparse matrices?
(d) Write the complexities of (i) Bubble sort (ii) Selection sort.
(e) Why are queues called FIFO data structure?
(f) Define AVL trees.
(g) What are the different ways to traverse a binary tree?
(h) What is time space trade off?
(i) Give some applications of arrays as data structure.
(j) Differentiate between stack and queues.
Section-B
(b) How an array can be used to represent a string? Give three string related
function.
Q. 6. (a) Differentiate between circular and double queue? Which one is better and
when?
Q. 7. (a) Write an algorithm for Bubble sort? Sort the following elements: 24, 56, 13,
89, 42.
SET:4
Time : 3 Hrs.
INSTRUCTION TO CANDIDATES :
1) Section - A is Compulsory.
2) Attempt any Four questions from Section–B.
Section –A
1. Write briefly:
a. Write 5 basic characteristics of an algorithm.
b. What is the brute force approach?
c. What is an array of pointers?
d. Write the function to copy one string into another.
e. What is polish notation?
f. What is row-major and column – major order?
g. Write the application of binary trees.
h. How is binary search better then the linear search?
i. Draw the logical diagram of a doubly linked list.
j. What are self referential structures?
Section –B
2.
a. Define best-case, worst –case and average-case complexity of an algorithm
what is time space trade off?
b. What are the various notations to express the time and space complexity?
5.
a. Write the overflow and underflow conditions for a circular queue using
diagrams.