Answer the following statements true (T) or false (F)

1. When testing for character values, the switch statement does not test for the case of the character.
2. In a switch statement, each of the case values must be unique.
3. The String.format method works exactly like the System.out.printf method, except that it does not display the formatted string on the screen.
4. The System.out.printf method formats a string and displays it in the console window.
5. If the compiler encounters a statement that uses a variable before the variable is declared, an error will result.


1. FALSE
2. TRUE
3. TRUE
4. TRUE
5. TRUE

Computer Science & Information Technology

You might also like to view...

If you want to rearrange your layers in order to change their visibility or to better organize them, simply drag the layer up or down on the _________________________.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Contiguous slides are slides that are adjacent to each other in a presentation

Indicate whether the statement is true or false

Computer Science & Information Technology

A ________, a second-level menu, displays an arrow to indicate that more options are available

A) shortcut menu B) taskbar C) jump list D) submenu

Computer Science & Information Technology

When the Format Painter is clicked ________, the formatting can be applied one time to a cell or a range of cells

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology