Professional Documents
Culture Documents
Dsa SET1
Dsa SET1
Ans- A
(a) Average
(b) Best
(c) Worst
(d) Good
Ans- A
Answer: d
Ans-D
Ans- C
Ans- B
(a)470
(b)594
(c)570
(d)494
Ans- A
Answer: b
www.cgpabooster.in
Academic Lab: CGPA Booster
9) For many problems such as sorting, there are many
choices of algorithms to use, some of which are
extremely_____.
a.
Space efficient
b.
Time efficient
c.
Both (a) and (b)
d.
None of the above
Answer: (c).
www.cgpabooster.in
Academic Lab: CGPA Booster
C. Find and return the position of the given element in
the list
D. Find and insert a new element in the list
View Answer
Ans : C
A. log 2 n
B. n/2
C. log 2 n – 1
D. n
View Answer
Ans : D
A. One pointer
B. Two pointer
C. Three pointer
D. None
View Answer
Ans : B
www.cgpabooster.in
Academic Lab: CGPA Booster
4) Consider an implementation of unsorted singly linked
list. Suppose it has its representation with a head
pointer only.
Given the representation, which of the following
operation can be implemented in O(1) time?
A. I and II
B. I and III
C. I, II and III
D. I, II and IV
View Answer
Ans : B
A. Data
B. Link
C. Data and Link
D. None of the mentioned
View Answer
Ans : B
www.cgpabooster.in
Academic Lab: CGPA Booster
6) 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?
Ans : A
Answer: a
www.cgpabooster.in
Academic Lab: CGPA Booster
Answer: b
A. Circular header
B. Grounded header
Ans- A
A. 1
B. 2
C. 3
D. 4
Ans- C
www.cgpabooster.in
Academic Lab: CGPA Booster
UNIT-3
A. Overflow
B. Underflow
C. Maximum elements
D. Existing elements
Ans- A. Overflow
A. divided queue
B. distributed queue
D. design queue
A. Overflow
www.cgpabooster.in
Academic Lab: CGPA Booster
B. Underflow
C. Maximum elements
D. Existing elements
Ans- B. Underflow
A. FIFO lists
B. LIFO list
C. piles
D. push-down lists
B. Null=Front
C. Front=Rear
D. Rear=Null
Ans- A. Front-Null
www.cgpabooster.in
Academic Lab: CGPA Booster
6) Which of the following is not the type of queue?
A. Ordinary queue
B. Special queue
C. Priority queue
D. Circular queue
A. priority
B. dequeue
C. circular
D. linked
Ans- C. circular
www.cgpabooster.in
Academic Lab: CGPA Booster
C. Increase the number of times underflow may occur
B. push
C. pop
D. top
Ans- C. pop
A. Neighboring
B. Last
C. First
D. Middle
Ans- A. Neighboring
www.cgpabooster.in
Academic Lab: CGPA Booster