MCQ | Data Structure


DATA STRUCTURE


1. The most widely used method for interpreting bit setting as non-negative integer is :




... Answer is A)
Binary number system


2. While considering data structure implementation,the factor(s) underconsideration is (are):




... Answer is C)
time,space and processor



3. Data structure as define at logical level, is called abstract data type.


... Answer is A)
true



4. Without pointer data type is not possible to implement hierarchical data structure.


... Answer is A)
true



5. Data structures are programming language dependent.


... Answer is B)
false



6. A data type is a collection of values and a set of operations on that values.


... Answer is A)
true



7. Pick out invalid statement for following : algorithm must be:




... Answer is C)
free of ambiguity



8. Modular programming uses




... Answer is A)
only top down method



9.In analysis of algorithm, approximate relationship between the size of the job and the amount of work required to do it is expressed by using:




... Answer is B)
central tendency



10.Which is better computing time (with respect to algorithm analysis)




... Answer is C)
O(log₂n)



11. Which of the following is the best time for an algorithm ?




... Answer is B)
O(logN)



12. An unrestricted use of the "goto" statement is harmful because




... Answer is A)
it makes it more difficult to verify programs



13. The recurrence relation that arises in relation with the complexity of binary search is




... Answer is A)
T(n)=T(n/2)+k,k is a constant



14. Consider the following two functions:
g1(n)=n² for 0<=n<10,000
=n³ for n>10,000
g2(n)=n for 0<n<=100
=n³ for n>100
which of the following is true:




... Answer is a)
g1(n) is O(g2(n)



15. Which of the following is false




... Answer is B)
√logn = O(logn)



16. Structured data type made up of finite collection of ordered elements, all of which is of same data type is:




... Answer is B)
array



17. Element of array is accessed by




... Answer is C)
index



18. Array is




... Answer is A)
Linear data structure



19. Static memory allocation takes place at run time


... Answer is B)
false



20. In linked list the logical order of elements




... Answer is C)
can not be determined from their physical arrangement



21.Direct or random access of element is not possible in




... Answer is A)
linked list



22. Odd may out (linked list)




... Answer is C)
to determine if it is empty



23. The nth node in singly linked list, is accessed via (where n>1):




... Answer is A)
the head node



24. In linked list,the successive elements




... Answer is B)
need not occupy contiguous space in memory



25. Linear order in linked list is provided through




... Answer is C)
Pointer



26. Null pointer is used to tell




... Answer is A)
end of linked list



27. List pointer variable in linked list contains address of




... Answer is A)
following node in the list



28. Underflow condition in linked list may occur when attempting to




... Answer is C)
delete a node in empty list



29. Overflow condition in linked list may occur when attempting to




... Answer is A)
create a node when free space pool is empty



30. Searching a linked list requires linked list be created




... Answer is A)
in sorted order only



31. Deletion of a node in linked list involves keeping track of the address of the node




... Answer is B)
which immediately precedes the node that is to be deleted.



32. Header of a linked list is a special node at the




... Answer is C)
beginning of the linked list



33. Header linked list in which last node contains the null pointer is called




... Answer is A)
grounded header list



34. Header linked list in which last node points to the header node is called




... Answer is B)
circular header list



35. polynomials in memory may be maintained through




... Answer is A)
linked list with header node



36. Representing the polynomial in memory using linked list requires each node having




... Answer is B)
three fields



37. The n th node in a singly linked list is accessed via




... Answer is B)
1 node (olny the head)



38. Linked lists are not suitable for which one of the following problem




... Answer is B)
binary search



39. The concatenation of two lists is to be performed in O(1) time.Which of the following implementations of a list should be used?




... Answer is C)
circular doubly linked list



40. Having address of the node to be deleted in double linked list,the node can be deleted




... Answer is A)
without traversing the list



41. A data structure in which an element is added and removed only from one end is known as:




... Answer is B)
stack



42. A data structure in which elements are added or removed only at a fixed end is kinown as a




... Answer is B)
stack



43. One can convert an infix expression to a postfix expression using a




... Answer is A)
stack



44. Which of the following is essential for converting an infix expression to the postfix from efficiently.




... Answer is A)
An operator stack



45. Which of the following types of expressions do not require precedence rules for evalution?




... Answer is D)
More than one of the above.



46. Which of the following is essential for converting an infix expression to the postfix from efficiently.




... Answer is A)
An operator stack



47. The queue can be define as a




... Answer is A)
Waiting line



48. Circular queues are implemented using arrays because of _____ utilization of memory space




... Answer is B)
Optimum



49. A priority queue does not follow ______ rule strictly




... Answer is A)
FIFO



50.FRONT=RARE=-1 pointer refers to ______ queue




... Answer is C)
Empty

No comments:

Post a Comment