Python Programming Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Define sequence.

A

Code running line by line on the order it was written.

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

Define selection.

A

Running code based on a conditional statement.

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

Define iteration.

A

Repeating a selection of code in sequence, until a condition has been met.

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

Define variable.

A

Stored data that is referenced by an identifier (name).

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

Define algorithm.

A

A process of set rules to be followed in calculations.

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

What do you call it if something is set as ==True or False?

A

The ‘boolean’.

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

What are common issues with code?

A
  • Correct number of brackets.
  • Spelling of functions (e.g. ‘Print’ rather than ‘print’).
  • Correct placement of speech marks for strings.
  • Use of colons (:) at the end of selection and iteration conditions.
  • Indentation.
  • Placement of code (e.g. not to place random number generation in a loop unless designed).
How well did you know this?
1
Not at all
2
3
4
5
Perfectly