(DSU) Data Structure Using 'C' (22317)
(DSU) Data Structure Using 'C' (22317)
1) What is another name for the circular queue among the following options?
C. Ring buffer
2) If the elements ‘1’, ‘2’, ‘3’ and ‘4’ are inserted in a queue, what would be the order for the removal?
A. 1234
3) A list of elements in which enqueue operation takes place from one end, and dequeue operation takes
place from one end is__
C. Queue
B. FIFO principle
6) Which one of the following is the overflow condition if the linear queue is implemented using an array
with a size MAX_SIZE?
C. rear=MAX_SIZE -1
7) Which one of the following is the overflow condition if a circular queue is implemented using an array
having size MAX?
C. front=(rear+1) mod max
9) Which of the following determines the need for the Circular Queue?
A. Avoid wastage of memory
10) Which one of the following is the correct way to increment the rear end in a circular queue?
B. (rear+1) % max
17) A data structure in which all data elements are stored in a sequence is known as linear data structure.
A. True
18) A data structure in which all data elements are not stored in a sequence is known as a non-linear data
structure.
A. True
19) In Linear data structure All elements are stored in non-contiguous memory locations inside memory.
B. False
20) In Non-linear data structure All elements may stored in contiguous memory locations inside memory
B. False
21) Indegree of node is the number of edges coming towards a specified node i.e. number of edges that
have that specified node as the head is known as indegree of a node.
A. True
22) Outdegree of node is number of edged going out from a specified node i.e. number of edges that have
that specified node as the tail is known as outdegree of a node
A. True
27) Stack is a data structure in which insertion and deletion operations are performed at the different ends.
B. False
28) Queue is a data structure in which insertion and deletion operations are performed at the same ends.
B. False
29) In stack an element inserted last is deleted first so it is called Last In First Out list.
A. True
30) In Queue an element inserted first is deleted first so it is called First In First Out list.
A. True
9) Which one of the following is the process of inserting an element in the stack?
C. Push
10) When the user tries to delete the element from the empty stack then the condition is said to be a_
A. Underflow
11) If the size of the stack is 10 and we try to add the 11th element in the stack then the condition is known
as___
C. Overflow
12) Which one of the following is not the application of the stack data structure
D. Asynchronous data transfer
13) Which one of the following nodes is considered the top of the stack if the stack is implemented using
the linked list?
A. First node
14) What would be the maximum value of the top that does not cause the overflow of the stack?
D. 10
B. Binary Tree
C. Binary Search Tree
B. Directed graphs
C. Undirected graphs
18) Enlist queue operation condition
A. Queue Empty
B. Queue Full
20) When a stack is full and push operation is performed to insert a new element, stack is said to be in
overflow state
A. True
21) When there is no element in a stack (stack empty) and pop operation is called then stack is said to
underflow state
A. True
B. False
23) Number of edges going out from the node is the In-degree of the node.
B. False
24) A directed graph is defined as the set of ordered pair of vertices and edges where each connected edge
has not assigned a direction
B. False
28) Tree is a special form of graph i.e. minimally connected graph and having only one path between any
two vertices.
True
29) In graph there can be more than one path i.e. graph can have unidirectional or bidirectional paths
(edges) between nodes
A. True
30) Tree is a special case of graph having no loops, no circuits and no self-loops
A. True
✓$UMIT USHIR