Lesson 5 Flashcards

1
Q

What is an variable?

A

it is an identifier and is sitting in place for a value.

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

What is a value?

A

any type of data.

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

What does the equal sign do in coding?

A

Assigning a value.

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

What is a string?

A

sorting any kind of data. A string could be “hello”

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

What is a numeric value?

A

A number that is only an integer and decimals.

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

What is a boolean?

A

a thing that only has two values.

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

IF THEN ELSE ?

A

its a conditional statement.

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

Compound conditionals?

A

Combining a boolean within one conditional.

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

Logical Operators?

A

Things in programming that are words that allow for more precise control. Such as and, or, == (equal to)

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

What is a loop?

A

An instruction that is repeated until a condition is reached.

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

For loop?

A

A loop will continue unless a condition is meet. Use when you know how many times you want the action repeated.

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

A while loop?

A

Runs code as long as a condition is not meet. You use this when you don’t know the exact amount of times the loop should repeat.

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

What is a nested loop?

A

Putting one loop inside another loop. Loop 1 minute but in that loop a 60 second loop is going.

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

What is an event?

A

It is an action that causes something to happen within a program. These actions allow the program to be interactive.

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

Procedure?

A

a piece of code that you can use over and over again. These chunks can be used in different parts of the code.

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

What is a function?

A

A function performs a specific task.

17
Q

Parameters?

A

Variables whose values are placed into a procedure. The parameter for this game were you can only swing your hammer six times to grow a flower would be that number 6 cause its a limitation.