S.Y.-B.Sc_.-III_Data-Structure-I
S.Y.-B.Sc_.-III_Data-Structure-I
Question Bank
S.Y. B.Sc. Sem-III Subject: - Data structure
---------------------------------------------------------------------------------------------------------------
Multiple Choice Questions
2.Item in priority queue can jump to the front on the line if they have priority
A TRUE
B FALSE
C None of these
3.A linear list of elements in which deletion can be done from one end (front) and
insertion can take place only at the other end (rear) is known as a
A queue.
B stack.
C tree.
D linked list.
A queue
B stack
C array
D tree
5.A queue is a,
A Stacks
B Queues
C Deques
D Binary search tree
7.This data structure allows deletions at both ends of the list but insertion at only one
end.
A Input-restricted deque
B Output-restricted deque
C Priority queues
D None of the above
A. ABC+DE/*-
B. ABC-DE/*-
C ABC-DE*/-
D. None of the above
A queue
B stack
C array
D linked-list
A Stack
B Queue
C Tree
D Array
11.The process of accessing data stored in a serial access memory is similar to
manipulating data on a
A heap
B queue
C stack
D binary tree
A AB+CD*E-FG/**
B. AB+CD*E-*F*G/
C. AB+CD*E-F**G/
D. AB+CDE*-*F*G/
13.What data structure would you mostly likely see in a nonrecursive implementation
of a recursive algorithm?
A Stack
B Linked list
C Queue
D Trees
A Branch
B Queue
C Tree
D stack
A Queue.
B Stack.
C Arrays.
D List.
A +-AB*(C-D)
B * +-ABCD
C * +AB-CD
D *AB+ CD
18.A linear collection of data elements where the linear node is given by means of
pointer is called?
a) Linked list
b) Node list
c) Primitive list
d) Unordered list
Answer: a
19 In linked list each node contain minimum of two fields. One field is data field to
store the data second field is?
a) Pointer to character
b) Pointer to integer
c) Pointer to node
d) Node
Answer: c
20 What would be the asymptotic time complexity to add a node at the end of singly
linked list, if the pointer is initially pointing to the head of the list?
a) O(1)
b) O(n)
c) θ(n)
d) θ(1)
Answer: c
21 The concatenation of two list can performed in O(1) time. Which of the following
variation of linked list can be used?
a) Singly linked list
b) Doubly linked list
c) Circular doubly linked list
d) Array implementation of list
Answer: c
22. What differentiates a circular linked list from a normal linked list?
a) You cannot have the ‘next’ pointer point to null in a circular linked list
b) It is faster to traverse the circular linked list
c) You may or may not have the ‘next’ pointer point to null in a circular linked list
d) Head node is known in circular linked list
Answer: c
23.What is the time complexity of searching for an element in a circular linked list?
a) O(n)
b) O(nlogn)
c) O(1)
d) O(n2)
Answer: a
Answer: c
27In a stack, if a user tries to remove an element from empty stack it is called
_________
a) Underflow
b) Empty collection
c) Overflow
d) Garbage Collection
Answer: a
28 Pushing an element into stack already having five elements and stack size of 5,
then stack becomes
a) Overflow
b) Crash
c) Underflow
d) User flow
Answer: a
Answer: d
Answer: d
Answer: c
Answer: d
Answer: a
Answer: a
38 In a circular queue, how do you increment the rear end of the queue?
a) rear++
b) (rear+1) % CAPACITY
c) (rear % CAPACITY)+1
d) rear–
Answer: b
39.What is the term for inserting into a full queue known as?
a) overflow
b) underflow
c) null pointer exception
d) program won’t be compiled
Answer: a
Answer: c
43 What is the time complexity to insert a node based on key in a priority queue?
a) O(nlogn)
b) O(logn)
c) O(n)
d) O(n2)
Answer: c
44 What is a dequeue?
a) A queue with insert/delete defined for both front and rear ends of the queue
b) A queue implemented with a doubly linked list
c) A queue implemented with both singly and doubly linked lists
d) A queue with insert/delete defined for front side of the queue
Answer: a
Answer: d
46 What is the time complexity of deleting from the rear end of the dequeue
implemented with a singly linked list?
a) O(nlogn)
b) O(logn)
c) O(n)
d) O(n2)
Answer: c
Answer: d
Answer: a
49 How do you calculate the pointer difference in a memory efficient double linked
list?
a) head xor tail
b) pointer to previous node xor pointer to next node
c) pointer to previous node – pointer to next node
d) pointer to next node – pointer to previous node
Answer: b
50 What is the worst case time complexity of inserting a node in a doubly linked list?
a) O(nlogn)
b) O(logn)
c) O(n)
d) O(1)
Answer: c
52 Given only a single array of size 10 and no other memory is available. Which of
the following operation is not feasible to implement (Given only push and pop
operation)?
a) Push
b) Pop
c) Enqueue
d) Returntop
Answer: c
53 Given pointer to a node X in a singly linked list. Only one pointer is given, pointer
to head node is not given, can we delete the node X from given linked list?
a) Possible if X is not last node
b) Possible if size of linked list is even
c) Possible if size of linked list is odd
d) Possible if X is not first node
Answer: a
54 You are given pointers to first and last nodes of a singly linked list, which of the
following operations are dependent on the length of the linked list?
a) Delete the first element
b) Insert a new element as a first element
c) Delete the last element of the list
d) Add a new element at the end of the list
Answer: c
Answer: c
Answer: d
Answer: a
61 A binary search tree whose left subtree and right subtree differ in hight by at most
1 unit is called .....
[A] Lemma tree
[B] Redblack tree
[C] AVL tree
[D] None of the above
Answer c
Answer: a
67Which of the following data structure store the homogeneous data elements?
[A] Lists
[B] Pointers
[C] Records
[D] Arrays
Answer: Option [C]
69 A ......... does not keep track of address of every element in the list.
[A] Stack
[B] Queue
[C] String
[D] Linear array
76 Which of the following linked list below have last node of the list pointing to the
first node?
A. circular doubly linked list
B. circular linked list
C. circular singly linked list
D. doubly linked list
Ans: A
79. Which data structure allows deleting data elements from front and inserting at
rear?
a. Stacks
b. Queues
c. Deques
d. Binary search tree
ans:b
80 Identify the data structure which allows deletions at both ends of the list but
insertion at only one end.
a. Input-restricted deque
b. Output-restricted deque
c. Priority queues
d. None of above
ans:a
85 In a Stack the com mand to access nth ele ment from the top of the stack s will be
a. S[Top-n]
b. S [Top+n]
c. S [top-n-1]
d. None of the above
ANS:A
86 The result of eval u at ing pre fix expres sion */b+-dacd, where a = 3, b = 6, c = 1,
d = 5 is
a. 0
b. 5
c. 10
d. 15
ANS:C
96 Each array declaration need not give, implicitly or explicitly, the information about
a. the name of array
b. the data type of array
c. the first data from the set to be stored
d. the index set of the array
Ans:c
98_______ form of access is used to add and remove nodes from a queue
A. LIFO,Last In First Out
B. FIFO , First In First Out
C. Both 1 and 2
D. None of these
Ans: B
99______ form of access is used to add and remove nodes from a stack
A. LIFO
B. FIFO
C. Both 1 and 2
D. None of these
Ans: A