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

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

what is recursion

A

when a subroutine
calls itself during its execution

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

what is stack overflow

A

call stack runs out of memory

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

what are local variables

A

can only be accessed within the block of code in which they were defined

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

what are global variables

A

normal variables that can be accessed across the whole program

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