Questions With Verified Multiple Choice and
Conceptual Actual
100% Correct Detailed Answers
Guaranteed Pass!!Current Update!!
1. Which data type do heap sorts work with?
a) Tree-based data structure
b) Array
c) String
d) Number - ANSWER Tree-based data structure
2. Which function is used in conjunction with a merge sort algorithm?
a) For loop
b) If statement
c) Do while loop
d) Recursive - ANSWER Recursive
3. Which attribute of a recursive function makes it unique?
a) Calls itself
b) Calls another function
c) Uses for loops
, d) Uses case statements - ANSWER Calls itself
4. What is x in the following block of logic?
x=28
If x >= 10 and x < 20 x = 20
elif x <= 30 x = 25
elif x >= 50 x = 100
else x = 500
a) 20
b) 25
c) 100
d) 500 - ANSWER 25
5. What is an if statement inside of an if statement referred to as?
a) Nested
b) Internal
c) Double if
d) Subscript - ANSWER Nested
6. Which search algorithm functions by continually dividing the data set in half
until the sought item is found or the data set is exhausted?
a) Sequential search
b) Binary search
c) Jump search
d) Linear search - ANSWER Binary search
, 7. Which search algorithm has the best performance when the data set is sorted?
a) Sequential search
b) List search
c) Interval search
d) Linear search - ANSWER Interval search
8. Which format is used to store data in a hash table?
a) Graph
b) Array
c) ArrayList
d) Doubly linked lists - ANSWER Array
9. Which term refers to a data structure that groups related items of data
together?
a) Pointer
b) Graph
c) Record
d) Hash table - ANSWER Record
10. Which data structure is used to store unordered items by mapping each item
to a location in an array?
a) Stack
b) List
c) Dictionary
d) Hash table - ANSWER Hash table