This statement uses if-else logic to execute different code based on whether a condition is true or false.
What is Selection?
In AP CSP pseudocode. This number is the start for every index.
What is one?
These are the input values passed into a procedure to make it more reusable.
What are Parameters?
This search algorithm checks every item in a list one by one until the target is found.
What is Linear/Sequential Search?
This is the process of finding and fixing errors in a computer program.
What is Debugging?
This is the process of repeating a set of instructions a certain number of times or until conditions are met.
What is an iteration/Loop?
This operation adds an element to the end of a list. Increases it's length by one.
What is APPEND?
This command sends a value back to the main part of the program from inside the function. Often ends the function's execution.
What is RETURN?
This search algorithm needs the list to be sorted before searching (Otherwise it won't work). It works by repeatedly dividing the list in half.
What is Binary Search?
These are written notes within code that explain what the code does; the computer ignores them.
What are Comments/Documentation?
This logic: (NOT (A AND B)), if A is True & B is False, the result is...?
What is True?
This describes how lists allow representing multiple related values with a single name, reducing complexity.
What is Data Abstraction?
This is a collection of pre-written functions or procedures that can be imported and used by other users on the Internet.
What is a Library/API?
This is the maximum number of comparisons a Binary Search would need to find an item in a list of 32 sorted items.
What is 6?
This type of error occurs when the program runs but produces the wrong output because the instructions were logically flawed.
What is a Logic Error?
This describes the step-by-step execution of code in the order it was written.
What is Sequencing?
If a list is list [10, 20, 30], what is the value of list[2] in AP CSP pseudocode?
What is 20?
This concept involves breaking a large, complex program into smaller, more manageable sub-programs.
What is Procedural Abstraction?
This describes a problem that can be solved by an algorithm in a reasonable amount of time.
What is a Decidable Problem?
This development style involves two programmers working at one computer: one "driving" and one "navigating."
What is Paired Programming?
These Boolean operators are used to combine multiple conditions:
One requires both conditions to be true
The other only requires one.
What are AND and OR?
This common error occurs when a program attempts to access an index that does not exist in a list.
What is a Runtime error?
This variable is found inside a procedure and can only be used for that procedure.
What are Local Variables?
This is a problem for which no algorithm can be constructed.
What is an Undecidable Problem?
This type of error prevents the program from running at all because the code breaks the rules of the programming language.
What is a Syntax Error?