Chapter 4 T/F Review - Computer Programming
A random number, created as an object of the Random class, is always an integer.
False
All it takes for an AND expression to be true is for one of the subexpressions to be true.
False
The DecimalFormat class is part of the Java API so it is automatically available to your programs.
False
When testing for character values, the switch statement does not test for the case of the character.
False
When two strings are compared using the String class's compareTo method, the comparison is not case sensitive.
False
All it takes for an OR expression to be true is for one of the subexpressions to be true.
True
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.
True
If the expression on the left side of the && operator is false, the expression on the right side will not be checked.
True
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.
True
Unicode is an international encoding system that is extensive enough to represent all the characters of all the world's alphabets.
True