SLR2 Programming next steps Flashcards
(18 cards)
Exception handling
“The process of responding to occurrences of anomalous or exceptional conditionals during the normal flow of program execution.”
Parameter
“Data structures passed into a procedure or function when they are initially called.”
Procedure
“A block of code given a unique, identifiable name within a program. A can take either zero or more parameters when it is called. Does not return a value”
Function
“A block of code given a unique, identifiable name within a program. A can take either zero or more parameters when it is called and should return a value.”
Local variable
“A variable which is defined and can only be used within one part of the program (normally a single function or procedure).”
Global variable
“A variable which can be used anywhere in the program.”
Stack frame
“A frame of data which gets pushed onto a stack. For the exam and programming, remember the call stack; this would represent a function call and its arguments. The return address is pushed onto the stack when a subroutine is called and popped off when we return.”
Return address
“A memory address which represents the location of the instruction to return to when a subroutine exits.”
Recursion
“An advanced programming construct in which a block of code (often a function) is able to call itself.”
“The process of responding to occurrences of anomalous or exceptional conditionals during the normal flow of program execution.”
Exception handling
“Data structures passed into a procedure or function when they are initially called.”
Parameter
“A block of code given a unique, identifiable name within a program. A can take either zero or more parameters when it is called. Does not return a value”
Procedure
“A block of code given a unique, identifiable name within a program. A can take either zero or more parameters when it is called and should return a value.”
Function
“A variable which is defined and can only be used within one part of the program (normally a single function or procedure).”
Local variable
“A variable which can be used anywhere in the program.”
Global variable
“A frame of data which gets pushed onto a stack. For the exam and programming, remember the call stack; this would represent a function call and its arguments. The return address is pushed onto the stack when a subroutine is called and popped off when we return.”
Stack frame
“A memory address which represents the location of the instruction to return to when a subroutine exits.”
Return address
“An advanced programming construct in which a block of code (often a function) is able to call itself.”
Recursion