ALGORITHMS OBJECTIVE ASSESSMENT
ACTUAL EXAM 2025/2026 COMPLETE
QUESTIONS BANK AND CORRECT
DETAILED ANSWERS WITH RATIONALES ||
100% GUARANTEED PASS
<NEWEST VERSION>
1. Algorithm- ANSWER ✓A set of instructions followed step by step to solve
a problem
2. What are the 6 Characteristics of an Algorithm? - ANSWER ✓Unambiguity
Finiteness -finite number of steps, defined endpoint or output
Well-defined inputs
Effectiveness & Feasibility - doable and practicable.
Language independence
Well-defined outputs
3. What are the 8 Factors of an Algorithm? - ANSWER ✓Modularity
Correctness
Maintainability
Functionality
Robustness
User-friendly
Simplicity
Extensibility
4. What is a straightforward type of algorithm that exhaustively tries all
possible solutions? - ANSWER ✓Brute Force Algorithm
,5. What algorithm method breaks a problem into smaller, similar subproblems
and applies itself recursively? - ANSWER ✓Recursive Algorithm
6. Which type of algorithm is used to transform data into a secure, unreadable
form using cryptographic techniques? - ANSWER ✓Encryption Algorithm
7. Which type of algorithm explores potential solutions by undoing choices
when they lead to an incorrect outcome? - ANSWER ✓Backtracking
Algorithm
8. Which type of algorithm is designed to find a specific target within a
dataset? - ANSWER ✓Searching Algorithm
9. Which type of algorithm aims to arrange elements in a specific order? -
ANSWER ✓Sorting Algorithm
10.Which type of algorithm converts data into a fixed-size hash value for rapid
access in hash tables? - ANSWER ✓Hashing Algorithm
11.Which algorithm breaks a complex problem into smaller subproblems and
combines their solutions? - ANSWER ✓Divide and Conquer Algorithm
12.Which type of algorithm makes locally optimal choices at each step in the
hope of finding a global optimum? - ANSWER ✓Greedy Algorithm
13.Which type of algorithm stores and reuses intermediate results to enhance
efficiency in solving complex problems? - ANSWER ✓Dynamic
Programming Algorithm
14.Which type of algorithm utilizes randomness in its steps to achieve a
solution? - ANSWER ✓Randomized Algorith
15.List.append(x) - ANSWER ✓ adds x at last element
16.List.pop(x) - ANSWER ✓ removes the x element
17.List.remove(x) - ANSWER ✓ removes the x value
,18.Tuple.count(x) - ANSWER ✓ returns how many times x is in tuple
19.Tuple.index(x) - ANSWER ✓ finds where x is located in the tuple
20.Set.update(set2) - ANSWER ✓ adds new set to current set
21.Set.add(x) - ANSWER ✓ adds x to set
22.Set.remove(x) - ANSWER ✓ finds x and removes from set
23.Binary Search Tree (BST) - Time Complexity - ANSWER ✓ MUST BE
SORTED
O(Log N) - O(N)
24.Graph - Vertex / Vertices - ANSWER ✓ Any node in the graph
25.Graph - Adjacency - ANSWER ✓ Any connection of the vertex
26.Graph - Edge - ANSWER ✓ The connection between vertices
27.Graph - Breadth Search - ANSWER ✓ TOP DOWN Approach
28.Graph - Depth Search - ANSWER ✓ TOP to FURTHEST LEFT Approach
29.Dijkstras's Algorithm - ANSWER ✓ Finds the shortest path from vertex to
vertex.
30.Linear Search - ANSWER ✓ Sort Doesn't Matter
O(N)
31.Binary Search - ANSWER ✓ DIVIDE AND CONQUER
O(Log N) - O(N²)?
32.def find(lst, item, low, high, indent):
"""
, Finds index of string in list of strings, else -1.
Searches only the index range low to high
Note: Upper/Lower case characters matter
"""
print(indent, 'find() range', low, high)
range_size = (high - low) + 1
mid = (high + low) // 2
if item == lst[mid]: # Base case 1: Found at mid
print(indent, 'Found person.')
pos = mid
elif range_size == 1: # Base case 2: Not found
print(indent, 'Person not found.')
pos = 0
else: # Recursive search: Search lower or upper half
if item < lst[mid]: # Search lower half
print(indent, 'Searching lower half.')
pos = find(lst, item, low, mid, indent + ' ')
else: # Search upper half
print(indent, 'Searching upper half.')
pos = find(lst, item, mid+1, high, indent + ' ')
print(indent, 'Returning pos = %d.' % pos)
return pos
attendees = []
attendees.append('Adams, Mary')
attendees.append('Carver, Michael')
attendees.append('Domer, Hugo')
attendees.ap - ANSWER ✓ True
33.def find(lst, item, low, high, indent):
"""
Finds index of string in list of strings, else -1.
Searches only the index range low to high
Note: Upper/Lower case characters matter
"""
print(indent, 'find() range', low, high)
range_size = (high - low) + 1
mid = (high + low) // 2
if item == lst[mid]: # Base case 1: Found at mid
print(indent, 'Found person.')
pos = mid