SLR2 Programming next steps Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

Exception handling

A

“The process of responding to occurrences of anomalous or exceptional conditionals during the normal flow of program execution.”

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

Parameter

A

“Data structures passed into a procedure or function when they are initially called.”

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

Procedure

A

“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”

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

Function

A

“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.”

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

Local variable

A

“A variable which is defined and can only be used within one part of the program (normally a single function or procedure).”

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

Global variable

A

“A variable which can be used anywhere in the program.”

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

Stack frame

A

“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.”

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

Return address

A

“A memory address which represents the location of the instruction to return to when a subroutine exits.”

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

Recursion

A

“An advanced programming construct in which a block of code (often a function) is able to call itself.”

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

“The process of responding to occurrences of anomalous or exceptional conditionals during the normal flow of program execution.”

A

Exception handling

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

“Data structures passed into a procedure or function when they are initially called.”

A

Parameter

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

“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”

A

Procedure

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

“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.”

A

Function

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

“A variable which is defined and can only be used within one part of the program (normally a single function or procedure).”

A

Local variable

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

“A variable which can be used anywhere in the program.”

A

Global variable

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

“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.”

A

Stack frame

17
Q

“A memory address which represents the location of the instruction to return to when a subroutine exits.”

A

Return address

18
Q

“An advanced programming construct in which a block of code (often a function) is able to call itself.”

A

Recursion