Quiznetik

Data Structures (DS) | Set 4

1. The hashing file space is divided into_______________.

Correct : C. buckets and slots.

2. Matrices with a relatively high proportion of zero entries are called _______ matrices.

Correct : A. sparse.

3. The Postfix equivalent of the Prefix Notation * + ab - cd is

Correct : A. ab + cd - *

4. Data structure which is capable of expressing more complex relationship than that of physical adjacency is called______________.

Correct : C. non linear data Structure

5. A tree is a data structure which represents hierarchical relationship between individual _________.

Correct : A. data items.

6. In a directed tree any node which has out degree 0 is called a terminal node or__________.

Correct : D. a leaf.

7. In a directed tree if the ordering of the nodes at each level is prescribed then such a tree is called_______ tree.

Correct : C. ordered.

8. ______________ a tree means processing it in such a way that each node is visited only once.

Correct : A. Traversing.

9. The length of the path is the number of_____________ on the path.

Correct : D. edges.

10. The children node of same parent is called____________.

Correct : C. sibling.

11. The situation in linked list START = NULL is called_________

Correct : B. Underflow

12. A code which deals about short form of a program is called __________ code.

Correct : C. pseudo.

13. Which of the application may use a stack?

Correct : A. Expression Evaluation

14. The queue which wraps around upon reaching the end of the array is called as____________.

Correct : A. circular queue.

15. A _______________ is a reference to a memory location, which is used to store data that is described in a data type.

Correct : B. variable.

16. If the elements A, B, C and D are placed in a stack and are deleted one at a time, what is the order of removal?

Correct : B. DCBA

17. ____________ has certain attributes or properties which may be assigned values.

Correct : C. entity.

18. The number of interchanges required to sort 5, 1, 6, 2 4 in ascending order using Bubble Sort is ____________.

Correct : B. 5

19. Maximum degree in any vector in a graph with n vertices is ________.

Correct : B. n-1.

20. If FRONT = NULL then _________.

Correct : B. queue empty

21. _______________ is a solution to a problem independent of programming language.

Correct : D. Algorithm.

22. ________ is the situation where data-structure is empty.

Correct : B. Underflow.

23. When elements are deleted the nodes go to_________.

Correct : B. free pool.

24. Expression into postfix expression: (A - B) * (D / E)

Correct : D. * - A B / D E

25. Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called ________

Correct : D. structure.

26. Quick sort uses ____ for implementation.

Correct : A. recursion.

27. What is the worst-case time for heap sort to sort an array of n elements?

Correct : C. O(n log n).

28. The __________________ denotes the greatest integer.

Correct : A. ceiling.

29. A binary tree of depth "d" is an almost complete binary tree if __________.

Correct : C. both a and b.

30. Program module contains its own list of variables called ____________.

Correct : C. local.

31. The number of nodes in a complete binary tree of level 5 is__________.

Correct : D. 31.

32. The string with zero characters is called___________.

Correct : D. empty string.

33. The unit equal to the number of bits needed to represent a character is called a ________.

Correct : A. byte.

34. The number of swapping needed to sort numbers 8,22,7,9,31,19,5,13 in ascending order using bubble sort is ?

Correct : D. 14

35. In variable length storage two dollar signs are used to signal the __________.

Correct : A. end of the string.

36. The initial configuration of the queue is a,b,c,d (a is the front end). To get the configuration d,c,b,a one needs a minimum of ?

Correct : C. 3 deletions and 3 additions

37. Each node in a singly linked lists have ______ fields

Correct : A. 2

38. Quotation marks are also called as ____________.

Correct : A. string delimiters.

39. A string `s` consists of x, y and if x is an empty string then y is called as___________.

Correct : A. initial substring.

40. The length of the string can be listed as an additional item in _____________.

Correct : B. pointer array.

41. Who invented Quick sort procedure?

Correct : A. Hoare.

42. For the heap sort, access to nodes involves simple _______________ operations.

Correct : B. arithmetic

43. The maximum number of nodes on level i of a binary tree is ___________.

Correct : A. 2i-1.

44. The number of edges in a regular graph of degree d and n vertices is _______.

Correct : C. nd.

45. Which of the following is useful in traversing a given graph by Breath first search?

Correct : D. Queue.

46. What is an external sorting algorithm?

Correct : A. Algorithm that uses tape or disk during the sort

47. Allocating memory for arrays during program compilation is___________.

Correct : C. static allocation.

48. The elements of an array are allocated in spaces________.

Correct : A. successively.

49. Accessing and processing each array elements is called __________.

Correct : B. traversing.

50. An m*n array has _________number of elements.

Correct : D. m*n.

51. The sequence (1,1) (2,1) (3,1) (1,2) (2,2) (3,2) . . . .represents _________.

Correct : B. column major order.

52. ______ is not a technique of tree traversal.

Correct : C. prefix

53. Selection sort and quick sort both fall into the same category of sorting algorithms._________ is that category.

Correct : C. Interchange sorts.

54. The possibility of two different keys k1 & k2 yielding the same hash address is called__________.

Correct : C. overlapping.

55. Uniform distribution of the hash address throughout the given set L is __________.

Correct : A. reduce the number of collision.

56. An edge E is called _________ if it has identical endpoints.

Correct : B. loops.

57. __________involves maintaining two tables in memory.

Correct : D. Chaining.

58. An _________ is a well defined list of steps for solving a problem.

Correct : A. Algorithm.

59. The data items in a record form a ________ structure which can be described by means of level numbers.

Correct : A. hierarchical.

60. A path P of length n from a node u to a node v is defined as a sequence of _________ nodes.

Correct : B. n+1.

61. A vertex of degree one is called __________.

Correct : A. padent

62. A connected graph T without any cycles is called _____________.

Correct : D. all of the above.

63. If every node u in G is adjacent to every other node v in G, A graph is said to be _______.

Correct : B. complete.

64. In a graph G if e=(u,v), then u and v are called ___________.

Correct : D. all of the above.

65. Which of the following is true while inserting a new node in the list?

Correct : B. Check in the free node in the pool.

66. Which of the following data structures are indexed structures?

Correct : A. Linear arrays.

67. The efficiency of a BFS algorithm is dependent on _______.

Correct : D. Graph.

68. The average number of key comparisons done in a successful sequential search in a list of length n is ____________.

Correct : D. n+1/2.

69. Divide and conquer is an important algorithm design paradigm based on _______.

Correct : A. multi-branched recursion.

70. The correctness of a divide and conquer algorithm is usually proved by _________.

Correct : C. mathematical induction.

71. The ____________ is used in an elegant sorting algorithm.

Correct : A. Heap sort.

72. ____________ is finding a path/tour through the graph such that every vertex is visited exactly once.

Correct : C. Hamiltonian tour.

73. ____________ data structure is used to implement Depth First search.

Correct : D. Stack.

74. The binary tree that has n leaf nodes. The number of nodes of degree 2 in this tree is

Correct : B. n-1

75. Each entry in a linked list is a called a_______________.

Correct : B. Node.

76. Which of the following is two way lists?

Correct : D. List traversed in two directions.

77. In a linked list the _________field contains the address of next element in the list.

Correct : A. Link field.

78. A list that has no nodes is called________.

Correct : C. Null list.

79. The special list which consists of unused memory space is called __________.

Correct : D. Free storage list.

80. The efficient searching algorithm for algorithm for a sorted array is _________.

Correct : A. Binary search.

81. To insert a new node in linked list free node will be available in ___________.

Correct : B. Avail list.

82. A ______________ list is a header list where the node points back to the header node.

Correct : A. Circular header.

83. How many pointers are necessarily changed for the insertion in a Linked List?

Correct : B. 2.

84. An algorithm that calls itself directly or indirectly is known as ____________.

Correct : B. Recursion.