O GoConqr está de visual novo! Conte para nós o que você achou.

Quiz

Data Structures 1 - Review 2

jshin13 27 perguntas Atualizado em 19 fev 2016

Fazer o quiz

Perguntas do quiz (27)

  1. 1Binary search trees are efficient because they guarantee Θ(logn) access time.
    1. AVerdadeiro
    2. BFalso
  2. 2Every subtree of an AVL tree is also a Binary Search tree.
    1. AVerdadeiro
    2. BFalso
  3. 3Suppose that X is a B-tree leaf containing 41 entries (keys) and having at least one sibling. Which statement is true?
    1. AAny sibling of X is also a leaf.
    2. BAny sibling of X contains at least 41 entries.
    3. CThe parent of X has exactly 42 entries.
    4. DX has at least 41 siblings.
  4. 4Suppose that a B-tree has MAXIMUM branching of 11 and that a node already contains the keys/values 1 through 10. If a new value, 11, is added to this node, the node will split into two nodes. What values will be in these two nodes?
    1. AThe first node will have 1 through 5 and the second node will have 6 through 11.
    2. BThe first node will have 1 through 10 and the second node will have only 11.
    3. CThe first node will have 1 through 5 and the second node will have 7 through 11.
    4. DThe first node will have 1 through 6 and the second node will have 7 through 11.
    5. EThe first node will have only 1 and the second node will have the rest of the numbers.
  5. 5Which statement is true for a B-tree?
    1. AAll keys/entries of a node are greater than or equal to the keys/entries in the node's children.
    2. BAll leaves are at the exact same depth.
    3. CAll nodes contain the exact same number of keys/entrees.
    4. DAll non-leaf nodes have the exact same number of children.
  6. 6In an AVL tree, a DOUBLE left rotation is done on a node when:
    1. AThe balance value of the node is 2 and the right child's balance value is -1
    2. BThe balance value of the node is 1 and the right child's balance value is -2
    3. CThe balance value of the node is 1 and the right child's balance value is 2
    4. DThe balance value of the node is 2 and the right child's balance value is 0 or 1
    5. EThe balance value of the node is -2 and the left child's balance value is 0 or -1
    6. FThe balance value of the node is -2 and the left child's balance value is 1
  7. 7The depth of a node in a tree is equal to the number of its ancestors.
    1. AVerdadeiro
    2. BFalso
  8. 8In a B-tree of order 8, the ROOT node must always have at least 4 subtrees.
    1. AVerdadeiro
    2. BFalso
  9. 9In a height balanced binary search tree (AVL), when do you make an adjustment in the tree?
    1. AWhen the height difference between two sides of a node is greater than or equal to one
    2. BWhen the height difference between two sides of a node is greater than or equal to two
    3. CWhen the balance value of a node is equal to -1
    4. DWhen the height difference between two sides of a node is greater than or equal to zero
  10. 10Suppose that a non-leaf node in a B-tree has 41 entries (keys). How many children will this node have?
    1. A41
    2. B82
    3. C42
    4. D2
    5. E40

Informações

Descrição
Quiz sobre Data Structures 1 - Review 2, criado por jshin13 em 10-03-2015.
Autor
jshin13
Idioma
English
Visualizações
14
Histórico
Criado em 10 mar 2015 · atualizado em 19 fev 2016
Avaliação
Ainda sem avaliações
Avalie este quiz
Avalie este quiz

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?