Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Consider the program below: public class Test { public static void main(String[] args) { int[] a; a new int[ 10 ]; for (int i
Consider the program below: public class Test { public static void main(String[] args) { int[] a; a new int[ 10 ]; for (int i = 0; i < a.length; i++) a[1] = 1+2: int result = 0; for (int i = 0; i < a.length; i++) resulta[i]; System.out.printf( "Result is: %d ", result ); } // end main } // end class Test: The output of this program will be: a. Result is: 62. b. Result is: 64. c. Result is: 65. d. Result is: 66. 8. Consider the class below: public class Test (1 public static void main(String[] args) ( int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3 }; int result = 0; for (int i=0; i 30) result + a[ i]; } // end for System.out.printf( "Result is: %d ", result); }//end main } // end class Test The output of this Java program will be: a. Result is: 280, b. Result is: 154. c. Result is: 286. d. Result is: 332. 9. Which of the following is not an algorithm? a. A recipe. b. Operating instructions. c. Textbook index. d. Shampoo instructions (lather, rinse, repeat). 10. Which of the following is true? a. Pseudocode is used to describe an algorithm. b. Pseudocode is translatable by the programmer into a programming language (like Java). c. Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program. d. All of the above Consider the program below: public class Test { public static void main(String[] args) { int[] a; a new int[ 10 ]; for (int i = 0; i < a.length; i++) a[ 1 ] = 1 + 2: int result = 0; for (int i = 0; i < a. length; i++) resulta[i]; System.out.printf( "Result is: %d ", result); } // end main } // end class Test: The output of this program will be: a. Result is: 62. b. Result is: 64. c. Result is: 65. d. Result is: 66. 8. Consider the class below: public class Test (1 public static void main(String[] args) ( int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3 }; int result = 0; for (int i 0; i 30) result + a[i]; } // end for System.out.printf( "Result is: %d ", result); } // end main } // end class Test The output of this Java program will be: a. Result is: 280, b. Result is: 154. c. Result is: 286. d. Result is: 332. 9. Which of the following is not an algorithm? a. A recipe. b. Operating instructions. c. Textbook index. d. Shampoo instructions (lather, rinse, repeat). 10. Which of the following is true? a. Pseudocode is used to describe an algorithm. b. Pseudocode is translatable by the programmer into a programming language (like Java). c. Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program. d. All of the above Consider the program below: public class Test { public static void main(String[] args) { int[] a: a new int[ 10 ]; for (int i = 0; i < a.length; i++) a[ 1 ] = 1 + 2: int result = 0; for (int i System.out.printf( "Result is: %d ", result ); } // end main } // end class Test. c. Result is: 65. d. Result is: 66. result+a[i]; The output of this program will be: a. Result is: 62. b. Result is: 64. 0; i < a.length; i++) 8. Consider the class below: public class Test (1 public static void main( String[] args) ( int[] a = {99, 22, 11, 3, 11, 55, 44, 88, 2, -3 }; int result = 0; for (int i=0; i 30) result += a[i]; } // end for System.out.printf( "Result is: %d ", result); }//end main } // end class Test The output of this Java program will be: a. Result is: 280, b. Result is: 154. c. Result is: 286. d. Result is: 332. 9. Which of the following is not an algorithm? a. A recipe. b. Operating instructions. c. Textbook index. d. Shampoo instructions (lather, rinse, repeat). 10. Which of the following is true? a. Pseudocode is used to describe an algorithm. b. Pseudocode is translatable by the programmer into a programming language (like Java). c. Pseudocode is used to describe executable statements that will eventually be translated by the programmer into a program. d. All of the above
Step by Step Solution
There are 3 Steps involved in it
Step: 1
2 Prepare the adjusting journal entries include explanations a Bad debt expense is estimated to be 2...Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started