山东科技大学
  1. Parenthesis are never needed for postfix or prefix expression( )

  2. A:True B:False
    答案:A:True
  3. 60. Consider an integer array which stores the values of binary tree as (91,6,82,18,4,2,100).  What is the left child value of node with value 82? ( )

  4. A:2 B:4 C:100 D:18
    答案:2
  5. 43. A polynomial can be represented using____________.( )

  6. A:both linked list and arrays B:none of the above C:arrays only D:linked list only
    答案:A: both linked list and arrays
  7. 54. For any nonempty binary tree, if there are six nodes with degree two, what is the number of nodes with degree zero? ( )

  8. A:7 B:6 C:8 D:5
    答案:A:7
  9. 21. Which one of the following statement is wrong? ( )

  10. A:One can understand the machine code easily B:One can understand a flowchart easily C:One can understand a algorithm easily D:One can understand a program easily
    答案:A: One can understand the machine code easily
  11. Stack is a __________kind of data structure.( )

  12. A:LIFO B:FIFO C:LILO D:None of these
    答案:LIFO
  13. The maximum number of nodes of level i of a binary tree is ___, for i≥1.

  14. A:image.png B:image.png C:image.png D:image.png
    答案:
  15. 12. Which of the following term is not used with binary trees in general? ( )

  16. A:root B:right C:left D:rear
    答案:rear
  17. Which of the following data structures is a nonlinear structure? ( )

  18. A:Stack  B:Queue  C:Binary tree D:Linked list 
    答案:Binary tree
  19. 37. In the polynomial, A(x)= x4+10x3+3x2+1, what is the correct list of exponents only? ( )

  20. A:(4,3,2,0) B:(1,4,10,3) C:(1,10,3,1) D:(3,2,1,0)
  21. 25. Identify the recursive expression to find the factorial of a number using recursion. ( )

  22. A:fact(n)=n*fact(n-1) B:n!=n*(n-1)! C:n!=n*fact(n-1) D:fact(n)=n!
  23. 42. The most common way of representing ordered list is using_________.( )

  24. A:trees B:arrays C:queues D:stacks
  25. When user switch from one function to other then the details of previous function are stored into the stack.( )

  26. A:False B:True
  27. It is impossible to perform _________operation on an empty stack.( )

  28. A:POP B:PUSH C:None of the above D:TOP
  29. 57. Consider an integer array which stores the values of binary tree as (91,6,82,18,4,2,100).  What is the number of nodes with degree 0? ( )

  30. A:5 B:2 C:4 D:3
  31. Which of the following tree traversal visits the root first?( )

  32. A:Preorder B:Level order C:Postorder D:Inorder
  33. Which of the following are essential statement types for describing algorithms?( )

  34. A:All the above B:Sequence C:Repetition D:Selection
  35. 39. In the polynomial, A(x)= x4+10x3+3x2+1, what is (coefficient, exponent) pair of last term? ( )

  36. A:(1,0) B:(0,1) C:(4,1) D:(1,4)
  37. The time complexity of Binary search algorithm with n elements is________.

  38. A:image.png B:image.png C:image.png D:image.png
  39. What would be the asymptotic time complexity to find an element in the linked list?

  40. A:O(n) B:None
    C:O(1)
    D:O(n²)
  41. If we store the nodes of a binary tree in an array with index starting from zero, the father of a node having index n can be obtained by( )

  42. A:2n+1 B:(n-1)/2 C:2n+2 D:n-1
  43. 29. The series 0,1,1,2,3,5,8,13,21….are known as ___________. ( )

  44. A:Ramanujan series B:Euler series C:Prime series D:Fibonacci series
  45. 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( )

  46. A:Stack B:Queue C:Linked list D:Tree
  47. 26. Binary search works on ________arrays.( )

  48. A:linked B:random C:unsorted D:sorted
  49. 9. In stack, the input sequence is ABC, and to get the output sequence CBA, the stack operations required are: ( )

  50. A:Push, Pop, Push, Push, Pop, Pop B:Push, Push, Pop, Pop, Push, Pop C:Push, Push, Push, Pop, Pop, Pop D:Push, Pop, Push, Pop, Push, Pop
  51. Consider the following C code, where stack is implemented using the array.#define MAX 10struct STACK {    int arr[MAX]    int top = __________;}What will be the initial value with which top is initialized?( )

  52. A:0 B:10 C:-1 D:1
  53. A linear collection of data element given by means of pointer is called ( )

  54. A:Linked list B:Stack C:Graph D:Queue
  55. The maximum level of any node in the tree is called as( )

  56. A:leaf B:forest C:degree D:depth
  57. A data structure in which elements can be inserted or deleted at/from both the ends but not in the middle is?( )

  58. A:Dequeue B:Queue C:Priority queue D:Circular queue
  59. Which of the following term is not used with stacks in general? ( )

  60. A:Top B:Pop C:Front D:Push
  61. What is the maximum number of nodes in a binary tree with depth of 4? ( )

  62. A:4 B:16 C:8 D:15
  63. While evaluating expressions using computers, computer prefer ___________expression.( )

  64. A:None of the above  B:postfix C:prefix  D:infix
  65. The average case occurs in Linear search algorithm when( )

  66. A:Item is somewhere in the middle of the array B:Item is the last element in the array or is not there at all. C:Item is the last element in the array D:Item is not in the array at all
  67. 23. Arrows in the flowchart is used for the purpose of ______.( )

  68. A:to decide the order of steps B:for decision making C:compare the values D:Input and output
  69. The speed of a recursive program  becomes ______ because of stack overheads.( )

  70. A:minimum B:faster C:maximum D:slower
  71. 35. In the polynomial, A(x)= x4+10x3+3x2+1, if we start representing using array, what is the last value in the array? ( )

  72. A:4 B:3 C:2 D:1
  73. 67. Which of the following statements are correct? ( ).

  74. A:Arrays are nonlinear data structure B:The stack operates on a FIFO basis C:The queue is operates on FILO basis D:Linked list can be implemented using pointers
  75. 55. Consider an integer array which stores the values of binary tree as (91,6,82,18,4,2,100).  What is the depth of this binary tree? ( )

  76. A:5 B:2 C:4 D:3
  77. A three-dimensional array is defined as an array in which________subscript  values are used to access an individual array element.( )

  78. A:two B:three C:None of the above D:one
  79. What is the term used to describe O(n) algorithm? ( )

  80. A:Linear B:Non polynomial deterministic C:Constant D:Logarithmic
  81. If two numbers in sequence in the Fibonacci series are 13, 21, what is the next number? ( )

  82. A:13 B:34 C:43 D:21
  83. If the elements “A”, “B”, “C” and “D” are placed in a queue and are deleted one at a time, in what order will they be removed( )

  84. A:DCBA B:ABCD C:DCAB D:ABDC
  85. 48. What is the maximum number of nodes with degree zero in a binary tree at level 3? ( )

  86. A:9 B:5 C:4 D:3
  87. If the elements “A”, “B”, “C” and “D” are placed in a stack and are deleted one at a time, in what order will they be removed?( )

  88. A:DCBA B:ABDC C:ABCD D:DCAB
  89. Sparse matrices have ( )

  90. A:none of the above B:many non-zero entries C:higher dimension D:many zero entries
  91. In a stack, the process of inserting an element is called as ( )

  92. A:POP B:CREATE C:PUSH D:ENTER
  93. Identify the data structure which allows the deletions at both ends of the list, but insertions at only one end.( )

  94. A:Output-restricted queue B:Input-restricted queue C:None of the above D:Priority queues
  95. 47. The time complexity of algorithm of adding two polynomials with m and n terms using arrays is equal to____________.( )

  96. A:O(m-n) B:O(m+n) C:O(n) D:O(m)
  97. Set of consecutive memory locations is called as ( )

  98. A:pointer B:function C:array D:loop
  99. User perform following operations on stack of size 5 then: push(1);pop();push(2);push(3);pop();push(2); pop();pop();push(4);pop();pop();push(5); Which of the following is correct statement for stack ?( )

  100. A:None of these B:Overflow occurs C:Stack operations will be performed smoothly D:Underflow occurs

温馨提示支付 ¥5.00 元后可查看付费内容,请先翻页预览!
点赞(4) dxwkbang
返回
顶部