Programming Flashcards

1
Q

What is a procedure?

A

A subroutine that does not return a value

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

What is a function?

A

A subroutine that return a value

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

How can you tell if a variable is a constant?

A

Named with all capital letters e.g. EMPTYSTRING

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

What is a local and global variable?

A
  • A local variable is declared in a subroutine or similar
  • A global variable is declared at the highest possible level in a program so that it can be used in any lower level statements
How well did you know this?
1
Not at all
2
3
4
5
Perfectly