Survey
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
* Your assessment is very important for improving the workof artificial intelligence, which forms the content of this project
Question 41 To develop a program to solve a problem, you start by ____. analyzing the problem implementing the solution in Java designing the algorithm entering the solution into a computer system Question 42 ____ represent information with a sequence of 0s and 1s. Analog signals Application programs Digital signals System programs Question 43 A program called a(n) ____ translates the assembly language instructions into machine language. loader interpreter linker assembler Question 44 The read method returns ____ when trying to read past the end of the input file. -1 0 1 null Question 45 for(i = 1; i < 20; i++) System.out.println(“Hello World ”); System.out.println(“!”); Which of the following is the loop condition in the for loop above? i = 1; i < 20; i++ System.out.println(“Hello World”); Question 46 int x = 5; int y = 30; do x = x * 2; while(x < y); What is the final value of x in the code above? 5 10 20 40 Question 47 int x = 0; for(i = 0; i <4; i++); x++; if(x == 3) System.out.println(“*”); What is the output of the code above? a. * b. ** c. *** d. There is no output Question 48 Which of the following is NOT a reserved word in Java? a. do b. while c. for d. loop Question 49 Which of the following does not have an entry condition? EOF-controlled while loop sentinel-controlled while loop do...while loop for loop Question 50 StringTokenizer tokenizer = new StringTokenizer(keyboard.readLine()); int limit = Integer.parseInt(tokenizer.nextToken()); int counter = 0; while(counter < limit){ entry = Integer.parseInt(tokenizer.nextToken()); triple = entry *3; System.out.println(triple); counter++; } The above code is an example of a(n) ____ while loop. flag-controlled counter-controlled EOF-controlled sentinel-controlled