Using multiple parameters Flashcards

1
Q

To add more parameters to a function, we code a WHAT followed by the next parameter’s name

A

Comma 🔸,🔸

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

How many parameters can a function have?

A

as many as we’d like

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

How do we pass values to a function with multiple parameters?

A

in the order of how the parameters are placed in the function definition

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

Why is it important to give functions descriptive names?

A

To know at a glance what that function does

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

What do function names usually start with?

A

Verbs like “create”

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

What are some verbs that functions that return values might start with?

A

Compute, calculate, get

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

What are some verbs that functions that return booleans might start with?

A

Is, has, can

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

What does keeping the same function naming mean?

A

Using the same verb for function that perform similar tasks

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