Vocabulary Flashcards

1
Q

Define a function

A

defining a function means to teach the computer a new command and explain what it should do when receiving that command

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

Call a Function

A

calling a function actually gives the command, so the computer will run the code for that function

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

Curly Bracket

A

An open curly bracket is { and a close curly bracket is }

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

Parenthesis

A

(and)

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

Function Body

A

The part of the function that contains the commands.

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

Break Down (Decompose)

A

breaking down (decomposing) your code is splitting it into more functions.

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

Read like a story

A

Programs that “Read Like a Story” have good decomposition and make the code easy to follow.

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

Indentation

A

Indentation is the visual structure of how your code is laid out. It uses tabs to organize code into a hierarchy.

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

Start Function

A

This is the function that is called when you click run.

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

Decomposition

A

Decomposition is breaking your program into small parts

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

Top Down Design

A

Top down design is a method for breaking our program into smaller parts.

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

Algorithm

A

An algorithm is a set of steps or rules to follow to solve a particular problem.

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

loop

A

a loop is a way to repeat code in your program

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

for loop

A

a for loop lets us repeat code a fixed number of times

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

control structure

A

a control structure lets us change the code of the flow

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

while Loop

A

lets us repeat code for as long as something is true

17
Q

condition

A

A condition is a code that you put inside an if statement or while loop.

18
Q

fencepost problem

A

a problem when using a while loop where you forget one action at the beginning or the end.

19
Q

if statement

A

and if statement lets you ask a question to the program and only run code if the answer is true.

20
Q

if else statement

A

control structure that lets us do either one section of code or another depending on the rest.