Questions
A binary tree whose every node has either zero or two children is called
- Complete binary tree
- Binary search tree
- Extended binary tree
- None of above
A variable P is called pointer if
- P contains the address of an element in DATA.
- P points to the address of first element in DATA
- P can store only memory addresses
- P contain the DATA and the address of DATA
Which of the following data structure can't store the non-homogeneous data elements?
- Arrays
- Records
- Pointers
- None
Which of the following data structure store the homogeneous data elements?
- Arrays
- Records
- Pointers
- None
Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called
- elementary items
- atoms
- scalars
- all of above
The memory address of the first element of an array is called
- floor address
- foundation address
- first address
- base address
Which of the following data structures are indexed structures?
- linear arrays
- linked lists
- both of above
- none of above
Which of the following is not the required condition for binary search algorithm?
- The list must be sorted
- there should be the direct access to the middle element in any sublist
- There must be mechanism to delete and/or insert elements in list
- none of above
Which of the following is not a limitation of binary search algorithm?
- must use a sorted array
- requirement of sorted array is expensive when a lot of insertion and deletions are needed
- there must be a mechanism to access middle element directly
- binary search algorithm is not efficient when the data elements are more than 1000.
Two dimensional arrays are also called
- tables arrays
- matrix arrays
- both of above
- none of above
The memory address of fifth element of an array can be calculated by the formula
- LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array
- LOC(Array[5])=Base(Array[5])+(5-lower bound), where w is the number of words per memory cell for the array
- LOC(Array[5])=Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array
- None of above
A data structure where elements can be added or removed at either end but not in the middle
- Linked lists
- Stacks
- Queues
- Deque
When inorder traversing a tree resulted E A C K F H D B G; the preorder traversal would return
- FAEKCDBHG
- FAEKCDHGB
- EAFKHDCBG
- FEAKDCHBG
Which of the following is two way list?
- grounded header list
- circular header list
- linked list with header and trailer nodes
- none of above
The difference between linear array and a record is
- An array is suitable for homogeneous data but hte data items in a record may have different data type
- In a record, there may not be a natural ordering in opposed to linear array.
- A record form a hierarchical structure but a lienear array does not
- All of above
Which of the following statement is false?
- Arrays are dense lists and static data structure
- data elements in linked list need not be stored in adjecent space in memory
- pointers store the next data element of a list
- linked lists are collection of the nodes that contain information part and next pointer
Binary search algorithm can not be applied to
- sorted linked list
- sorted binary trees
- sorted linear array
- pointer array
When new data are to be inserted into a data structure, but there is no available space; this situation is usually called
- underflow
- overflow
- housefull
- saturated
The situation when in a linked list START=NULL is
- underflow
- overflow
- housefull
- saturated
Which of the following name does not relate to stacks?
- FIFO lists
- LIFO list
- Piles
- Push-down lists