Data Structure and Algorithms (DSA) MCQs with answers Page - 8

Here, you will find a collection of MCQ questions on Data Structure and Algorithms (DSA). Go through these questions to enhance your preparation for upcoming examinations and interviews.

To check the correct answer, simply click the View Answer button provided for each question.

Have your own questions to contribute? Click the button below to share your MCQs with others!

+ Add Question

A

Admin • 833.24K Points
Coach

Q. A ______ is a list of a finite number of homogeneous data elements.

  • (A) linear array
  • (B) pointer
  • (C) linked list
  • (D) tree

A

Admin • 833.24K Points
Coach

Q. The number of elements n is called the length or _____ of the array.

  • (A) upper bound
  • (B) lower bound
  • (C) size
  • (D) variable

A

Admin • 833.24K Points
Coach

Q. The number K in A[K] is called the subscript or the ________.

  • (A) size
  • (B) index
  • (C) variable
  • (D) constant

A

Admin • 833.24K Points
Coach

Q. Which of the following items are not part of the array declaration?

  • (A) name of the array
  • (B) data type of the array
  • (C) index set of the array
  • (D) length of the array

A

Admin • 833.24K Points
Coach

Q. Programming languages like FORTRAN and PASCAL allocate memory space for arrays ______.

  • (A) dynamically
  • (B) statically
  • (C) successively
  • (D) alternatively

A

Admin • 833.24K Points
Coach

Q. The process of accessing and processing each element of an array A, exactly once is called _______.

  • (A) deleting
  • (B) inserting
  • (C) traversing
  • (D) searching

A

Admin • 833.24K Points
Coach

Q. _________ refers to the operations of rearranging the elements of an array A so that they are in increasing order.

  • (A) searching
  • (B) sorting
  • (C) traversing
  • (D) inserting

A

Admin • 833.24K Points
Coach

Q. Two dimensional arrays are sometimes called _______ arrays.

  • (A) integer
  • (B) boolean
  • (C) matrix
  • (D) real

A

Admin • 833.24K Points
Coach

Q. ________ is a list in which the order of the items is significant, and the items are not necessarily sorted.

  • (A) ordered list
  • (B) indexed list
  • (C) sequential list
  • (D) unordered list

A

Admin • 833.24K Points
Coach

Q. Representation of a two dimensional as one single column of rows and mapping it sequentially is called _______ representation.

  • (A) row-major
  • (B) row
  • (C) column-major
  • (D) column