programming techniques p1 Flashcards
1
Q
what are the 3 programming constructions and define them
A
sequence: Order in which instructions are processed
selection/ branching:A certain block of code is run if a specific condition is met
itteration repeated execution of code
2
Q
what is recursion
A
when a subroutine
calls itself during its execution
3
Q
what is stack overflow
A
call stack runs out of memory
4
Q
what are local variables
A
can only be accessed within the block of code in which they were defined
5
Q
what are global variables
A
normal variables that can be accessed across the whole program