DSU PTT ds1 Paper
DSU PTT ds1 Paper
DSU PTT ds1 Paper
Q. The operation of processing each element in the list is known as, _________.
a) Sorting
b) Merging
c) Inserting
d) Traversal
Answer . d
Q. Array implementation of Stack is not dynamic, which of the following statements supports
this argument?
a. space allocation for array is fixed and cannot be changed during run-time
b. user unable to give the input for stack operations
c. a runtime exception halts execution
d. improper program compilation
Answer:- a
Q What are the disadvantages of arrays?
a) We must know beforehand how many elements will be there in the array
b) There are chances of wastage of memory space if elements inserted in an array are lesser than
than the allocated size
c) Insertion and deletion becomes tedious
d) All of the above
Answer : .d
a) Quick sort
b) Bubble sort
c) Binary sort
d) Linear sort
Answer .a
Q. Which of the following is not the required condition for binary search algorithm?
a) The list must be sorted
b) There should be the direct access to the middle element in any sublist
c) There must be mechanism to delete and/or insert elements in list
d) None of above
Answer .c
Answer: d
Q. 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
Q. 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
Answer : a
Explanation:The Worst case occur in linear search algorithm when Item is the last element in the array or
is not there at all.