Selection Flashcards

1
Q

Switch statement

A

Used to replace switch statement. Works only with equality statements. Only works with integers or strings

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

Break

A

Ends code

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

Case

A

Possible values of x, arbitrary.

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

Yield

A

return statement (replaces entire code)

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