DSA Finals Flashcards
26.A condition occurs if the array is full and no new element can be accommodated.
a. overflow
b. underflow
c. full
d. empty
a. overflow
- Stores keys in the nodes in a way so that searching, insertion and deletion can be done efficiently.
a. struct
b. tree data structure
c. binary search tree
d. heap
c. binary search tree
- It is the mother node of a tree structure.
a. root
b. sibling
c. leaves
d. parent
a. root
- It is called the child node of the same parent.
a. ancestors
b. sibling
c. descendants
d. parent
b. sibling
- A data structure that is ideal in representing hierarchical data.
a. tree
b. stack
c. organizational chart
d. queue
a. tree
- Enables a program to move through the list in one direction, which is usually from the front of the list moving to the end of the list.
a. doubly linked list
b. singly linked list
c. circular linked list
d. doubly circular linked list
b. singly linked list
- Is the number of successive edges from source node to destination node.
a. edge
b. link
c. path length
d. height
c. path length
- A notation where the operators is written before the operands.
a. postfix
b. prefix
c. suffix
d. infix
b. prefix
- All successor of the parent node are called ________ nodes.
a. parent
b. root
c. child
d. sibling
c. child
- The insertion (or addition) stacks operation.
a. pop
b. push
c. top
d. remove
b. push
- The maximum number of children that exists for a node.
a. degree of a node
b. zero
c. root node
d. depth
a. degree of a node
- Is a collection of items that exhibits the behavior that the last item in is the first item out.
a. queue
b. stack
c. linked list
d. circular queue
b. stack
- A tree is binary if each node of it has a maximum of ______ branches.
a. zero
b. two
c. one
d. three
b. two
- Is a data structure that makes it easy to rearrange data without having to move data in memory.
a. array
b. stack array
c. linked list
d. queue array
c. linked list
- A type of binary tree in which each level of the tree is completely filled.
a. complete
b. restrict
c. strict
d. incomplete
a. complete
- Appending the second list to the end of the first list.
a. addition
b. concatenation
c. insertion
d. deletion
b. concatenation
- It is the line drawn from one node to other node in a tree.
a. flow lines
b. height
c. Link or Edge
d. path
c. Link or Edge
- Delete (or remove) an element from a queue (pop)
a. enqueue
b. push
c. dequeue
d. insert
c. dequeue
- It is the simplest form of a tree.
a. array
b. binary tree
c. linked list
d. linked list
b. binary tree
- Enables the program to move through the list in both directions.
a. circular linked list
b. singly linked list
c. doubly linked list
d. queue
c. doubly linked list
- A type of binary tree where every non-leaf node is filled with left and right sub-trees
a. complete
b. incomplete
c. strictly binary tree
d. complex
c. strictly binary tree
- Stores data and allow various operations on the data to access and change it.
a. data structure
b. int data type
c. primitive data type
d. abstract data type
d. abstract data type
- This node is located at the end of the tree.
a. Leaf
b. root
c. parent
d. level 5
a. Leaf
Question number 36 to 40 convert the given expression to prefix form
- A * C / D
a. * / A C D
b. / * A C D
c. / C D * A
d. * A / C D
b. / * A C D