005 - Expressions, Statements, and Blocks Flashcards
expressions are the core components of _________
statements
statements may be grouped into __________.
blocks
__________ is a construct made up of variables, operators, and method invocations, which are constructed according to the syntax of the language, that evaluates to __________.
An expression
a single value
You can specify exactly how an expression will be evaluated using __________
balanced parenthesis: ( and )
__________ are roughly equivalent to sentences in natural languages. They form a complete unit of execution.
Statements
statements terminate the expressions with __________. Such statements are called expression statements.
a semicolon (;)
A __________ declares a variable.
declaration statement
__________ regulate the order in which statements get executed.
control flow statements
A __________ is a group of zero or more statements between balanced braces and can be used anywhere a single statement is allowed
block
Operators may be used in building ___, which compute values.
Expressions
Expressions are the core components of ___.
Statements
Statements may be grouped into ___.
Blocks
The following code snippet is an example of a ___ expression.
1 * 2 * 3
Compound
Statements are roughly equivalent to sentences in natural languages, but instead of ending with a period, a statement ends with a ___.
Semicolon
A block is a group of zero or more statements between balanced ___ and can be used anywhere a single statement is allowed.
Curly braces