1) What is data structure?
Data structure refers to the way data is organized and manipulated. It seeks to find ways to make data access more efficient. When dealing with data structure, we not only focus on one piece of data, but rather different set of data and how they can relate to one another in an organized manner. 2) Differentiate file structure from storage structure.
Basically, the key difference is the memory area that is being accessed. When dealing with the structure that resides the main memory of the computer system, this is referred to as storage structure. When dealing with an auxiliary structure, we refer to it as file structure. 3) When is a binary search best applied?
A binary search is an algorithm that is best applied to search a list when the elements are already in order or sorted. The list is search starting in the middle, such that if that middle value is not the target search key, it will check to see if it will continue the search on the lower half of the list or the higher half. The split and search will then continue in the same manner. 4) What is a linked list?
A linked list is a sequence of nodes in which each node is connected to the node following it. This forms a chain-like link of data storage. 5) How do you reference all the elements in a one-dimension array?
To do this, an indexed loop is used, such that the counter runs from 0 to the array size minus one. In this manner, we are able to reference all the elements in sequence by using the loop counter as the array subscript.
Re: Data Structures Interviews Question And Answers
Thanks for such a great and informative information and link for download tutorial for interview question and answer. This is really very useful tutorial for all the people for doing preparation of data-structure interview question.