AP CSP Test #1 Flashcards
when flag is clicked…
event-driven programming
tabs: motion/variables
palettes
white boxes/drop-downs
parameters
what do we put inside of parameters?
input
procedure
a named sequence of instructions that may have parameters to leave input and may return a value
types of procedures
“reporter” & “command” blocks
reporter blocks
ovals, & RETURN/report a value, “gossip”
command blocks
have a puzzle shape, tells the computer to do something
string
a sequence of characters, items in a list
substrings
piece of already existing string, “Hanna,” “anna”, and “nnah” are each substrings of the string “Hannah.”
concatenate
make a bigger string by connecting two or more
if-else statement
a selection statement.
It’s called “selection” because, if whatever is in the space is true, the code in the top section gets selected and is executed. But if whatever is in the space is false, the code in the bottom section gets selected and is executed!
FLOWCHART: oval
the start or end of the algorithim
FLOWCHART: rectangle
process (an action step: move __)
FLOWCHART: diamond
Condition, true? false?