Coding Vocab Flashcards

(23 cards)

1
Q

What is a world?

A

A “world” or “Karel World” is a grid that Karel lives in

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

Who is Karel

A

Karel is a dog who listens to your commnds

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

What is a command?

A

A command is an instruction you give to Karel

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

What is a lower camel case?

A

A naming convention where the first letter is lower case and each consequent start of a word is uppercase

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

What does define a function mean?

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

What does calling a function mean?

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

What is indentation?

A

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

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

What is a 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
9
Q

What are parentheses

A

( and )

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

What is the 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
11
Q

What is breaking down (deomposing)?

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

What is 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
13
Q

What is indentation?

A

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

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

What is 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
15
Q

What is an 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
16
Q

What is a loop?

A

A loop is a way to repeat code in your program

17
Q

What is a for loop?

A

A for loop lets you repeat a code a fixed number of times.

18
Q

What is a control structure?

A

A control structure lets us change the flow of the code.

19
Q

What is a condition?

A

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

20
Q

What is a fencepost problem?

A

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

21
Q

What is a while loop?

A

A while loop lets us repeat code as long as something is true

22
Q

What is an if statement?

A

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

23
Q

What is an if else statement?

A

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