Data Structures: MCQ Set – 02

Data Structures: MCQ Set – 02

  • (A) Linked list
  • (B) Stack
  • (C) Queue
  • (D) Array

Q12: The value of first linked list address is ?

  • (A) 0
  • (B) -1
  • (C) 1
  • (D) None of Above

Q13: An ADT is defined to be a mathematical model of a user-defined type along with the collection of all____________ operations on that model.

  • (A) Cardinality
  • (B) Assignment
  • (C) Primitive
  • (D) Structured

Q14: The number of different trees with 8 nodes is

  • (A) 256
  • (B) 255
  • (C) 248
  • (D) 260

Q15: Find the odd one out

  • (A) Bin-Packing Problem
  • (B) TVSP Problem
  • (C) Knap Sack Problem
  • (D) OBST Problem
  • (E) Sum of Subset

Q16: Which of the following are essential statement types for describing algorithms?

  • (A) Sequence
  • (B) Selection
  • (C) Repetition
  • (D) All the above
  • (E) A and B Only

Q17: An algorithm is complete if

  • (A) It terminates with a solution when one exists
  • (B) It starts with a solution
  • (C) It does not terminate with a solution
  • (D) It has a loop
  • (E) It has a decision parameter.

Q18: When the priority queue is represented by max heap, the insertion and deletion of an element can be performed in (queue containing n elements)

  • (A) q(n) and q(1) respectively
  • (B) q(n) and q(n) respectively
  • (C) q(1) and q(1) respectively
  • (D) None of the above

Q19: A linear collection of data elements where the linear node is given by means of pointer is called

  • (A) Linked list
  • (B) Node list
  • (C) Primitive list
  • (D) None of these

Q20: The expression X=4+2%-8 evaluate

  • (A) -6
  • (B) 6
  • (C) 4
  • (D) None

Answers:

QuestionQ11Q12Q13Q14Q15Q16Q17Q18Q19Q20
AnswerA, CACCADACAB