CT and Programming 1 Flashcards

1
Q

What are the

rules for drawing flowcharts?

A
  • there should only be one start and one end symbol
  • the decision symbol must have a yes and a no output arrow
  • a decision symbol has only one input arrow
  • lines do not cross
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

What is

variable declaration?

A

when a variable is named and the computer allocates a location in its memory

The amount of memory allocated is based on the data type of the variable. A string may be allocated more memory than an integer.

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

What is

variable initialisation?

A

when the very first value is assigned to a variable

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

What is a

constant?

(in python)

A

a memory location that holds a value that does not change when the program is run

(uppercase should be used for the names of constants)

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

What is a

bug?

(in code)

A

a difference between the expected behaviour and the actual behaviour of a computer program

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