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 49607

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 74896

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

12 29746

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

17 32269

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

5 22125

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 33859

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 64053

Which sort show the best average behavior?

9 34431

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

5 15889

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

Fidelity, Infosys,

20 41377

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

College School Exams Tests, Microsoft,

7 60699

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

Infosys, NIC, TTA, Wipro,

42 100062

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

11 35323

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

BPO, Microsoft,

13 51033

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 44460


Post New Data Structures Questions

Un-Answered Questions { Data Structures }

what are the applications that use Linked lists?

700


What is the difference between hashset and linkedhashset?

739


Write a Program for Delete an element from a doubly linked list.

695


What are lists?

744


What are dynamic data structures?

975


What are the classification of data structures?

691


Who invented quicksort?

725


What are different types of sorting algorithms?

684


What is dangling pointer and how to avoid it?

727


How is the front of the queue calculated in data structure?

624


How does arraylist size work?

678


How do you replace an element in an arraylist?

732


How do you solve a selection sort?

693


Explain about set and their types in a collection?

656


List the abstract operations in the set?

704