Chapter 4 T/F Review - Computer Programming

Ace your homework & exams now with Quizwiz!

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


Related study sets

Legal Concepts of the Insurance Contract

View Set

Accounting Principles 1 Final Mize

View Set

Chapter 5 Performance Appraisal I-O Psychology

View Set

NU 205 - documentation and communication

View Set

ANCC Practice Questions Domain 3

View Set

Courts and Criminal Procedures Final Exam

View Set

NCLEX- leadership and management

View Set

Accounting 285 Final Exam Tophat Questions

View Set