Vocab 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

Indentation

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
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
5
Q

Function Body

A

The part of a function that contains the commands.

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

Breaking 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

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
9
Q

Decomposition

A

Decomposition is breaking your program into smaller parts.

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

Top Down Design

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
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
12
Q

Condition

A

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

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

If Statement

A

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

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

If Else Statement

A

Control structure that lets us do either one section of code or another depending on a test.

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 flow of the code.

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

Loop

A

A loop is a way to repeat code in your program.

17
Q

While-Loop

A

Lets us repeat code as long as something is true.

18
Q

Control Structure

A

A control structure lets us change the flow of code.

19
Q

Fencepost Problem

A

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