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

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. The string with zero characters is called___________.

  • (A) null string.
  • (B) zero string.
  • (C) one string.
  • (D) empty string.

A

Admin • 833.24K Points
Coach

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

  • (A) byte.
  • (B) bit.
  • (C) mega bytes.
  • (D) kilo bytes.

A

Admin • 833.24K Points
Coach

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

  • (A) 11
  • (B) 12
  • (C) 13
  • (D) 14

A

Admin • 833.24K Points
Coach

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

  • (A) end of the string.
  • (B) beginning of the string.
  • (C) mid-level of the string.
  • (D) index.

A

Admin • 833.24K Points
Coach

Q. 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 ?

  • (A) 2 deletions and 3 additions
  • (B) 3 additions and 2 deletions
  • (C) 3 deletions and 3 additions
  • (D) 3 deletions and 4 additions

A

Admin • 833.24K Points
Coach

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

  • (A) 2
  • (B) 3
  • (C) 4
  • (D) 5

A

Admin • 833.24K Points
Coach

Q. Quotation marks are also called as ____________.

  • (A) string delimiters.
  • (B) period.
  • (C) stopper.
  • (D) string.

A

Admin • 833.24K Points
Coach

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

  • (A) initial substring.
  • (B) substring of s.
  • (C) node of the string.
  • (D) index.

A

Admin • 833.24K Points
Coach

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

  • (A) base pointer.
  • (B) pointer array.
  • (C) node.
  • (D) record.

A

Admin • 833.24K Points
Coach

Q. Who invented Quick sort procedure?

  • (A) Hoare.
  • (B) Sedgewick.
  • (C) Mellroy.
  • (D) Coreman.

Add MCQ in this Category

If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.

Share Your MCQ