Pre Assessment Flashcards
(70 cards)
Which term refers to a template for creating an object?
Class
Which characteristic of an algorithm is independent in nature?
Use an agnostic code repository
What is referred to as a data structure that stores subitems?
Record
Which factor takes the ability to easily update an algorithm into consideration?
Maintainability
What is a component of an algorithm that specifies a stopping point?
Finiteness
Which term refers to a type of search algorithm?
Linear
What is a high-level consideration in an algorithm’s design?
Simplicity
What is the primary method used to search for an item in a sorted way?
Binary search
Which review of an algorithm happens after implementation?
A posteriori analysis
Which factor helps measure the reusability of an algorithm?
Extensibility
Which search algorithm utilizes the divide-and-conquer strategy?
Binary search
Which algorithm requires data sorting as its first step?
Binary
What does a time complexity analysis of an algorithm include?
Worst case
Which data type do heap sorts work with?
Tree-based data structure
Which function is used in conjunction with a merge sort algorithm?
Recursive
Which attribute of a recursive function makes it unique?
Calls itself
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
25
What is an if statement inside of an if statement referred to as?
Nested
Which search algorithm functions by continually dividing the data set in half until the sought item is found or the data set is exhausted?
Binary search
Which search algorithm has the best performance when the data set is sorted?
Interval search
Which format is used to store data in a hash table?
Array
Which term refers to a data structure that groups related items of data together?
Record
Which data structure is used to store unordered items by mapping each item to a location in an array?
Hash table
What is the advantage that a linked list has over an array?
Grows and shrinks as needed