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 47268

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 71644

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

12 27872

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

17 30177

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

5 21208

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 31904

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 61453

Which sort show the best average behavior?

9 33200

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

5 14758

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

Fidelity, Infosys,

20 38589

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

College School Exams Tests, Microsoft,

7 59465

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

Infosys, NIC, TTA, Wipro,

42 94946

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

11 33904

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

BPO, Microsoft,

13 48562

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 41921


Post New Data Structures Questions

Un-Answered Questions { Data Structures }

Which one is the simplest sorting in data structure?

646


How can someone display singly linked list from first to last?

516


Can you declare an array without assigning the size of an array?

531


Write a program for Sorting an Array. Which sorting will you prefer?

599


What is a weighted graph?

577






Which is better stack or queue?

466


What are dynamic data structures?

667


State the different ways of representing expressions?

718


What is a hashers run?

512


Define graph?

746


Explain the steps to insert data into a singly linked list?

483


Briefly explain recursive algorithm?

637


Which sort is stable?

556


What are the properties of an algorithm?

521


Is treemap synchronized?

539