Question: 18. Given the following code what is the last String written to the console? public void switchTest) int x e sitch(x) case 81 case 1t
18. Given the following code what is the last String written to the console? public void switchTest) int x e sitch(x) case 81 case 1t case 2: case 3: default: System.out.printin("microwave Chocolate") System.out.println("Use Clean Mixing Bowl-")i System.out.printin( Heat Oven to 4se degrees) System.out.printin2 Tbsp toffee bits) System.out.printin("Bake until lightly brown) a. Use Clean Mixing Bowl b. c. d. Heat Oven to 450 degrees Bake until lightly brown 2 Tbsp toffee bits 19. A selection sort a. Partially sorts an array in an ascending order b. Partially sorts an array in a descending order c. Fully sorts an array in either an ascending or a descending order d. Fully sorts an array but requires 4 loops to do so 20. Which of the following methods takes an array as a parameter? a. public void method2(int array) b. private void method3(int size, int array) c. public void method1(Object list[]) d. protected int [] method4(int list) 21. Unchecked Exceptions: a. b. c. d. Must be surrounded by a try block Must be in a method that implements throws Either a or b Neither a or b 22. Reading and Writing with text files (and binary files) Allows us to output data from a program to a text file instead of the screen/console. Provides a way of testing results. Provides a way to "save" the state/informatio re-ru All of the above. a. put data to achieve consistent our programs with the same in b. n of our program, so when the program c. our program. ns, it can "load" that state/information back into d
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
