___________ sorting algorithm is frequently used when n is small, where n is the total number of elements.
Heap
Quick
Bubble
InsertionCorrect
_____________ order is the best possible for array sorting algorithm which sorts n item.
O(n+logn)Correct
O(n logn)
O(n2)
O(logn)
____________________ is not the component of data structure.
None of theseCorrect
____________________ level is where the model becomes compatible executable code.
Implementation levelCorrect
"The elements are removal from a stack in _________ order. "
ReverseCorrect
"This form of access is used to add/remove nodes from a stack. "
DequeueCorrect
A _______________ is a data structure that organizes data similar to a line in the supermarket, where the first one in line is the first one out.
Queue linked listCorrect
A bank simulation of its teller operation to see how waiting times would be affected by adding another teller.
QueueCorrect
A binary search cannot be applied to a tree.
FALSECorrect
A binary search tree is another name for a binary tree.
FALSECorrect
A binary search tree whose left subtree and right subtree differ in height by at most 1 unit is called ____________________.
AVL treeCorrect
A binary tree is a tree in which each node can have zero, one, or two children.
TRUECorrect
A Binary Tree that stores a collection of elementswith their associated keys at its nodes.
Hash map
Complete Binary Tree
Priority Queue
HeapCorrect
A connected graph T without any cycles is called ________________.
no cycle graph
circular graph
free graphCorrect
non-cycle graph
A connected graph T without any cycles is called a ____________.
Free tree
all of theseCorrect
A tree
A tree graph
A Data Structure that can be accessed only at one of its ends for storing and retrieving data.
Arrays
StacksCorrect
Queues
Linked Lists
A dictionary of words used by a spelling checker to be built and maintained.
Binary search treeCorrect
A hierarchical data structure
TreesCorrect
Stacks
Lists
Queues
A leaf in a tree is a node with no children.
TRUECorrect
A linear list in which the last node points to the first node.
circular linked listCorrect
none of these
doubly linked list
singly linked list
A linear list in which the pointer points only to the successive node.
singly linked listCorrect
A list may be linear or nonlinear, depending on its implementation.
FALSECorrect
A NULL pointer does not always mean empty.
True
FalseCorrect
A pointer variable which contains the location at the top element of the stack.
TopCorrect
A program keeping track of where canned goods are located on a shelf.
StackCorrect
A program to keep track of patients as they check into a medical clinic, assigning patients to doctors on a first-come, first-served basis.
QueueCorrect
A program to keep track of the soccer teams in a city tournament
TreeCorrect
A program to maintain the routes in an airline.
GraphCorrect
A program to receive data that is to be saved and processed in the reverse order.
StackCorrect
A queue abstract data structure is a list of collection with the restriction that insertion and deletion can perform at the same end
True
FalseCorrect
A queue applies FIFO ordering
TrueCorrect
False
A queue displays LIFO behavior.
FALSECorrect
A simple sorting algorithm that works the way we sort playing cards in our hands.
Searching
Deletion
Traversal
InsertionCorrect
A stack and a queue are different names for the same ADT.
FALSECorrect
A stack displays FIFO behavior.
FALSECorrect
A structure that is showing some descendants is also a tree.
TrueCorrect
False
A tree can not be empty with no nodes
True
FalseCorrect
A tree is an example of a linear data structure
True
FalseCorrect
A word processor to have a PF key that causes the preceding command to be redisplayed. Every time the PF key is pressed, the program is to show the command that preceded the one currently displayed
StackCorrect
Accessing a linked list from head node until the last node of the list is
Updating
Inserting
TraversingCorrect
Searching
after creating a Max Heap we then swap the first node to the last node and delete ________________.
both nodes
last nodeCorrect
all nodes
first node
Algorithm that finds the location of the smallest element in the unsorted portion of the list and moves it to the top of the unsorted portion of the list
Insertion Sort
Selection SortCorrect
Merge Sort
Bubble Sort
Algorithms that use a list must know whether the list is array based or linked.
FALSECorrect
An Abstract Data Type that stores elements hierarchically.
Stacks
TreesCorrect
Root
Linked Lists
An electronic address book ordered by name
Binary search treeCorrect
Another name for directed graph.
Diregraph
Dir-graph
Direct graph
DigraphCorrect
Any node of a tree that has child node
internal nodesCorrect
prime nodes
external nodes
head nodes
Any node that does not have child nodes are also called
empty nodes
internal nodes
leaf nodesCorrect
single nodes
Binary search algorithm cannot be applied to _______________.
sorted linear array
sorted linked list
sorted binary trees
pointer arrayCorrect
Binary search trees are ordered.
TRUECorrect
C++ Stack Operation to push the element on the top of the stack
pushEL()
top(el)
topEL()
push(el)Correct
Clr() is used to clear the stack.
True
FalseCorrect
Compare to Queue, In Heap you can __________ the whole collection.
Retrieve
AccessCorrect
Return
Add
Deleting an element is only allowed in a singly linked list
True
FalseCorrect
Deletion operation is done using __________ in a queue.
frontCorrect
dequeue() takes the last element from the queue.
True
FalseCorrect
Describe the following code
None of the choices
A function that will insert a node in an arbitrary positionCorrect
Identifies the current and previous data element in the linked list
Traverse a linked list
Doubly linked list should have maximum size to managed the last node of the list
True
FalseCorrect
Each node in a linked list must contain at least ___________________.
Three fields
Five fields
Two fieldsCorrect
Four fields
Each node in singly linked list has _______ fields.
4
2Correct
1
3
Enqueue is also called push
TrueCorrect
False
Every node (except the last node) contains the _____________________?
element of the next node
link of the next node
address of the next nodeCorrect
data of the next node
Every node N in a binary tree T except the root has a unique parent called the ________ of N.
Precursor
Antecedents
Forerunner
PredecessorCorrect
Explode is used to delete an element from the stack
True
FalseCorrect
Given an empty array with 5 in size and the following operations have been executedEnqueue(8)Enqueue(1)Enqueue(7)Enqueue(2)Enqueue(6)What will happen if an attempt to execute enqueue(3)?
The element will be added into the rear of the array
The element will be added in front of the array
None of the choices
A queue overflow error will occurCorrect
Given the code, the program will ____________
Delete a node
Create a nodeCorrect
Store same value to head and tail of the linked list
Set null value to the next node
Given the following code which contains THREE pushes and ONE POP, what will be output of the stack?stack<int> s;spush(1);spush(2);spush(3);cout<<spop;
3
123
1233
12Correct
Given the stack with elements AMAOED, D being the top of the stack What element(s) will remain in the stack after applying pop() four times?
AMAO
AMCorrect
ED
DEOA
Graph G is _____________ if for any pair u, v of nodes in G, there is a path from u to v or path from v to u.
Directly connected
Widely connected
Literally connected
Unliterally connectedCorrect
Graphs consists of the following :
vertices and edgesCorrect
none of the choices
headers and tails
pointers and arrays
Herder node is used as sentinel in __________________.
Binary treeCorrect
Identify the data structure which allows deletions at both ends of the list but insertion at only one end.
Input restricted dequeueCorrect
If a graph has a directional flow, the graph is defined to be ______________
connected
directedCorrect
not connected
undirected
If a linked list is unordered, we can insert a new item at either the end or the beginning.
TrueCorrect
False
If Priority queues can be implemented by Heaps, Heaps can be implemented by ___________?