| (a != b) && (a != c) && (b != c) What is the output of the code snippet given below? for (int i = 0; i != 9; ) { System.out.print (" " + i); i = i + 2; } | 10 12 14 16 18 . (infinite loop) | | 0 2 4 6 8 10 12 14 . (infinite loop) | How many times does the following code snippet display "Loop Execution"? for (int i = 0; i < 10; i++) ; { System.out.println("Loop Execution") ; } | Ten times What does the output show when this loop executes and finally terminates? for ( int i = 20 ; i >= 2 ; i = i - 6 ) { System.out.print ( i + ", " ); } | 20, 19, 18, 17, . . . 4, 3, 2 | | 20, 14, 8, 2, 4 Which of the following for loops is not valid? | for (int i = 0, k = 1; ; i++) { . . . } | | for (int i = 0) { . . . } | | for (int i = 0; ; ) { . . . } Which of the following for loops is not valid? | for (int i = 0, k = 1; ; i++) { . . . } | | for (int i = 0) { . . . } | | for (int i = 0; ; ) { . . . } Given the following code snippet, what should we change to have all 26 alphabetic characters in the string str? String str = ""; for ( char c = 'A' ; c < 'Z' ; c++ ) { str = str + c; } | Must change to use a do ... while loop | | c <= 'Z' Given the following code snippet, what should we change to have all 26 alphabetic characters in the string str? String str = ""; for ( char c = 'A' ; c < 'Z' ; c++ ) { str = str + c; } | Must change to use a do ... while loop | | c <= 'Z' Insert a statement that will correctly terminate this loop when the end of input is reached. boolean done = false; while (!done) { String input = in.next(); if (input.equalsIgnoreCase("Q")) { __________ } else { double x = Double.parseDouble(input); data.add(x); } } | done = false; How many times will the output line be printed in the following code snippet? for (int num2 = 1; num2 <= 3; num2++) { for (int num1 = 0; num1 <= 2; num1++) { System.out.println ( "" + num2 + " " + num1 ); } } | | | | | | | |