Intro To Function Parameters Flashcards

1
Q

Function parameters

A

Like variables used in a function always initialized with a value provided by the caller of the function

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

Definition of function parameters

A

In the function declaration by placing them between the parenthesis after the function identifier with multiple paramethers separated by coma

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

Argument

A

Value that is passed from the caller to the function when the call is made

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

Pass by value

A

When a function is called all the paramethers are created as variables, and the value is copied to the matching parameters

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

Use of the parameters with return value

A

We create function that takes data as input do some calculations with it and returns the value to the caller

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