IGNORE*****PA 1 Flashcards
Which term refers to a template for creating an object?
Method Algorithm Application Class
Class
Which characteristic of an algorithm is independent in nature?
Uses Windows to install the application Uses MySQL for the database needs of the algorithm’s application Uses an agnostic code repository Uses Python to implement the algorithm
Uses an agnostic code repository
What is referred to as a data structure that stores subitems?
Array Graph Record Matrix
Record
Which factor takes the ability to easily update an algorithm into consideration?
Modularity Feasibility Maintainability Scalability
Maintainability
What is a component of an algorithm that specifies a stopping point?
Iteration Looping Sequencing Finiteness
Finiteness
Which term refers to a type of search algorithm?
Divide-and-conquer Greedy Linear Quicksort
Linear
What is a high-level consideration in an algorithm’s design?
Browser type Database type Finiteness Simplicity
Simplicity
What is the primary method used to search for an item in a sorted array?
Exponential search Binary search Linear search Jump search
Binary search
Which review of an algorithm happens after implementation?
Binary search A priori analysis A posteriori analysis Linear search
A posteriori analysis
Which factor helps measure the reusability of an algorithm?
Extensibility User adoption Correctness Flowchart
Extensibility
Which search algorithm utilizes the divide-and-conquer strategy?
Bubble search Insertion search Linear search Binary search
Binary search
Which algorithm requires data sorting as its first step?
Merge Recursive Binary Linear
Binary
What does a time complexity analysis of an algorithm include?
Efficiency analysis Screen load times Worst case Memory usage
Worst case
Which data type do heap sorts work with?
String Tree-based data structure Number Array
Tree-based data structure
Which function is used in conjunction with a merge sort algorithm?
Recursive Do while loop For loop If statement
Recursive
Which attribute of a recursive function makes it unique?
Uses case statements Uses for loops Calls itself Calls another function
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?
Double if Internal Subscript Nested
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?
Jump search
Linear search
Sequential search
Binary search
Jump Search
Binary search
Which search algorithm has the best performance when the data set is sorted?
Sequential search List search Linear search Interval search
Interval search
Which term describes a way of organizing, storing, and performing operations on data?
Vertex Data structure Graph Record
Data structure
Which data structure is used to implement a dictionary data type?
Heap List Hash table Queue
Hash table
Which element refers to the numeric positions in a list abstract data type (ADT)?
Queue Head Indexes Priority
Indexes
Which characteristic of a class allows it to be used as an abstract data type (ADT)?
Overriding Instantiation Overloading It consists of variables and methods.
It consists of variables and methods.
What is the result when 6 is enqueued to the queue 7,9,8 (with 7 as the front)?
6,7,9,8 7,9,8,6 6,7,9 7,9,6
7,9,8,6
Which value would be returned from executing the dequeue operation on the queue 7,9,8 (with 7 as the front)?
7,9,8 9 7 8
7