Data Structure Questions: 21 Let Us Take A Tree With 5 Nodes (N 5)
Data Structure Questions: 21 Let Us Take A Tree With 5 Nodes (N 5)
Data Structure Questions: 21 Let Us Take A Tree With 5 Nodes (N 5)
2. List out the areas in which data structures are applied extensively?
3. What are the major data structures used in the following areas : RDBMS,
Network data model & Hierarchical data model.
4. If you are using C language to implement the heterogeneous linked list, what
pointer type will you use?
7. What are the notations used in Evaluation of Arithmetic Expressions using prefix
and postfix forms?
Null Branches
1
i ii iii iv v
14. List out few of the applications that make use of Multilinked Structures?
16. What is the type of the algorithm used in solving the 8 Queens problem?
18. What is the bucket size, when the overlapping and collision occur at same time?
19. Traverse the given tree using Inorder, Preorder and Postorder traversals.
Given tree:
A
B C
D E F G
H I J
2
20. There are 8, 15, 13, 14 nodes were there in 4 different trees. Which of them could
have formed a full binary tree?
21. In the given binary tree, using array you can store the node 4 at which location?
2 3
4
At location 6
5
1 2 3 - - 4 - - 5
where LCn means Left Child of node n and RCn means Right Child of node n
65 70 75 80 85 60 55 50 45
23. For the given graph, draw the DFS and BFS?
BFS: AXGHPEMYJ
DFS: AXHPEYMJG
3
24. Classify the Hashing Functions based on the various methods by which the key
value is found.
25. What are the types of Collision Resolution Techniques and the methods used in
each of the type?
26. In RDBMS, what is the efficient data structure used in the internal storage
representation?
27. Draw the B-tree of order 3 created by inserting the following data arriving in
sequence – 92 24 6 7 11 8 22 4 5 16 19 20 78
11 -
5 7 19 24
4 - 6 - 8 - 16 - 20 22 78 92
28.Of the following tree structure, which is, efficient considering space
and time complexities?
(a) Incomplete Binary Tree
(b) Complete Binary Tree
(c) Full Binary Tree
30. Does the minimum spanning tree of a graph give the shortest distance between
any 2 specified nodes?
31. Convert the given graph with weighted edges to minimal spanning tree.
600
1 3 200
612
410 310
2985 5
400
2 4
1421
4
32. Which is the simplest file structure?
(a) Sequential
1 3
(b) Indexed
(c) Random
200
612 310
410 List is linear or Non-linear data structure?
33. Whether Linked
2 4 5
34. Draw a binary Tree for the expression :
A * B - (C + D) * (P / Q)
* *
A B + /
C D P Q
35. For the following COBOL code, draw the Binary tree?
01 STUDENT_REC.
02 NAME.
03 FIRST_NAME PIC X(10).
03 LAST_NAME PIC X(10).
02 YEAR_OF_STUDY.
03 FIRST_SEM PIC XX.
03 SECOND_SEM PIC XX.
5
6