CSCI 14 Ch4
Without this statement appearing in a switch construct, the program "falls through" all of the statements below the one with the matching case expression.
Break
If you intend to place a block of statements within an if statement, you must place these around the block.
Curly braces { }
When a program lets the user know that an invalid choice has been made, this is known as:
Input validation
These operators connect two or more relational expressions into one, or reverse the logic of an expression.
Logical
Whereas < is called a relational operator, x < y is called a(n) ________.
Relational expression
True/False: As a rule of style, when writing an if statement you should indent the conditionally-executed statements.
True
What is the value of the following expression? True && False
True && True = True True && False = False False && False = False
What is the Value of the following expression? True || False
True || False = True True || True = True False || False = False
The ________ of a variable is limited to the block in which it is declared.
scope