data structure PYP
data structure PYP
4th Sem. / Computer Note: Very Short answer type questions. Attempt any
ten questions out of twelve questions. (10x2=20)
Subject : Name: Data Structures using C
Q.11 Differentiate between variable and constant.
Time : 3 Hrs. M.M. : 100
(CO3)
SECTION-A Q.12 What do you mean by top down design.
Note:Objectives type questions. All questions are (CO2)
compulsory. (10x1=10) Q.13 What is meant by heap. (CO4)
Q.1 Data structure means_______. (CO2) Q.14 Write down two applications of stacks. (CO3)
Q.2 Define data type. (CO3) Q.15 What are circular queues. (CO3)
Q.3 Define the terms siblings. (CO5) Q.16 Give the use of recursion. (CO2)
Q.4 Write the use of pointers. (CO3) Q.17 Write the purpose of avail list in a linked list.
Q.5 Tree is a _______data structure (liner/nonliner). (CO3)
(CO5) Q.18 Define structured programming. (CO2)
Q.6 Define leaf node. (CO5) Q.19 Name any three operations performed on linked
Q.7 An array may be a collection of similar data list. (CO3)
(True/false). (CO3) Q.20 Define path of a tree. (CO5)
Q.8 What is meant by an index of an array.(CO3) Q.21 Name three sorting algorithms. (CO6)
Q.9 Variable that stores the address of another Q.22 Define binary search. (CO6)
variable is called_____. (CO3)
(1) 170842/120842 (2) 170842/120842
www.hsbteonline.com
SECTION-C SECTION-D
Note:Short answer type questions. Attempt any eight Note:Long answer type questions. Attempt any three
questions out of ten questions. (8x5=40) questions out of four questions. (3x10=30)
Q.23 Write the applications of linked list. (CO3) Q.33 Explain in detail various operations associated
with linked list. (CO3)
Q.24 Explain in brief various types of arrays. (CO3)
Q.34 Write a program in C for multiplication of two
Q.25 Differentiate between stack and queue. (CO3)
matrices. (CO1)
Q.26 Differentiate between prefix and postfix
Q.35 Discuss the quick sort algorithm with an
expression. (CO3)
example. (CO6)
Q.27 Write an algorithm to PUSH an element into the
Q.36 Write short note on the following: (CO3)
stack. (CO1)
(a) Doubly linked list.
Q.28 Write a program to print factorial of a number
using recursion. (CO2) (b) Application of queues.
Q.29 When does underflow condition comes in data
structure. (CO3)
Q.30 What is meant by complete binary tree. (CO5)
Q.31 Differentiate between linked list and
array.(CO3)
Q.32 Write an algorithm to delete an element from
array. (CO1)
www.hsbteonline.com
No. of Printed Pages : 4 Q.9 Give the post fix notation of the given infix
Roll No. .................. 170842/120842/30833 notation. A +B / C - D (CO-4)
Q.10 Each node of a binary tree can have at most
4th Sem. / Trade : Computer Engg. ______________ children. (CO-5)
Subject : Data Structure using C SECTION-B
Note: Very Short answer type questions. Attempt any
Time : 3 Hrs. M.M. : 100 ten parts 10x2=20
SECTION-A Q.11 Define Algorithm (CO-1)
Note:Objectives questions. All questions are Q.12 Name any four linear data Structures (CO-1)
compulsory (10x1=10) Q.13 Define linked list. (CO-3)
Q.1 The identifier whose value does not change Q.14 What are the various operations that can be
during execution of program is called ________ performed on an Array. (CO-2)
(CO-1)
Q.15 Give the formula for calculating the address of
Q.2 For a linear array A [15, 16, 27, ..............., 25], an element in column Major form
Find the total number of elements. (CO-2) representation of array. (CO-2)
Q.3 When the function calls itself it is called Q.16 Give the node structure of a linked list. (CO-3)
____________ (CO-4)
Q.17 Define Queue. (CO-4)
Q.4 Linked list is a ___________ data Structure.
(CO-3) Q.18 Give two applications of a stack. (CO-4)
Q.5 Node of a linked list contains _________ and Q.19 Define Complete Binary Tree. (CO-5)
____________ parts. (CO-3)
Q.20 Define Degree of a Tree (CO-5)
Q.6 Expand the term LIFO __________ (CO-4)
Q.21 What is the precondition for performing binary
Q.7 Deletion operation in a Stack is called search operation on a given list of elements.
_______________ (CO-4) (CO-6)
Q.8 Give an example of sorting method which uses Q.22 What are the advantages of Doubly Linked List.
partitioning. (CO-6) (CO-3)
(1) 170842/120842/30833 (2) 170842/120842/30833
www.hsbteonline.com
SECTION-C Q.31 Give differences between sequential search
and binary search. (CO-6)
Note:Short answer type questions. Attempt any eight
questions. 8x5=40 Q.32 Sort the following list of elements using bubble
sort. Show result after each step. (CO-6)
Q.23 Explain the various types of data structures.
(CO-1) 6 10 2 9 1 5 7
Q.24 Give five differences between a Array and a SECTION-D
Linked List. (CO-2)
Note:Long answer type questions. Attempt any three
Q.25 Explain linear and non linear data structures. questions. 3x10=30
(CO-1)
Q.33 What are different types of Arrays? Explain how
Q.26 Give algorithm for adding a element in the element of arrays are stored in memory?
beginning of the linked list. (CO-3) (CO-2)
Q.27 Define Array. Give algorithm for traversing an Q.34 Explain Sequential search technique with
array. (CO-2) suitable example? Give algorithm. (CO-6)
Q.28 Give algorithm for deleting an element form the Q.35 Convert the following expressions into postfix
stack. (CO-4) notation using Stack (CO-4)
Q.29 What is the limitation of a linear queue. How is it A + B * C + D / E -F
removed. (CO-4)
Q.36 Write short note on (CO-1)
Q.30 Give inorder, postorder and preorder traversal
of the following tree. (CO-5) a) Structured programming
b) Tower of Hanoi
A
B C
D E F
www.hsbteonline.com
No. of Printed Pages : 4 j) Write one difference between static and
Roll No. .................. 120842 dynamic memory allocation.
k) Write the purpose of avail list in a linked list.
4th Sem. / Computer
Subject : Data Structure Using C l) What is under flow?
m) What do you mean by searching.
Time : 3 Hrs. M.M. : 100
n) Define complexity of an algorithm
SECTION-A o) Why tree structure is known as a non-linear
Note:Very Short Answer type questions. Attempt any data structure?
15 parts. (15x2=30) p) Give formula to calculate the size of one
Q.1 a) Define primitive data structure. dimensional array.
b) Various that stores the address of another q) What is the significance of top in stacks.
variable is called _____________. r) Define column major order.
c) FIFO stands for ____________.
d) “Two dimensional array has two subscript”. SECTION-B
This statement is true or false.
Note: Short answer type questions. Attempt any ten
e) Deque stands for __________ parts 10x4=40
f) What is root node. Q.2 i) Write short note on:
g) Define height of a tree. a) Top down approach.
h) What is the use of header node. b) Bottom up approach.
i) “The last node of circular linked list contains ii) Distinguish between data structure and
the address of first node”. This statement is data type.
true or false.
(1) 120842 (2) 120842
iii) Give the post order expression of A*B+C/D. SECTION-C
iv) How elements of a queue can be removed . Note:Long answer type questions. Attempt any three
questions. 3x10=30
v) Explain various types of trees.
Q.3 Explain heap sort along with its algorithm.
vi) Differentiate between linear search and
binary search. Q.4 Explain how you will search an element from
binary search tree.
vii) Write down the representation of linked list
in memory. Q.5 What is recursion? Write an algorithm to find
factorial of a no. using recursion.
viii) What do you mean by variable. Explain the
difference between local variable and Q.6 Describe the various operations performed on
global variable. data structure.
ix) Explain dequeue in brief Q.7 Differentiate between the following.
x) What is bubble sort. Write its advantages i) Iteration and recursion
and disadvantages .
ii) Linear data structure and non-linear data
xi) Write down the post order tree traversal structure.
algorithm.
xii) What are binary search trees? Write down
its properties. Also give its advantage.
xiii) How an element is deleted from a doubly
linked list. Explain with an example.
xiv) What is doubly linked linked list. What are
its applications.
xv) How two dimensional array are stored in
memory.
(3) 120842 (2060) (4) 120842