Extea Flashcards

(10 cards)

1
Q

what’s a subroutine

A

a self contained piece of code that had an identifier and can be called from anywhere in a program

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

what’s a function

A

a subroutine that des returns value to the program that called it

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

what’s a parameter

A

a variable that’s sent to a subroutine

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

local variables

A

the variable of constant that can be accessed in the surrounding it’s declared within

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

global variable

A

the variable or constant that can be only accessed in the subroutine it is declared within

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

what are adv of using subroutines procedures and functions

A
  • reusabikity
  • organised large sections of code into related area
  • decomposing large problems into simpler steps
  • reducing duplication louise
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

what’s by val

A

a method of passing a parameter to a procedure where the value of the variable can’t be changed by the procedure

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

By ref

A

a method of passing a parameter where the value of the variable can be changed by the procedure

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

library routine

A

a tested and ready to use routine available in the development system of a programming language that can be incorporated into a program

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