Data Structure & Algorithms Questions and Answers

Take Exam

Data Structures and Algorithms (DSA) form the foundation of programming and are highly important in campus placement exams and coding interviews. This resource includes Data Structure & Algorithms Questions with Answers designed to help students prepare for real interview patterns from companies such as TCS, Wipro, Cognizant, Capgemini, Amazon, and Infosys. These questions include programming logic, complexity analysis, and practical coding-based MCQs aligned with competitive tests. Concepts covered include arrays, stacks, queues, trees, hashing, recursion, sorting, and searching algorithms. The content also integrates programming interview questions with explanations, helping learners understand both logic and implementation. Practicing these questions supports placement readiness and improves problem-solving skills needed for technical and HR interview rounds.

Data Structure & Algorithms

Showing 10 of 77 questions

41. Two dimensional arrays are also called

  • tables arrays
  • matrix arrays
  • both of the above
  • none of the above
Show Answer Report

42. The term "push" and "pop" is related to the

  • Array
  • Lists
  • stacks
  • all of above
Show Answer Report

43. A data structure where elements can be added or removed at either end but not in the middle is referred as

  • Linked lists
  • Stacks
  • Queues
  • Deque
Show Answer Report

44. The following sorting algorithm is of divide ad-conquer type

  • Bubble sort
  • Insertion sort
  • Quick sort
  • None of the above
Show Answer Report

45. An algorithm that calls itself directly or indirectly is known as

  • Recursion
  • Polish notation
  • Traversal algorithm
  • None of the above
Show Answer Report

46. The elements of an array are stored successively in memory cells because

  • by this way computer can keep track only the address of the first element and the addresses of other elements can be calculated
  • the architecture of computer memory does not allow arrays to store other than serially
  • A and B both false
  • A and B both true
Show Answer Report

47. The memory address of the first element of an array is called

  • base address
  • floor address
  • foundation address
  • first address
Show Answer Report

48. The memory address of fifth element of an array can be calculated by the formula

  • LOC(Array[5])=Base(Array[5])+(5-lower boun(D). where w is the number of words per memory cell for the array words per memory cell for the array
  • LOC(Array[5]=Base(Array[4])+(5-upper boun(D), where w is the number of words per memory cell for the array
  • LOC(Array[5]=Base(Array)+w(5-lower boun(D), where w is the number of words per memory cell for the array words per memory cell for the arrray
  • None of the above
Show Answer Report

49. The following data structure can't store the non-homogeneous data elements

  • Arrays
  • Records
  • Pointers
  • None of the above
Show Answer Report

50. The in order traversal of tree will yield a sorted listing of element of tree in

  • Binary trees
  • Binary search trees
  • Heaps
  • None of above
Show Answer Report
Questions and Answers for Competitive Exams Various Entrance Test