Methods And Paramaters Flashcards

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

Value or variable used as a parameter in a method call.

A

Actual Parameter

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

A programming statement used to execute a previously defined method, function, or procedure, often sending outside information into the process using parameters.

A

Call (method, procedure, function)

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

This is the parameter that is listed in a method header that receives a value from a method or procedure call, and is only in scope during the execution of the method.

A

Formal Parameter

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

Most often a procedure or method that performs a calculation and returns a value of some sort.

A

Function

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

A process in java that can be either a procedure (void method) that performs an action of some sort, or a function (return method) that returns a calculated value.

A

Method

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

A variable located inside the parentheses of a method call or method header.

A

Parameter

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

The process in the source code of a program whereby data is passed from one section fo the program to another, using method calls that send actual parameters and method definitions that receive the passed data using formal parameters.

A

Parameter Passing

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

Memory location originally referred to by the actual parameter is passed to the formal parameters, such as that any changes made to the object by the formal parameter also affect the original actual parameter.

A

Pass by Reference

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

Any changes made to the formal parameters do NOT affect the actual parameter.

A

Pass by Value

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

A method which will return a value of some sort, usually after a calculation or process. Typically, the heading of this method will start with the data type of the value being returned, such as int calc, or string firstName.

A

Return Method

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

A method that starts with the word _______, which indicates no return value, but designates a process of some sort that occurs.

A

Void Method

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