5.1 Data Structures and Algorithms Lab Pre Final Exam PDF
5.1 Data Structures and Algorithms Lab Pre Final Exam PDF
Home / My courses / UGRD-ITE6201-2212S / Pre Final Examination / Pre Final Lab Exam
Question 1
Correct
The _______ algorithm is a graph search algorithm that finds the shortest path between a given source vertex and all other vertices in the
graph.
Select one:
a. BELLMAN-FORD
b. FORD
c. DIJKSTRA
Question 2
Correct
The hash table should be an array with length about _ times the maximum number of keys that will actually be in the table, and. Size of hash
table array should be a prime number.
Select one:
a. 1
b. 1.56
c. 1.3
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 1/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 3
Correct
A hash function is a function which when given a key, generates an address in the table.
Select one:
a. TRUE
b. BOTH A AND B
c. FALSE
Question 4
Correct
Select one:
a. BOTH A AND B
b. CONNECTED
c. DISCONNECTED
Question 5
Correct
Eulerian refers to the Swiss mathematician _____Euler, who invented graph theory in the 18th century.
Select one:
a. DAMSCUS
b. LEONHARD
c. FLLOYD
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 2/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 6
Correct
Dynamic programming is a method of solving complex problems by breaking them down into simpler steps.
Select one:
a. NO
b. BOTH A AND B
c. YES
Question 7
Correct
Select one:
a. FALSE
b. BOTH A AND B
c. TRUE
Question 8
Correct
A graph is a collection of points, called vertices, and line segments connecting those points, called _______.
Select one:
a. POINTS
b. ANGLES
c. EDGES
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 3/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 9
Correct
Select one:
a. NO, IT IS USE FOR TAPPING
b. NO
c. YES
Question 10
Correct
In computer science, a problem is said to have optimal substructure if an optimal solution can be constructed from optimal solutions of its
subproblems.
Select one:
a. NO
b. FALSE
c. TRUE
Question 11
Correct
Select one:
a. GENERAL
b. SLOW
c. BUG
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 4/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 12
Correct
Select one:
a. NO
b. YES
c. USUALLY
Question 13
Correct
The Three methods in HASHING in open addressing are linear probing, quadratic probing, and _____hashing.
Select one:
a. DOUBLE
b. MULTI
c. SINGLE
Question 14
Correct
Select one:
a. 128
b. 64
c. 256
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 5/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 15
Correct
______ is one of the most powerful and advanced data structures. It is a non-linear data structure compared to arrays, linked lists, stack and
queue. It represents the nodes connected by edges.
Select one:
a. SET
b. TREE
c. LOOP
Question 16
Correct
Select one:
a. FIRST
b. THIRD
c. SECOND
Question 17
Correct
A graph is a picture designed to express words, particularly the connection between two or more quantities.
Select one:
a. FALSE
c. TRUE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 6/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 18
Correct
The Floyd-Warshall algorithm outputs the correct result as long as no negative cycles exist in the input graph.
Select one:
a. TRUE
b. POINTS
c. FALSE
Question 19
Correct
Select one:
a. TABLE
b. SET
c. PATH
Question 20
Correct
Select one:
a. YES
b. NULL
c. NONE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 7/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 21
Correct
Graph Algorithms or Graph ______ are analytic tools used to determine strength and direction of relationships between objects in a graph.
Select one:
a. HASHING
b. ANALYTICS
c. GRAPH
Question 22
Correct
_________ algorithms work by recursively constructing a set of objects from the smallest possible constituent parts.
Select one:
a. BEARD
b. SASH
c. GREEDY
Question 23
Correct
The eight most commonly used graphs are linear, power, quadratic, polynomial, rational, ______, logarithmic, and sinusoidal.
Select one:
a. NULL
b. EXPONENTIAL
c. DYNAMIC
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 8/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 24
Correct
Path Matrix in graph theory is a matrix sized ___ , where n is the number of vertices of the graph.
Select one:
a. n*2
b. n*1
c. n*n
Question 25
Correct
Bellman Ford algorithm is useful in finding shortest path from a given source vertex to all the other vertices even if the graph contains
a _______ weight edge.
Select one:
a. POSITIVE
b. ZERO
c. NEGATIVE
Question 26
Correct
The hash table should be an array with length about __times the maximum number of keys that will actually be in the table, and. Size of hash
table array should be a prime number.
Select one:
a. 1.2
b. 1.3
c. 1.5
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 9/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 27
Correct
Select one:
a. HASHABLE
b. GRAPHS
c. HASH
Question 28
Correct
Select one:
a. HASH ALGORITHM
b. HASH LOOP
c. HASH TABLE
Question 29
Correct
_____Algorithm : is significantly faster in the limit when you've got a really dense graph with many more edges than vertices.
Select one:
a. KRUSKAL'S
b. FLLOYD
c. PRIM'S
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 10/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 30
Correct
Kruskal's Algorithm : performs better in typical situations (sparse graphs) because it uses simpler data structures. Prim's Algorithm : is
significantly ___the limit when you've got a really dense graph with many more edges than vertices.
Select one:
a. FASTER
b. AT REST
c. SLOWER
Question 31
Correct
Select one:
a. ALGORITHM
b. HASH
c. GRAPH
Question 32
Correct
Select one:
a. MD1
b. MD3
c. MD5
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 11/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 33
Correct
The four most common are probably line graphs, bar graphs and histograms, pie charts, and ?
Select one:
a. CARTESIAN
b. POP
c. LEAF
Question 34
Correct
A hash function is a function which when given a key, generates an address in the table.
Select one:
a. YES
b. NO
c. NULL
Question 35
Correct
A directed general-graph is a general-graph in which the set E is the set of ordered pairs of vertices.
Select one:
a. NONE OF THE ABOVE
b. FALSE
c. TRUE
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 12/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 36
Correct
Comparing BFS and DFS, the big advantage of DFS is that it has much _____memory requirements than BFS, because it's not necessary to
store all of the child pointers at each level.
Select one:
a. HIGHER
b. LOWER
c. NEUTRAL
Question 37
Correct
Select one:
a. PATH
b. ALGORITHM
c. DATA
Question 38
Correct
_______ Algorithm : performs better in typical situations (sparse graphs) because it uses simpler data structures.
Select one:
a. KRUSKAL'S
b. PRIM'S
c. FLLOYD
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 13/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 39
Correct
A graph consists of a set of nodes or vertices together with a set of edges or arcs where each edge joins two ______.
Select one:
a. VERTEX
b. VERTICES
c. POINTS
Question 40
Correct
Tree is a hierarchical data structure which stores the information naturally in the form of hierarchy style.
Select one:
a. NONE OF THE ABOVE
b. TRUE
c. FALSE
Question 41
Correct
Dijkstra's algorithm works correctly, because all edge weights are non-________, and the vertex with the least shortest-path estimate is always
chosen.
Select one:
a. NEGATIVE
b. POSITIVE
c. ZERO
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 14/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 42
Correct
_______programming is a method of solving complex problems by breaking them down into simpler steps.
Select one:
a. SYSTEMATIC
b. DYNAMIC
c. DEFINED
Question 43
Correct
Select one:
a. STABLE
b. UNIVERSAL
c. SYSTEMATIC
Question 44
Correct
A complete digraph is a directed graph in which every pair of distinct vertices is connected by a ___of unique edges (one in each direction).
Select one:
a. MULTIPLE
b. SINGLE
c. PAIR
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 15/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 45
Correct
Hashing provides a more reliable and_ method of data retrieval than any other data structure.
Select one:
a. STRECTHABLE
b. FLEXIBLE
c. CONCISE
Question 46
Correct
_____matrix in graph theory is a matrix sized n*n , where n is the number of vertices of the graph.
Select one:
a. SET
b. POINTS
c. PATH
Question 47
Correct
Graphs are a powerful and versatile data structure that easily allow you to represent real life relationships between different types
of data (nodes).
Select one:
a. YES
b. NO
c. SELDOM
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 16/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
Question 48
Correct
In ___________ we specify an object that is used as a key, and the value we want to associate to that key.
Select one:
a. HASH
b. HASHING
c. HASTABLE
Question 49
Correct
Select one:
a. STRICT
b. DIJKSTRA
c. SHORTEST
Question 50
Correct
Select one:
a. FULL
b. WEIGHTED
c. UNWEIGHTED
Jump to...
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 17/18
12/6/22, 12:24 AM Pre Final Lab Exam: Attempt review
semestralexam.amaes.com/2212/mod/quiz/review.php?attempt=98391&cmid=4762 18/18