Top 350+ Solved Data Structure and Algorithms (DSA) MCQ Questions Answer

From 31 to 45 of 305

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)

  • d. both (a) and (b)

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

  • b. malloc returns void pointer

Q. Which function returns a void pointers?

a. malloc returns integers pointer

b. calloc

c. both (a)and(b)

d. none of these

  • c. both (a)and(b)

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)

  • c. both (a)and(b)

Q. The____linked list can be processed in either direction.

a. singly

b. singly circular

c. doublyly

d. none of these

  • c. doublyly

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)

  • d. both (a) and (b)

Q. A node of doubly linked contains

a. pointer to predecessor

b. pointer to sucessor

c. both (a)and(b)

d. only(a)

  • c. both (a)and(b)

Q. Which is not dynamic memory allocation function?

a. malloc returns integers pointer

b. calloc

c. alloc

d. free

  • c. alloc

Q. NULL link is not present in…

a. singly linked list

b. doubly linked list

c. circular linked list

d. none of these

  • c. circular linked list

Q. In a circular linked list

a. components are all linked together in some sequential manner.

b. there is no beginning and no end.

c. components are arranged hierarchically.

d. forward and backward traversal within the list is permitte

  • b. there is no beginning and no end.

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

  • a. linked list

Q. Which of the following operations is performed more efficiently by doubly linked list than by singly linked list?

a. deleting a node whose location in given

b. searching of an unsorted list for a given item

c. inverting a node after the node with given location

d. traversing a list to process each node

  • a. deleting a node whose location in given
Subscribe Now

Get All Updates & News