When searching and sorting data stored on a computer, comparisons can be made using character strings.

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

True

Computer Science & Information Technology

You might also like to view...

Rewrite the following if statement as an equivalent switch statement. The variable num is of type int.

``` if (num == 0 || num == 1) control = 100; else if (num == 2) control = 200; else if (num == 3) control = 300; else control = 0; ```

Computer Science & Information Technology

What is the output for the third statement in the main method?

``` public class Foo { static int i = 0; static int j = 0; public static void main(String[] args) { int i = 2; int k = 3; { int j = 3; System.out.println("i + j is " + i + j); } k = i + j; System.out.println("k is " + k); System.out.println("j is " + j); } } ``` a. j is 0 b. j is 1 c. j is 2 d. j is 3

Computer Science & Information Technology