SLR23 - PROGRAMMING TECHNIQUES Flashcards

1
Q

What is recursion?

A

when a function calls itself

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

What is a global variable?

A

a variable that is:
- “typically” declared at at the top of a program outside of any subroutine
- accessible throughout the program
- created when the program starts
- destroyed when the program ends

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

What is a local variable?

A

a variable that is:
- declared inside a subroutine
- only accessible by that subroutine
- created when the subroutine is called
- destroyed when the subroutine ends

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