Python Turtle Flashcards

1
Q

What are the three programming constructs?

A

1) Sequence
2) Selection
3) Iteration

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

What types of loops are there?

A

There are two types of loops, the for loop and the while loop.

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

When do you use a for loop?

A

A for loop is used when you know how many times you want to iterate the code.

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

When do you use a while loop?

A

A while loop is used when you don’t know how many times the code will iterate.

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

What is a program?

A

A program is a detailed set of instructions telling a computer exactly what to do.

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

How can Python be used?

A

Python can be used for building websites, programming robots, scientific computing and games.

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

What is debugging?

A

Debugging is when a programmer finds bugs (errors) in their code and fixes them to improve the program.

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

Why are loops useful?

A

Loops can be very useful and can save a lot of time. Loops repeat the same or similar code a number of times.

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