Professional Documents
Culture Documents
:Data
Structur
e
Index
1. Data structure basics
2. Algorithm Complexity Notations
3. Linked List
4. Stacks and Queues
5. Trees and Binary Trees
6. Binary Search Tree
7. Balanced Trees
8. Graphs
9. Applications of Graphs
10.Dynamic Storage Management
11.Searching and Sorting Techniques
12.File Structures
8 | Page
Unit 4
72.______ is a data structures in which insertion and deletion of items are made at
the one end.
(a) Stack
(b) Queue
(c) Array
(d) Two dimensional Array
73.____ is used to insert an item into a stack.
(a) Pop
(b) Insert
(c) Delete
(d)Push
74.Pop is used to delete an item from a stack.
(a) Delete
(b) Remove
(c) Pop
(d) Clear
75.In stack insertion and deletion can be done from
(a) Top
(b) Base Address
(c) Front
(d) Rear
76.Stack is a an ordered collection of items forming a list that is
(a) Last in first Out
(b) First in First Out
(c) Last in Last Out
(d) First in Last Out
77.Operation in stack affect
(a) Both end
(b) Single end
(c) Top end
(d) None
78.______ and ______ operation belongs to stack
(a) push and pop
(b) insert and delete
(c) Read and write
(d) all of the above
79.Initially top set to
(a) 1
9 | Page
11 | P a g e
Unit 5
98.A tree is a non-linear data structure
(a) tree
(b) Array
(c) Linked list
(d) Stack
99.A tree is a non-linear data structure that consists of a _____ and potentially many levels of
additional nodes that form a hierarchy.
(a) Root Node
(b) Front Node
(c) Parent Node
(d) Child Node
100.
A tree can be empty with no nodes called
(a) The null or empty tree
(b) The Blank Tree
(c) Tree
(d) Binary Tree
101.
Top most nodes in a tree.
(a) Root
(b) Leaf Node
(c) Child Node
(d) Parent Node
102.
The node that has a child.
(a) Root
(b)parent
(c) leaf
(d) None
103.
The node with the same parent.
(a) Sibling
(b) Leaf
(c) Child
(d) All of these
104.
The nodes with no children.
(a) Leaves
(b) Child
(c) parent
(d) Internal node
105.
The nodes with at least one child.
12 | P a g e
(a) 2 -1
(b) x2-1
x
(c) K 2
(d) None of these
111.
A binary tree which has only left sub tree is called
(a) Left Tree
(b)Left skewed tree
(c) Left Binary Tree
(d) AVL Tree
112.
__________are not efficient in memory management
(a) Binary tree
(b)Skewed trees
(c) Full Binary Tree
(d) Complete Binary Tree
113.
______ tree is a binary tree in which every level, except possibly the last, is
completely filled, and all nodes are as far left as possible.
(a) Complete binary tree
(b) Binary Tree
(c) Tree
(d) AVL Tree
114.
Traversing in which left sub tree processed first , then root and right sub
tree is called
(a) Inorder Traversing
(b) Pre order Traversing
(c) Post order Traversing
(d) None of these
13 | P a g e
117.
(a) D B E A C
(b) A B C D E
(c) C A B D E
(d) A C B D E
A link list presentation of binary tree consist node having
(a) A left pointer , Right Pointer, and Data
(b) Right pointer, Null pointer and First Node pointer
(c) Address of Root pointer
(d) None of these
Which of the following is in preorder Mannner
118.
(a) ABDEC
(b) ABCDE
(c) CABED
(d) EDBAC
Which of the following is in post ordermanner
119.
(a) ABCDEFG
(b) DEBFGCA
(c) ABCDEFG
(d) GCFABDE
In binary trees if a node does not have any parent is called-
116.
14 | P a g e
120.
121.
15 | P a g e
Unit 6
______is designed to minimize the number of disk accesses.
(a) A B-tree
(b) A binary Tree
(c) Binary Search Tree
(d) Full Binary Tree
123.
Tree can be converted into an equivalent binary tree, but this process
makes the tree(a) Imbalance
(b) Balanced
(c) Full binary
(d) Incomplete Binary tree
124.
Linear representation of complete binary tree in array the left and right
node will be
(a) 2i and 2i+1
(b) 2 and 2i
(c) 2n and 2n
(d) None of these
125.
For incomplete binary trees extra storage is required
(a) Extra storage
(b) Minimum storage
(c) Sequential Memory byte
(d) None of these
126.
Tree that have the value at n is greater than every value in the left subtree
of n and is less than every value in the right subtree of n is called(a) Binary tree
(b)Binary search tree
(c) Full binary tree
(d) Search tree
127.
__________ helps in easy insertion and deletion of elements.
(a) Binary tree
(b)Binary search tree
(c) Tree
(d) None of these
128.
Information represented by each node is a _______rather than a single data
element
(a) Record
(b) Data
(c) Value
(d) All of these
129.
In binary search tree nodes are compared according to their _____rather
than any part of their associated records.
(a) Key
(b) Data
122.
16 | P a g e
18 | P a g e
Unit 7
141.
________ is a balanced binary tree that rearranges its nodes whenever it
becomes unbalanced.
(a) AVL tree
(b) Binary tree
(c) Binary search tree
(d) Complete Binary tree
142.
_______ is designed to minimize the number of disk accesses.
(a) B-tree
(b) Binary tree
(c) AVL tree
(d) Binary search tree
143.
AVL tree is another balanced binary search tree named after(a) Denis Ritchie, Goslings and Tom Cruise
(b)Adelson, Velskii and Landis
(c) Anderson, Venny Ruskin, Linde Parker
(d) Any Thompson, Veronica bush, Limphe Jeorge
144.
In an AVL tree, a new field must be introduced. This new field stores the
_______of a node
(a) Balance factor
(b) Balance order
(c) Order value
(d) Pointer value
145.
the balance factor of a node which denotes the
(a) difference of heights between the left and right subtrees of the
tree
(b) difference between left and right node of tree
(c) difference between child and parent node
(d) none of these
146.
The balance factor of a node in a binary tree can have value
(a) 1 or 0
(b) 0 or -1
(c) 0 or 1 and -1
(d) 1, 0 or 2
147.
If a balance factor of a node is ______ then the heights of its left and right
subtrees are equal.
(a) 0
(b) 1
(c) 2
(d) -1
148.
_______ specifies the height of left subtree is lesser than the right subtree
(a) 1
(b) 0
(c) -1
(d) 2
149.
If the balance factor is _____ then the height of its left subtree is more than
the height of right subtree.
19 | P a g e
151.
152.
153.
(a) -1
(b) 0
(c) 1
(d) +1
Struct AVLNode
154.
{
Int data;
Int balfactor;
_______________________
}
In above structure definition which element must required to define(a) Struct left, right;
(b) Struct *left, *right;
(c) Struct avlNode *left,* right;
20 | P a g e
22 | P a g e
Unit 8 :Graph
173.
191.
(a)
Spars Graph
(b)Multi path graph
(c) Acyclic graph
(d) None of these
(a) Graph
(b)Null Graph
(c) Un directed graph
(d) Vertex only
195.
A graph in which each pair (v1, v2) of nodes in G there is a path from v1 to
v2 and there is also a path from v2 to v1.
(a) Strongly connected graph
(b) Sparse graph
(c) Directed graph
(d) Null graph
196.
In an undirected graph, the ________ of a vertex v is the number of edges
connected to v.
(a) Degree
(b) Edges
(c) Vertex
(d) Points
197.
In a directed graph, the __________ of a vertex v is the number of edges
leaving v
(a) In degree
(b) Degree
(c) Out degree
(d) In-out degree
198.
In a directed graph _________is the number of edges ending at v.
(a) in-degree
(b) out degree
(c) in- out degree
(d) none of these
199.
A graph can be represented commonly using
(a) Adjacency matrix and Incidence Matrix.
(b) Matrix
(c) Adjacency Matrix only
(d) Incidence Matrix
200.
In a directed graph, the ________ of a vertex v is the number edges of
leaving v, and its _______ is the number of edges ending at v.
(a) In-degree, out- degree
25 | P a g e
28 | P a g e
________ cannot be applied for linear ordering in the graph with cycles.
(a) Topological sorting
(b) Breadth first searching
(c) Depth first searching
(d) None of these
225.
__________ was used for network analysis
(a) Sorting
(b) Searching
(c) Network analysis
(d) Traversing
226.
Topological Sort was used for network analysis with technique (a)PERT
(b) CPM
(c) DAG
(d) Non
227.
________ order produced by a topological sort is not unique
(a) vertex
(b) nodes
(c) points
(d) levels
228.
Descriptors successor must appear after that descriptor in ______ ordering
for topological sort.
(a) Random
(b)Linear
(c) Alphabetical
(d) Unique
229.
_______ may have more than one possible topological order.
(a) DAG
(b) BST
(c) DFS
(d) Topological sort
230.
_______is used to find the shortest path between the two vertices in a
weighted directed graph
(a) Dijkstras Algorithm
(b) Hashing algorithm
(c) Breadth first search algorithm
(d) Depth firs t algorithm
231.
The time required by Dijkstra's algorithm is(a) O(1000)
(b) O(n)
(c) O(|V|2
(d) Log(n)
232.
In Dijkstras algorithm, _______ are assigned to each vertex.
(a) Weight
29 | P a g e
32 | P a g e
37 | P a g e
314.
315.
(b) high=mid+1
(c) low=mid-1
(d) high=mid-1
In the sequential search, each element of the array is compared to the key,
(a) Key
(b) Value
(c) Pointer
(d) Null value
Time complexity of Sequential search is
(a) O(n)
(b) LogN
(c) O(log n)
(d) None of these
40 | P a g e
UNIT 12
: File Structure
316.
An external storage device may be defined as device other than the main
memory on which information or data can be stored and from which the
information retrieved for processing.
(a) External storage device
(b) Internal storage device
(c) Dynamic storage device
(d) Static storage device
317.
External storage devices are having ________ capacities and fewer expenses
to store compared to main memory.
(a) Larger
(b) Medium
(c) Small
(d) None of these
318.
Bubble, selection, insertion and heap are some
(a) Searching
(b)Sorting
(c) Traversing
(d) Insertion
319.
The capacity of m_________ain memory is limited by two factors, the cost of
main memory and the technical problem in developing a large capacity of main
memory.
(a) Hard disk
(b) Magnetic tape
(c) Main memory
(d) External memory
320.
_________ is an information storage medium consisting of a magnetisable
coating on a thin plastic strip.
(a) Compact disk
(b) Digital disk
(c) Magnetic tape
(d) Hard drive
321.
DAT stands for(a) Digital Audio Tape
(b) Digital Access Tape
(c) Direct Audio Tape
(d) Direct Access Tape
322.
Reel to-reel tape, compact audio cassette, digital audio tape, digital linear
tape or general purpose digital data storage are of type
(a) Internal Memory
(b) External memory
(c) Main memory
(d)Magnetic Tape
323.
Modern magnetic tape is most commonly packaged in cartridges and
cassettes.
(a) Cartridges
(b) Cassettes
41 | P a g e
47 | P a g e
48 | P a g e
49 | P a g e