8. Programming Flashcards
1
Q
What happens when a function is called
A
- a call statement is used/the function is called using its identifier
- parameters are/may be passed to the function from the main program
- the function performs its task
- …and returns a value to the main program
2
Q
How variables/constants are used in programming
A
- used to store items of data
- the data stored is accessed using an identifier
- the value of a variable may change during the execution of a program
- the value of a constant will stay the same during the execution of a program