Python Programming Flashcards

(8 cards)

1
Q

What is programming?

A

Setting instructions that a computer has to follow.

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

What is an algorithm?

A

A set of instructions.

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

What is the model MOST computer programs follow?

A

IPO

Input
Process
Output

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

What is a variable?

A

A ‘cardboard box’ that can store data.

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

What can be stored in a variable?

A

Integers - whole numbers
Floats - decimal numbers
Strings - text

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

What do we FIRST need to type in to a program in order to perform calculations?

A

import.math

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

What is a loop?

A

A way of repeating code without writing it out each time.

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

What is turtle used for?

A

Drawing graphics.

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