What data type can be True or False?
Boolean
What is an algorithm?
A set of instructions used to solve a problem
What does an if statement do?
Runs code only if a condition is true
What is another name for a procedure?
Function or method
What does / mean in pseudocode?
Division
What is a substring?
A part of a string
Sequencing, selection, and iteration
What does an else statement do?
Runs when the if condition is false
What is a parameter?
An input variable for a procedure
What does MOD (%) return?
The remainder after division
What does string concatenation do?
Combines strings together using +
Code that runs in the order written
A conditional inside another conditional
What is an argument?
The actual value passed into a procedure call
Index numbers are used to find and use specific positions of elements in a list
What index does a list start at?
Index 1
What is binary search?
A search algorithm that repeatedly cuts the data set in half
What does "repeat until" mean?
Repeat until a condition becomes true
What is abstraction?
Hiding complex details so users don't need to know how something works internally
The loop moves through each item one at a time
What is the difference between a list and an element?
A list is the whole collection; an element is one item inside it
What is the difference between a list and an element?
Because it eliminates half the remaining data each step
How can AND, OR, and NOT be used in loops?
They combine or reverse conditions in loops
Why can a procedure still be useful even if you don't know how it works internally?
Because abstraction allows procedures to be used without understanding the internal code
Why is understanding pseudocode important for the AP exam?
AP pseudocode appears heavily on the multiple choice section