Data Structures Interview Questions
Questions Answers Views Company eMail

What is the maximum total number of nodes in a tree that has N levels? Note that the root is level (zero)

CSC, National Instruments, Sasken, Sybrant Technologies,

18 49433

How many different binary trees and binary search trees can be made from three nodes that contain the key values 1, 2 & 3?

Accenture, Amazon, College School Exams Tests, iGate, Microsoft, TCS, Wipro,

28 74647

A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?

12 29546

A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?

17 32108

When will you sort an array of pointers to list elements, rather than sorting the elements themselves?

5 22063

The element being searched for is not found in an array of 100 elements. What is the average number of comparisons needed in a sequential search to determine that the element is not there, if the elements are completely unordered?

Morgan Stanley, Wipro,

11 33717

What is the average number of comparisons needed in a sequential search to determine the position of an element in an array of 100 elements, if the elements are ordered from largest to smallest?

ABB, SDE,

19 63878

Which sort show the best average behavior?

9 34327

What is the average number of comparisons in a sequential search?

5 15791

Which data structure is needed to convert infix notations to post fix notations?

Fidelity, Infosys,

20 41135

What do you mean by: Syntax Error, Logical Error, Runtime Error?

College School Exams Tests, Microsoft,

7 60583

In which data structure, elements can be added or removed at either end, but not in the middle?

Infosys, NIC, TTA, Wipro,

42 99723

How will inorder, preorder and postorder traversals print the elements of a tree?

11 35218

Parenthesis are never needed in prefix or postfix expressions. Why?

BPO, Microsoft,

13 50869

Which one is faster? A binary search of an orderd set of elements in an array or a sequential search of the elements.

Syntel, TCS,

22 44254


Post New Data Structures Questions

Un-Answered Questions { Data Structures }

How many types of priority queue are there?

692


Write a program for reversing the Single Linked List?

898


What is the difference between static and dynamic data?

670


What are red-black trees?

691


What is an example of an algorithm?

664


Differentiate between arraylist and linkedlist.

822


Why is an array homogeneous?

633


Is list same as array?

617


What are the two traversal strategies used in traversing a graph?

739


What are the types of binary tree?

680


What is the difference between collection and collections?

763


How dynamic arrays are created?

645


What is the difference between sorting and classifying?

679


What is selection in an algorithm?

657


What is queue example?

668