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