CC-4 Data Structure
CC-4 Data Structure
CC-IV(R/B)
2022
Full Marks-60 Time: 3 Hours
Answer all the questions.
The figure in the right hand margin indicates marks.
(Data Structure)
1. Answer the question in one word. [1x8 = 8]
a. Is array a linear data structure or nonlinear data structure.
b. What is pointer?
c. Which function is used to allocate memory for linked list?
d. Linked list follows static allocation or dynamic memory allocation.
e. Which data structure is used in recursion?
f. Where queue is used?
g. What is the degree of a node if it contains 4 child nodes?
h. What is time complexity of bubble sort?
2. Answer any 8 questions in two to three sentences. [1.5x 8=12]
1
h. Find the preorder, in order and post order traversal of the given tree.
OR
b. Given an AVL tree. If 17 will be inserted to the tree then what is the AVL tree.
****************************