architecture Online Quiz - 34

architecture Online Quiz - 34

20 Questions Published

Questions

Question 1 Multiple Choice (Single Answer)

A binary tree whose every node has either zero or two children is called

  1. Complete binary tree
  2. Binary search tree
  3. Extended binary tree
  4. None of above
Question 2 Multiple Choice (Single Answer)

A variable P is called pointer if

  1. P contains the address of an element in DATA.
  2. P points to the address of first element in DATA
  3. P can store only memory addresses
  4. P contain the DATA and the address of DATA
Question 3 Multiple Choice (Single Answer)

Which of the following data structure can't store the non-homogeneous data elements?

  1. Arrays
  2. Records
  3. Pointers
  4. None
Question 4 Multiple Choice (Single Answer)

Which of the following data structure store the homogeneous data elements?

  1. Arrays
  2. Records
  3. Pointers
  4. None
Question 5 Multiple Choice (Single Answer)

Each data item in a record may be a group item composed of sub-items; those items which are indecomposable are called

  1. elementary items
  2. atoms
  3. scalars
  4. all of above
Question 6 Multiple Choice (Single Answer)

The memory address of the first element of an array is called

  1. floor address
  2. foundation address
  3. first address
  4. base address
Question 7 Multiple Choice (Single Answer)

Which of the following data structures are indexed structures?

  1. linear arrays
  2. linked lists
  3. both of above
  4. none of above
Question 8 Multiple Choice (Single Answer)

Which of the following is not the required condition for binary search algorithm?

  1. The list must be sorted
  2. there should be the direct access to the middle element in any sublist
  3. There must be mechanism to delete and/or insert elements in list
  4. none of above
Question 9 Multiple Choice (Single Answer)

Which of the following is not a limitation of binary search algorithm?

  1. must use a sorted array
  2. requirement of sorted array is expensive when a lot of insertion and deletions are needed
  3. there must be a mechanism to access middle element directly
  4. binary search algorithm is not efficient when the data elements are more than 1000.
Question 10 Multiple Choice (Single Answer)

Two dimensional arrays are also called

  1. tables arrays
  2. matrix arrays
  3. both of above
  4. none of above
Question 11 Multiple Choice (Single Answer)

The memory address of fifth element of an array can be calculated by the formula

  1. LOC(Array[5]=Base(Array)+w(5-lower bound), where w is the number of words per memory cell for the array
  2. LOC(Array[5])=Base(Array[5])+(5-lower bound), where w is the number of words per memory cell for the array
  3. LOC(Array[5])=Base(Array[4])+(5-Upper bound), where w is the number of words per memory cell for the array
  4. None of above
Question 12 Multiple Choice (Single Answer)

A data structure where elements can be added or removed at either end but not in the middle

  1. Linked lists
  2. Stacks
  3. Queues
  4. Deque
Question 13 Multiple Choice (Single Answer)

When inorder traversing a tree resulted E A C K F H D B G; the preorder traversal would return

  1. FAEKCDBHG
  2. FAEKCDHGB
  3. EAFKHDCBG
  4. FEAKDCHBG
Question 14 Multiple Choice (Single Answer)

Which of the following is two way list?

  1. grounded header list
  2. circular header list
  3. linked list with header and trailer nodes
  4. none of above
Question 15 Multiple Choice (Single Answer)

The difference between linear array and a record is

  1. An array is suitable for homogeneous data but hte data items in a record may have different data type
  2. In a record, there may not be a natural ordering in opposed to linear array.
  3. A record form a hierarchical structure but a lienear array does not
  4. All of above
Question 16 Multiple Choice (Single Answer)

Which of the following statement is false?

  1. Arrays are dense lists and static data structure
  2. data elements in linked list need not be stored in adjecent space in memory
  3. pointers store the next data element of a list
  4. linked lists are collection of the nodes that contain information part and next pointer
Question 17 Multiple Choice (Single Answer)

Binary search algorithm can not be applied to

  1. sorted linked list
  2. sorted binary trees
  3. sorted linear array
  4. pointer array
Question 18 Multiple Choice (Single Answer)

When new data are to be inserted into a data structure, but there is no available space; this situation is usually called

  1. underflow
  2. overflow
  3. housefull
  4. saturated
Question 19 Multiple Choice (Single Answer)

The situation when in a linked list START=NULL is

  1. underflow
  2. overflow
  3. housefull
  4. saturated
Question 20 Multiple Choice (Single Answer)

Which of the following name does not relate to stacks?

  1. FIFO lists
  2. LIFO list
  3. Piles
  4. Push-down lists