Python Programming Flashcards

1
Q

What does it mean if a line of programming is red

A

There is an error

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

A variable is

A

Part of the program that can change and you can assign a value to it

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

Variables can only contain …

A

Numbers, letters and underscores

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

A variable can not start with a

A

Number

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

=

A

Comment

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

== means

A

Equal to

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

What colour is text in a program

A

Green

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

What is a bug

A

When something is wrong with the program you have made so it stops it working

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

What is float

A

Holds Numbers with a decimal point

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

>

A

Greater than

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

What is a string

A

A string holds numbers and letters

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

Less than

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

While loop is

A

Stops when you meet a criteria

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

!=

A

Not equal to

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

<=

A

Less than or equal to

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

When you use if or else

A

It gives you 2 choices

20
Q

If you want more than 2 choices you use

A

ELIF for the extra choices

21
Q

For loop is

A

A specific number of times

22
Q

An algorithm is

A

A set of instructions to perform a specific task

23
Q

Decomposition is

A

Breaking down a task into smaller tasks

24
Q

Pseudocode is

A

Half English half code

25
Q

An integer holds

A

Whole numbers

29
Q

> =

A

Greater than or equal to

31
Q

Purple is

A

Functions