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

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 advantages of linked list over an array for representing a list is________

  • (A) space used is less
  • (B) deletion is easier
  • (C) insertion is easier
  • (D) both (a) and (b)

A

Admin • 833.24K Points
Coach

Q. The address returned by malloc()is type casted because

  • (A) malloc returns integers pointer
  • (B) malloc returns void pointer
  • (C) malloc returns an integer value
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. Which function returns a void pointers?

  • (A) malloc returns integers pointer
  • (B) calloc
  • (C) both (a)and(b)
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. Select the correct statement

  • (A) free is used to release memory allocated by malloc
  • (B) free is used to release memory allocated by calloc
  • (C) both (a)and(b)
  • (D) only(a)but not(b)

A

Admin • 833.24K Points
Coach

Q. The____linked list can be processed in either direction.

  • (A) singly
  • (B) singly circular
  • (C) doublyly
  • (D) none of these

A

Admin • 833.24K Points
Coach

Q. A polynominal in single variable should be handled using__

  • (A) an array of structure
  • (B) singly linked list
  • (C) gll
  • (D) both (a) and (b)

A

Admin • 833.24K Points
Coach

Q. A node of doubly linked contains

  • (A) pointer to predecessor
  • (B) pointer to sucessor
  • (C) both (a)and(b)
  • (D) only(a)

A

Admin • 833.24K Points
Coach

Q. Each node in a linear list contains an item called____which points to the next node in the list.

  • (A) node
  • (B) link
  • (C) variable
  • (D) null

A

Admin • 833.24K Points
Coach

Q. Which is not dynamic memory allocation function?

  • (A) malloc returns integers pointer
  • (B) calloc
  • (C) alloc
  • (D) free

A

Admin • 833.24K Points
Coach

Q. The function that allocates requested size of bytes and returns a pointer to the first byte of the allocated space is

  • (A) realloc
  • (B) malloc
  • (C) free
  • (D) none of these