AP CSP Test #1 Flashcards

1
Q

when flag is clicked…

A

event-driven programming

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

tabs: motion/variables

A

palettes

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

white boxes/drop-downs

A

parameters

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

what do we put inside of parameters?

A

input

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

procedure

A

a named sequence of instructions that may have parameters to leave input and may return a value

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

types of procedures

A

“reporter” & “command” blocks

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

reporter blocks

A

ovals, & RETURN/report a value, “gossip”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

command blocks

A

have a puzzle shape, tells the computer to do something

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

string

A

a sequence of characters, items in a list

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

substrings

A

piece of already existing string, “Hanna,” “anna”, and “nnah” are each substrings of the string “Hannah.”

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

concatenate

A

make a bigger string by connecting two or more

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

if-else statement

A

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!

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

FLOWCHART: oval

A

the start or end of the algorithim

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

FLOWCHART: rectangle

A

process (an action step: move __)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

FLOWCHART: diamond

A

Condition, true? false?

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

FLOWCHART: rhombus

A

message gets displayed, like say, “!”

17
Q

iteration

A

repeat-until statement
repeat statement

18
Q

what block is NOT considered iteration

A

the forever block is NOT considered iteration, there is no stopping condition!

19
Q

algorithim

A

sequence of statements

20
Q

procedures/functions/methods

A

may have parameters or return values

21
Q

getting “Called”

A

When a procedure gets executed as part of an algorithm, it’s sometimes said that the procedure gets “called”.

22
Q

Procedural abstraction

A

reduce complexity
Hiding all the “details” of how a pinwheel gets drawn.
Helping make your code easier to read and understand.
Eliminating the need to copy and paste the same code over and over!

23
Q

abstraction by generalization

A

Wrote a single procedure that includes the shared features, and used a parameter to handle the differences.