CS CH4 T/F
All it takes for an OR expression to be true is for one of the subexpressions to be true.
T
A random number, created as an object of the Random class, is always an integer.
F
All it takes for an AND expression to be true is for one of the subexpressions to be true.
F
In a switch statement, if two different values for the CaseExpression would result in the same code being executed, you must have two copies of the code, one after each CaseExpression.
F
When testing for character values, the switch statement does not test for the case of the character.
F
When two strings are compared using the String class's compareTo method, the comparison is not case sensitive.
F
An important style rule that should be used when writing if statements is to write the conditionally executed statement on the line after the if statement.
T
If the expression on the left side of the && operator is false, the expression on the right side will not be checked.
T
The if-else statement will execute one group of statements if its boolean expression is true or another group if its boolean expression is false.
T
Unicode is an international encoding system that is extensive enough to represent all the characters of all the world's alphabets.
T