Logical Operators - Learning Objectives & Essential Knowledge

LEARNING OBJECTIVE		
Evaluate compound boolean  expressions in program code.		
Compare and contrast equivalent boolean  expressions.		

ESSENTIAL KNOWLEDGE		
Logical operators !(not), &&(and), and ||(or) are used with boolean  values. This represents the order these operators will be evaluated.		
An expression involving logical operators evaluates to a boolean  value.		
When the result of a logical expression using && or || can be determined by
evaluating only the first boolean  operand, the second is not evaluated. This is known as
short-circuited evaluation.		
 De Morgan’s Laws can be applied to boolean  expressions.	 	
Truth tables can be used to prove boolean  identities.		
Equivalent boolean  expressions will evaluate to the same value in all cases.