[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fURFFtNOTrfdy-rAAUtE8mZP8KNngGB22idhly5cHils":3},{"answer":4,"createTime":5,"id":6,"options":7,"origin":12,"question":19,"related":20,"source":30,"type":31},[],"2023-06-18 13:09:11",69294163,[8,9,10,11],"2.0","2.5","3.0","1.5",{"count":13,"courseId":14,"courseImg":15,"courseName":16,"workId":17,"workName":18},66,"c4be4ab1eff37b3c242474d09c0e6c6e","https:\u002F\u002Ftihai-oss-cloud.itihey.com\u002Fimg\u002Fa15b56d20bfdf34590f49fc7c209f3dd.jpg","Java程序设计-非计算机","383d84493a2645559a3d09336b0c0c9b","2 Basics of Java - 1","If you enter 4 2 4, when you run this program, what will be the output? import java.util.Scanner; public class Test1 { public static void main(String[] args) { Scanner input = new Scanner(System.in); System.out.print(&quot;Enter three numbers: &quot;); double number1 = input.nextDouble(); double number2 = input.nextDouble(); double number3 = input.nextDouble(); \u002F\u002F Compute average int average = (number1 + number2 + number3) \u002F 4; \u002F\u002F Display result System.out.println(average); } }",[21,32,41,50,53,62,71,80,90,99],{"answer":22,"createTime":5,"id":23,"options":24,"question":29,"source":30,"type":31},[],69294160,[25,26,27,28],"3.53.5","3.5 3.5","area3.5","area 3.5","What is the exact output of the following code? double area = 3.5; System.out.print(&quot;area&quot;); System.out.print(area)","v1",0,{"answer":33,"createTime":5,"id":34,"options":35,"question":40,"source":30,"type":31},[],69294161,[36,37,38,39],"input.nextDouble()","input.nextdouble()","input.double()","input.Double()","Suppose a Scanner object is created as follows, what method do you use to read a real number? Scanner input = new Scanner(System.in)",{"answer":42,"createTime":5,"id":43,"options":44,"question":49,"source":30,"type":31},[],69294162,[45,46,47,48],"Enter an integer, a space, a double value, and then the Enter key","Enter an integer, two spaces, a double value, and then the Enter key","Enter an integer, an Enter key, a double value, and then the Enter key","Enter a numeric value with a decimal point, a space, an integer, and then the Enter key","The following code fragment reads in two numbers: Scanner input = new Scanner(System.in); int i = input.nextInt(); double d = input.nextDouble(); What is the incorrect way to enter these two numbers",{"answer":51,"createTime":5,"id":6,"options":52,"question":19,"source":30,"type":31},[],[8,9,10,11],{"answer":54,"createTime":5,"id":55,"options":56,"question":61,"source":30,"type":31},[],69294164,[57,58,59,60],"The program displays month is 09","The program displays month is 9","The program displays month is 9.0","The program has a syntax error, because 09 is an incorrect literal value","Analyze the following code. public class Test { public static void main(String[] args) { int month = 09; System.out.println(&quot;month is &quot; + month); } }",{"answer":63,"createTime":5,"id":64,"options":65,"question":70,"source":30,"type":31},[],69294165,[66,67,68,69],"x is 5 and y is 6","x is 6.0 and y is 6.0","x is 6 and y is 6","x is 5.5 and y is 5","What is the output of the following code: double x = 5.5; int y = (int)x; System.out.println(&quot;x is &quot; + x + &quot; and y is &quot; + y)",{"answer":72,"createTime":5,"id":73,"options":74,"question":79,"source":30,"type":31},[],69294166,[75,76,77,78],"byte","int","long","double","If you attempt to add an int, a byte, a long, and a double, the result will be a(n) __________ value",{"answer":81,"createTime":5,"id":82,"options":83,"question":89,"source":30,"type":31},[],69294167,[84,85,86,87,88],"The program displays n is 1000000000000","The result of 10000 * 10000 * 10000 is too large to be stored in an int variable n. This causes an overflow and the program is aborted","The result of 10000 * 10000 * 10000 is too large to be stored in an int variable n. This causes an overflow and the program continues to execute because Java does not report errors on overflow","The result of 10000 * 10000 * 10000 is too large to be stored in an int variable n. This causes an underflow and the program is aborted","The result of 10000 * 10000 * 10000 is too large to be stored in an int variable n. This causes an underflow and the program continues to execute because Java does not report errors on underflow","Analyze the following code: public class Test { public static void main(String[] args) { int n = 10000 * 10000 * 10000; System.out.println(&quot;n is &quot; + n); } }",{"answer":91,"createTime":5,"id":92,"options":93,"question":98,"source":30,"type":31},[],69294168,[94,95,96,97],"The program has a compile error because the required break statement is missing in the switch statement","The program has a compile error because the required default case is missing in the switch statement","The switch control variable cannot be double","No errors","Analyze the following program fragment: int x; double d = 1.5; switch (d) { case 1.0: x = 1; case 1.5: x = 2; case 2.0: x = 3; }",{"answer":100,"createTime":5,"id":101,"options":102,"question":108,"source":30,"type":31},[],69294169,[103,104,105,106,107],"-10","0","10","20","Illegal expression","What is y after the following statement is executed? x = 0; y = (x &gt; 0) ? 10 : -10"]