Deck 12: Abstract Data Types

Full screen (f)
exit full mode
Question
In a binary tree, each node has _______ two subtrees.

A) more than
B) less than
C) at most
D) at least
Use Space or
up arrow
down arrow
to flip the card.
Question
If A is the first data element input into a queue, followed by B, C, and D, then _______ is the first element to be removed.

A) A
B) B
C) C
D) D
Question
A(n) _______ list is also known as a queue.

A) LIFO
B) FIFO
C) unordered
D) ordered
Question
In postorder traversal of a binary tree, the left subtree is processed _______.

A) first
B) second
C) last
D) after the right subtree
Question
If A is the first data element input into a stack, followed by B, C, and D, then _______ is the first element to be removed.

A) A
B) B
C) C
D) D
Question
A stack is a _________ structure.

A) FIFO
B) LIFO
C) DIFO
D) SIFO
Question
The pop operation _______ of the stack.

A) deletes an item from the top
B) deletes an item from the bottom
C) inserts an item at the top
D) inserts an item at the bottom
Question
In _______ traversal of a binary tree, the right subtree is processed last.

A) preorder
B) inorder
C) postorder
D) any order
Question
In an inorder traversal of a binary tree, the root is processed _______.

A) first
B) second
C) last
D) two times
Question
In _______ traversal of a binary tree, the left subtree is processed last.

A) preorder
B) inorder
C) postorder
D) out of order
Question
The push operation _______ of the stack.

A) deletes an item from the top
B) deletes an item from the bottom
C) inserts an item at the top
D) inserts an item at the bottom
Question
In postorder traversal of a binary tree, the root is processed _______.

A) first
B) second
C) last
D) after the left subtree
Question
In an abstract data type, _______.

A) the ADT implementation is known
B) the ADT implementation is hidden
C) the ADT public operations are hidden
D) Nothing is hidden
Unlock Deck
Sign up to unlock the cards in this deck!
Unlock Deck
Unlock Deck
1/13
auto play flashcards
Play
simple tutorial
Full screen (f)
exit full mode
Deck 12: Abstract Data Types
1
In a binary tree, each node has _______ two subtrees.

A) more than
B) less than
C) at most
D) at least
C
2
If A is the first data element input into a queue, followed by B, C, and D, then _______ is the first element to be removed.

A) A
B) B
C) C
D) D
A
3
A(n) _______ list is also known as a queue.

A) LIFO
B) FIFO
C) unordered
D) ordered
B
4
In postorder traversal of a binary tree, the left subtree is processed _______.

A) first
B) second
C) last
D) after the right subtree
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
5
If A is the first data element input into a stack, followed by B, C, and D, then _______ is the first element to be removed.

A) A
B) B
C) C
D) D
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
6
A stack is a _________ structure.

A) FIFO
B) LIFO
C) DIFO
D) SIFO
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
7
The pop operation _______ of the stack.

A) deletes an item from the top
B) deletes an item from the bottom
C) inserts an item at the top
D) inserts an item at the bottom
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
8
In _______ traversal of a binary tree, the right subtree is processed last.

A) preorder
B) inorder
C) postorder
D) any order
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
9
In an inorder traversal of a binary tree, the root is processed _______.

A) first
B) second
C) last
D) two times
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
10
In _______ traversal of a binary tree, the left subtree is processed last.

A) preorder
B) inorder
C) postorder
D) out of order
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
11
The push operation _______ of the stack.

A) deletes an item from the top
B) deletes an item from the bottom
C) inserts an item at the top
D) inserts an item at the bottom
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
12
In postorder traversal of a binary tree, the root is processed _______.

A) first
B) second
C) last
D) after the left subtree
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
13
In an abstract data type, _______.

A) the ADT implementation is known
B) the ADT implementation is hidden
C) the ADT public operations are hidden
D) Nothing is hidden
Unlock Deck
Unlock for access to all 13 flashcards in this deck.
Unlock Deck
k this deck
locked card icon
Unlock Deck
Unlock for access to all 13 flashcards in this deck.