Q. In ……………, search start at the beginning of the list and check every element in the list.

  • (A) linear search
  • (B) binary search
  • (C) hash search
  • (D) binary tree search
πŸ’¬ Discuss
βœ… Correct Answer: (A) linear search

Q. Which of the following is not the internal sort?

  • (A) insertion sort
  • (B) bubble sort
  • (C) merge sort
  • (D) heap sort
πŸ’¬ Discuss
βœ… Correct Answer: (C) merge sort

Q. A graph is said to be ……………… if the vertices can be split into two sets V1 and V2 such there are no edges between two vertices of V1 or two vertices of V2.

  • (A) partite
  • (B) bipartite
  • (C) rooted
  • (D) bisects
πŸ’¬ Discuss
βœ… Correct Answer: (B) bipartite

Q. In a queue, the initial values of front pointer f rare pointer r should be …….. and ……….. respectively.

  • (A) 0 and 1
  • (B) 0 and -1
  • (C) -1 and 0
  • (D) 1 and 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) 0 and -1

Q. In a circular queue the value of r will be ..

  • (A) r=r+1
  • (B) r=(r+1)% [queue_size – 1]
  • (C) r=(r+1)% queue_size
  • (D) r=(r-1)% queue_size
πŸ’¬ Discuss
βœ… Correct Answer: (C) r=(r+1)% queue_size

Q. The advantage of …………….. is that they solve the problem if sequential storage representation. But disadvantage in that is they are sequential lists.

  • (A) lists
  • (B) linked lists
  • (C) trees
  • (D) queues
πŸ’¬ Discuss
βœ… Correct Answer: (B) linked lists

Q. What will be the value of top, if there is a size of stack STACK_SIZE is 5

  • (A) 5
  • (B) 6
  • (C) 4
  • (D) none
πŸ’¬ Discuss
βœ… Correct Answer: (C) 4

Q. ………… is not the operation that can be performed on queue.

  • (A) insertion
  • (B) deletion
  • (C) retrieval
  • (D) traversal
πŸ’¬ Discuss
βœ… Correct Answer: (D) traversal

Q. There is an extra element at the head of the list called a ……….

  • (A) antinel
  • (B) sentinel
  • (C) list header
  • (D) list head
πŸ’¬ Discuss
βœ… Correct Answer: (B) sentinel

Q. A graph is a collection of nodes, called ………. And line segments called arcs or ……….. that connect pair of nodes.

  • (A) vertices, edges
  • (B) edges, vertices
  • (C) vertices, paths
  • (D) graph node, edges
πŸ’¬ Discuss
βœ… Correct Answer: (A) vertices, edges

Jump to