Final review CHPT3 tf

¡Supera tus tareas y exámenes ahora con Quizwiz!

When testing for character values, the switch statement does not test for the case of the character

False

an important style rule you should follow when writing if statements is to line up the conditionally executed statement with the if statement

False

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

False

programs never need more than one path of execution

False

when two strings are compared using the the compareTo method, the cases of the two strings are not considered

False

The if/else statement will execute one group of statements if its boolean expression is true and another group if its boolean expression is false

True

a local variable's scope always ends at the closing brace of the block of code in which it is declared

True

and important style rule you should adopt for writing if statements is to write the conditionally executed statement on the line after the if statement

True

b/c the && operator performs short circuit evaluation, your boolean expression will usually execute faster if the sub-expression that is most likely false is on the left of the && operator `

True

because the | | operator performs short-circuit evaluation, your boolean expression will generally be evaluated faster if the sub-expression that is most likely to be true is on the left

True

in a switch statement, each of the case values must be unique

True

the STring.format method works exactly like the System.out.printf method, except that it does not display the formatted string on the screen

True

the system.out.printf method formats a string and displays it in the console window

True

unicode is an international encoding system that is extensive enough to represent ALL the characters of ALL the worlds alphabets

True


Conjuntos de estudio relacionados

Essentials of Geology: Chapter 9

View Set

What happend? - the purse is mine

View Set

PLT Praxis: Practice Test: FORM 1

View Set

Chapter 35 Assessment of immune function

View Set

Security Incident Response (SIR)

View Set

Chapter 40 Fluid and Electrolytes and Acid Base Balance PREP U

View Set

World geography chapter 7 section 2

View Set