1/16
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
%
modulus: calculates the remainder
==
equals
!=
Not equal
>=
Greater than or equal to
<=
Less than or equal to
Both sides of a conditional operator have to be _______.
The same type
= vs. ==
Assignment operator vs. conditional operator
Sequence of “if” statements
Program will go through executing each conditional
if : else : else if sequence
Program will stop executing as soon as the first condition is met.
What happens when an argument reaches zero?
Function returns immediately
Conditional
A block of statements that are executed only depending on the truth of the statements.
Chaining
A way of joining conditional statements in sequence.
Nesting
Putting a conditional statement inside one or both branches of another conditional statement.
Recursion
The process of calling the same function you are executing.
Infinite recursion
A function that will call itself without ever reaching the base case. The sequence will theoretically continue forever but it will eventually result in a run-time error in actuality.