Functions, Variables Flashcards

1
Q

What is a function?

A

A function is like an action or a verb that the program can execute

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

What is an argument?

A

An argument is an input to a function that changes it’s behavior

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

What is a side effect?

A

A side effect is an unintended or secondary effect of a function that often modifies some form of state or interacts with external systems

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

What is a return value?

A

It’s a value that is returned from a function, like input

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

What is a variable?

A

a variable is a named container for a particular set of information or type of data

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

What is a string?

A

A string is a sequence of text

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

What is an integer?

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

What is a parameter?

A

A parameter is an argument to a function: there are multiple tipes of parameters

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

What is a “"

A

An escape character

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