Notizen
Chapter 4 Vocabulary
Inhalt der Notizen (1)
Seite 1
Chapter 4 Vocabulary
Define the following terms and expressions from your textbook.
Boolean expression- a logical statement that is either TRUE or FALSE
Compound Boolean expression- expression with more than one Boolean
Conditional control structure- a statement that branches program flow depending on a condition
Decision structure- See conditional control structure
Linear Congruential Method- a method that uses a formula to generate a sequence of pseudorandom numbers
Logical And- The && operator used to form a compound Boolean
Logical Not- The ! operator used to reverse the value of a Boolean expression
Logical Or- the || operator used to form a compound Boolean expression
Nested- a statement placed within the same type of statement
Pseudorandom- not truly random, but like random
Relational operator- operators that can be used to form a Boolean expression
Short circuit evaluation- a process for determining the result of a Boolean expression where the left operand is evaluated first. If the result of the entire expression can be determined by the left operand, no other operands are evaluated
Truth table- a table that shows the possible outcomes of two expressions joined by a logical operator
Chapter 4 Java
==- Equality relational operator
<- Less than relational operator
<=- less than or equal relational operator
>- greater than relational operator
>=- greater than or equal relational operator
!=-not equal relational operator
&&- logical and operator
||- logical or operator
!- logical not operator
break- a statement that moves program control to the next statement after the current structure
case- a clause in the switch statement that contains statements to be executed when the case condition matches the result of the switch expression
if- a decision structure that executes a set of statements when a condition is true
if-else- a decision structure that executes one set of statements when a condition is true and another set of statements when the condition is false
if-else if- a decision structure used to decide among three or more actions
Math- a java.lang class with methods for generating random numbers and performing math functions
switch- a decision structure that uses the result of an expression to determine which set of statements to execute
Informationen
- Beschreibung
- Notiz am Chapter 4 Vocabulary, erstellt von cjonas1489 am 03/03/2016.
- Erstellt von
- cjonas1489
- Aufrufe
- 2
- Bewertung