Monday, June 18, 2012

Technical interview question (Data Structure)


Data Structure – Technical interview questions


Write programs for Bubble Sort, Quick sort

Explain about the types of linked lists
How would you sort a linked list?

Write the programs for Linked List (Insertion and Deletion) operations?
What data structure would you mostly likely see in a non recursive implementation of a recursive algorithm?
A list is ordered from smaller to largest when a sort is called. Which sort would take the longest time to execute?
A list is ordered from smaller to largest when a sort is called. Which sort would take the shortest time to execute?
When will you  sort an array of pointers to list elements, rather than sorting the elements themselves?
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?
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?
Which sort show the best average behavior?
What is the average number of comparisons in a sequential search?
Which data structure is needed to convert infix notations to post fix notations?
What is a data structure?
What does abstract data type means?
How is it possible to insert different type of elements in stack?
Stack can be described as a pointer. Explain.
Write a Binary Search program
What do you mean by Base case, Recursive case, Binding Time, Run-Time Stack and Tail Recursion?
Explain quick sort and merge sort algorithms and derive the time-constraint relation for these.
Explain binary searching, Fibinocci search.
What do you mean by: Syntax Error, Logical Error, Runtime Error?
How can you correct these errors?
In which data structure, elements can be added or removed at either end, but not in the middle?
How will in order, preorder and post order traversals print the elements of a tree?
Parenthesis are never needed in prefix or postfix expressions. Why?
Which one is faster? A binary search of an ordered set of elements in an array or a sequential search of the 
elements.