If the integers 3,6,9,12 are enqueued onto a queue in that order, what will be the result of the queue after running a dequeue?
6,9,12Correct
12
3
3,6,9
If the number of records to be sorted is small, then __________ sorting can be efficient.
SelectionCorrect
Heap
Merge
Bubble
in _____________ the parent should always be greater or equal than the child nodes.
min heap
max heapCorrect
up-heap
low-heap
In a 2-tree, nodes with 0 children are called ___________.
outside node
outer node
exterior node
external nodeCorrect
In a graph, if E=(u,v), it means _____________.
u is adjacent to v but v is not adjacent to u
e begins at processor u and ends at successor vCorrect
e begins at processor v and ends at successor u
v is adjacent to u but u is not adjacent to v
In a graph, if e=[u,v], then u and v are called _______________
Adjacent nodes
Neighbors
All of the choicesCorrect
End points of e
In a graph, the vertices represent the items being modeled.
TRUECorrect
In a linked list, the ____________ contains the address of next element in the list.
Info field
Start field
Next element field
Link fieldCorrect
In an extended binary tree, nodes with 2 children are called _________________.
Interior node
Internal nodeCorrect
Inner node
Domestic node
In binary trees, nodes with no successor are called _______________.
Final nodes
End nodes
Terminal nodesCorrect
Last nodes
In C++ using positions() means to Return a position list of all the nodes of the tree.
TrueCorrect
False
In C++ using size() means to Return the number/size of nodes in the tree.
TrueCorrect
False
In data structure, a pop is when you remove an element in the stack
TrueCorrect
False
In linked lists, there are no NULL links in ______________
linear doubly linked list
circular linked listCorrect
single linked list
linked list
In linked representation of stack, ___________ fields hold the elements of the stack.
TOP
LINK
NULL
INFOCorrect
In linked representation of stack, the null pointer of the last node in the list signals ____________
Bottom of the stackCorrect
In order to indicate that an object is not present in the map, we assume that there exists a special sentinel ___________ called end.
marker
iteratorCorrect
terminator
indicator
In order to indicate that an object is not present in the map, we assume that there exists a special sentinel ___________ called end.
iteratorCorrect
In priority queue, items are removed according to time they entered
True
FalseCorrect
In sequential implementation, the stack stored in a one-dimensional array
TrueCorrect
False
In the linked representation of the stack, __________ pointer behaves as the top pointer variable of stack.
Begin
Stop
Avail
StartCorrect
In the stack, if the user try to remove element from the empty stack then it is called as
Overflow of stack
Null operation
Empty collection
Underflow of stackCorrect
Indexing the ________________ element in the list is not possible in linked lists.
middleCorrect
Indicate which structure would be a more suitable choice for each of the following applications.
Tree, Binary search treeCorrect
Inserting an item into the stack when stack is not full is called ____________ while operation and deletion of item from the stack, when stack is not empty is called ________________ operation.
push, popCorrect
It doesn't require a binary tree to be traverse when using insertion or deletion.
True
FalseCorrect
It is a pile in which items are added at one end and removed from the other.
queueCorrect
It uses a hash function to compute an index into an array of buckets
Hash
Hash tableCorrect
Maps
Bucket Array
LINK is the pointer pointing to the ____________________.
predecessor nodeCorrect
Linked lists are best suited _____________________.
for the size of the structure and the data in the structure are constantly changingCorrect
Linked representation of binary tree needs ______ parallel arrays.
4
2
3Correct
5
Maps allows us to store elements so they can be located quickly using _________.
keysCorrect
arrays
search
coordinates
Marked the birth of graph theory
Kneiphof path
Preger river problem
Eularpath
Ko"nigsberg bridge problemCorrect
Moving from one node to another is called _______________
Traversing
Link hopping
Link hopping or pointer hoppingCorrect
Pointer hopping
New nodes are added to the ________ of the queue.
Front
Middle
Front and Back
BackCorrect
Nodes of a binary tree is in particular order
True
FalseCorrect
On average, searching in a binary search tree is faster than searching in a list.
FALSECorrect
Partition and exchange sort is ____________.
tree sort
quick sortCorrect
heap sort
bubble sort
pop() takes the first element of the stack.
True
FalseCorrect
Sequential implementation is represented as a linear list
True
FalseCorrect
Sorting algorithm can be characterized as ________________.
Both of the choicesCorrect
Simple algorithm which require the order of n2 comparisons to sort n items
Sophisticated algorithms that require the O(nlog2n) comparisons to sort items
None of these
Stack and Queue is a linear data structure.
TrueCorrect
False
Stack consists of five basic operations
TrueCorrect
False
Stack follows the strategy of ________________.
LRU
RANDOM
LIFOCorrect
FIFO
Stack imposes the discipline of First In First Out
True
FalseCorrect
Stack is also called the ________________.
Last in, first outCorrect
Stack is stored in a single dimensional array
TrueCorrect
False
stack() creates an empty stack.
TrueCorrect
False
Stacks can only be implemented using a linked list
True
FalseCorrect
State True or False for internal sorting algorithms. i. Internal sorting are applied when the entire collection if data to be sorted is small enough that the sorting can take place within main memory. ii. The time required to read or write is considered significant in evaluating the performance of internal sorting.
True, FalseCorrect
State True or False for internal sorting algorithms.i. Internal sorting are applied when the entire collection if data to be sorted is small enough that the sorting can take place within main memory.ii. The time required to read or write is considered significant in evaluating the performance of internal sorting.
True, True
False, True
True, FalseCorrect
False, False
The address of the first node in the list is stored in a separate location called
linker
headCorrect
initial
main
the association of keys and values defines a ____________.
searching
mappingCorrect
pairing
traversing
The average case occurs in linear search algorithm _______________.
when item is not the array at all
when item is somewhere in the middle of the arrayCorrect
when item is the last element in the array
item is the last element in the array or item is not there at all
The complexity of bubble sort algorithm.
O(n)
O(n2)Correct
O(logn)
O(n logn)
The complexity of linear search algorithm.
O(logn)
O(n logn)
O(n)Correct
O(n2)
The complexity of merge sort algorithm.
O(logn)
O(n)
O(n logn)Correct
O(n2)
The complexity of sorting algorithm measures the __________ as a function of the number n of items to be shorter.
average-case complexity
average time
case-complexity
running timeCorrect
The converse notion of a child, an immediate ancestor
ParentCorrect
Head
Ancestral
Top
The data structure that consists of finite set of _____________which are also called nodes.
edges
links
verticesCorrect
references
The data structure that stores data in the form of key and value pairs where every key is unique.
MapCorrect
Tree
Graph
Heap
The delete operation in the slack is called?
Push
PopCorrect
Remove
Erase
The depth of complete binary tree is given by ________________.
Dn = n log2n
Dn = n log2n+1
Dn = log2n
Dn = log2n+1Correct
The dummy header in linked list contains ____________________.
middle record of the actual data
pointer to the last record of the actual data
first record of the actual dataCorrect
last record of the actual data
The elements are removal from a stack in _________ order.
Hierarchical
Alternative
ReverseCorrect
Sequential
The following are some of the applications of heaps except
Priority Queue
StacksCorrect
Heap Sort
Graph Algorithms
The following code illustrates __________________
Set value to the header of the linked list
Traversing the linked listCorrect
Creating an element
Check the next element in the linked list
The heap is an efficient implementation of an abstract data type called _______________
linked lists
Heap-order
none of the choices
priority queueCorrect
The item search, insertion, and deletion operations all require the binary tree to be traversed.
TrueCorrect
False
The last step when inserting an element at the tail of a singly linked list is to assign a tail reference itself to the new created node
TrueCorrect
False
The method used by card sorter.
Insertion
Heap
Radix sortCorrect
Quick
The most important properties of Heap is that its _________________ is at its root.
child element
parent element
lowest elementCorrect
highest element
The operation commonly performed in graphs that store the graph in computer memory using a particular graph representation is called ________________
Traverse the graph
Clear the graph
Determine the graph if empty
Create the graphCorrect
The operation of processing each element in the list is known as ________________.
traversalCorrect
The ordering of a linked list follows the rule ________________