Programming Flashcards
1
Q
What is a procedure?
A
A subroutine that does not return a value
2
Q
What is a function?
A
A subroutine that return a value
3
Q
How can you tell if a variable is a constant?
A
Named with all capital letters e.g. EMPTYSTRING
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