51 Data Structures and Algorithms Lab Exam PDF Free
51 Data Structures and Algorithms Lab Exam PDF Free
Question 1
Correct
A _______ queue acts like a queue in that you dequeue an item by removing it from the front.
Select one:
a. INTERNAL
b. PRIORITY
c. DIRECT
Question 2
Correct
A sorting algorithm is said to be _________ if two objects with equal keys appear in the same order in sorted output as they appear in the input
unsorted array.
Select one:
a. STABLE
b. UNSTABLE
c. AT REST
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 1/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 3
Correct
A RADIX is a specific tree based data structure in which all the nodes of tree are in a specific order.
Select one:
a. TRUE
b. FALSE
Question 4
Correct
A binary tree is either empty or consists of a node called the root together with two binary trees called the left subtree and the right subtree.
Select one:
a. FALSE
b. BOTH A AND B
c. TRUE
Question 5
Correct
_______ memory is used to store local variables and function call while heap memory is used to store objects in Java.
Select one:
a. SORT
b. STACK
c. RADIX
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 2/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 6
Correct
___________ is a linear data structure in which the operations are performed based on FIFO (First In First Out) principle and the last position is
connected back to the first position to make a circle.
Select one:
a. CIRCULAR QUEUE
b. LONG QUEUE
c. SPIRAL QUEUE
Question 7
Correct
Select one:
a. SORT
b. ALGORITHM
c. QUEUE
Question 8
Correct
Select one:
a. QUICKSORT
b. SLOWSORT
c. HEAP SORT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 3/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 9
Correct
_________ is a linear data structure which follows a particular order in which the operations are performed.
Select one:
a. FUNCTION
b. STACK
c. SEARCH
Question 10
Correct
Select one:
a. TORIAL HEAP
b. MAX HEAP
c. MIN HEAP
Question 11
Correct
In _________sorting data is stored outside memory (like on disk) and only loaded into memory in small chunks.
Select one:
a. INTERNAL
b. ZERO
c. EXTERNAL
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 4/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 12
Correct
Select one:
a. NONE OF THE ABOVE
b. TRUE
c. FALSE
Question 13
Correct
This transformation consists of replacing every null subtree of the original tree with “special nodes.” The nodes from the original tree are then
internal nodes , while the “special nodes” are external nodes.
Select one:
a. EXTENDED BINARY TREE
Question 14
Correct
_____________ have less memory consumption as compared to linear queue because while doing insertion after deletion operation it allocate
an extra space the first remaining vacant but in circular queue the first is used as it comes immediate after the last.
Select one:
a. CIRCULAR QUEUE
b. BUBBLE QUEUE
c. NULL QUEUE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 5/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 15
Correct
Select one:
a. DATA TREE
b. BINARY
c. BINARY TREE
Question 16
Correct
_________Algorithm is used to arrange N elements in ascending order, and for that, you have to begin with 0th element and compare it with
the first element.
Select one:
a. BUBBLE SORT
b. RADIX SORT
c. HEAP SORT
Question 17
Correct
The ______ is a straightforward process of sorting values. In this method, to sort the data in ascending order, the 0thelement is compared with
all other elements.
Select one:
a. SELECTION SORT
b. HEAP SORT
c. BUBBLE SORT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 6/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 18
Correct
A ___________ is a tree with some extra leaf nodes at depth n+1, all toward the left.
Select one:
a. COMPLETE BINARY TREE
Question 19
Correct
A _____________is a binary tree in which every level, except possibly the last, is completely filled, and all nodes are as far left as possible.
Select one:
a. FULL BINARY TREE
Question 20
Correct
Select one:
a. DEQUEUE
b. QUEUE
c. ENQUEUE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 7/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 21
Correct
In a _____ skewed, most of the nodes have the leftchild without corresponding right child.
Select one:
a. RIGHT
b. LEFT
c. ZERO
Question 22
Correct
Select one:
a. string
b. range
c. massive
Question 23
Correct
________is any process of arranging items systematically, and has two common, yet distinct meanings: ordering: arranging items in a sequence
ordered by some criterion; categorizing: grouping items with similar properties.
Select one:
a. EXTRACTING
b. SORTING
c. LOOPING
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 8/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 24
Correct
__________ is a common operation in many applications, and efficient algorithms to perform it have been developed.
Select one:
a. SORTING
b. STACK
c. FUNCTION
Question 25
Correct
A binary tree is a finite set of nodes that is either empty or consist a root node and two disjoint binary trees called the left subtree and the
right subtree.
Select one:
a. FALSE
b. TRUE
Question 26
Correct
Select one:
a. IN PLACE
b. PLACE
c. OUTPLACE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 9/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 27
Correct
Select one:
a. YES
c. NO
Question 28
Correct
Select one:
a. START AT THE ROOT NODE
Question 29
Correct
Select one:
a. HEAP
b. MERGE
c. RADIX
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 10/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 30
Correct
Sorting is the process of arranging objects in a certain sequence or order according to specific rules.
Select one:
a. FALSE
c. TRUE
Question 31
Correct
Binary Search Tree, is a node-based binary tree data structure which has the following properties: The left subtree of a node contains only
nodes with keys lesser than the node's key. The right subtree of a node contains only nodes with keys greater than the node's key.
Select one:
a. NULL
b. FALSE
c. TRUE
Question 32
Correct
A ___________ is a specific tree based data structure in which all the nodes of tree are in a specific order.
Select one:
a. HEAP
b. RADIX
c. QUICKSORT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 11/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 33
Correct
Merge sort is more efficient and works faster than quick sort in case of larger array size or datasets.
Select one:
a. FALSE
b. TRUE
Question 34
Correct
The following are other terms of Binary search tree. EXCEPT ONE.
Select one:
a. half interval search
b. search loop
c. binary chop
Question 35
Correct
A ____________ is a tree in which every node other than the leaves has two children.
Select one:
a. BINARY SEARCH TREE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 12/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 36
Correct
Select one:
a. DOUBLY ENDED QUEUE
b. CIRCULAR QUEUE
c. DEQUENT QUEUE
Question 37
Correct
A binary tree where the left child contains only nodes with values less than the parent node, and where the right child only contains nodes
with values greater than or equal to the parent.
Select one:
a. NO
c. YES
Question 38
Correct
The _________ is slightly faster than the heap sort for larger sets, but it requires twice the memory of the heap sort because of the second
array.
Select one:
a. BUBBLESORT
b. QUICKSORT
c. MERGE SORT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 13/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 39
Correct
___________ is another sorting technique and has an algorithm that has a reasonably proficient space-time complexity - O(n log n) and is quite
trivial to apply.
Select one:
a. HEAP SORT
b. MERGE SORT
c. BUBBLE SORT
Question 40
Correct
QuickSort is an___________ algorithm because we do swapping of elements according to pivot's position (without considering their original
positions).
Select one:
a. STABLE
b. NULL
c. UNSTABLE
Question 41
Correct
A Binary Tree is labeled if every node is assigned a label and a Binary Tree is __________ if nodes are not assigned any label.
Select one:
a. STATIONARY
b. UNLABELED
c. LABELED
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 14/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 42
Correct
This is the Best Sorting Algorithm That the time complexity of Quicksort is O(n log n) in the best case, O(n log n) in the average case, and
O(n^2) in the worst case.
Select one:
a. RADIX
b. HEAP
c. QUICKSORT
Question 43
Correct
Select one:
a. BUBBLE
b. HANDLE
c. SELECTION
Question 44
Correct
Select one:
a. CONTAINS 3N-1
b. CONTAINS N-1
c. CONTAINS 2N-1
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 15/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 45
Correct
A ________ is a complete binary tree in which the value in each internal node is greater than or equal to the values in the children of that node.
Select one:
a. MAX HEAP
b. MAX LOOP
c. MAX SORT
Question 46
Correct
Select one:
a. NULL
b. PRIORITY
c. DIRECT
Question 47
Correct
Select one:
a. FIRST AND FIRST OUT
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 16/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Question 48
Correct
A binary tree is considered full if every node has exactly 0 or 2 children. A binary tree is considered incomplete if every level is full except the
last, and all nodes are pushed as far left as possible.
Select one:
a. YES
b. NO
c. NULL
Question 49
Correct
Bubble Sort is based on the idea of repeatedly comparing pairs of ________ELEMENTS swapping their positions if they exist in the wrong
order.
Select one:
a. ADJACENT
b. FORMAL
c. CONNECTED
Question 50
Correct
A binary _______ is a complete binary tree which satisfies the heap ordering property.
Select one:
a. HEAP
b. CROSS
c. LEAF
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 17/18
11/3/22, 12:54 AM Midterm Exam: Attempt review
Jump to...
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=49943&cmid=4754 18/18