Which statement prints the floating-point value 123.456 right justified with a field width of 10? ( ) A: System.out.printf("%d10.3", 123.456); B: System.out.printf("%10.3d", 123.456); C: System.out.printf("%f10.3", 123.456); D: System.out.printf("%10.3f", 123.456);
Which statement prints the floating-point value 123.456 right justified with a field width of 10? ( ) A: System.out.printf("%d10.3", 123.456); B: System.out.printf("%10.3d", 123.456); C: System.out.printf("%f10.3", 123.456); D: System.out.printf("%10.3f", 123.456);
下列选项中,循环会无限执行的是______。 A: int i = 1 ; while ( i < 10) System .out .print( “ ” + i) ; B: for( int i = 1 ; i < 10 ;i ++) System .out .print( “ ” + i); C: for( int i = 10 ; i > 0 ;i --) System .out .print( “ ” + i); D: int i = 1 ; while (true) { System .out .print( “ ” + i); i ++ ; if ( i > 5) break ;
下列选项中,循环会无限执行的是______。 A: int i = 1 ; while ( i < 10) System .out .print( “ ” + i) ; B: for( int i = 1 ; i < 10 ;i ++) System .out .print( “ ” + i); C: for( int i = 10 ; i > 0 ;i --) System .out .print( “ ” + i); D: int i = 1 ; while (true) { System .out .print( “ ” + i); i ++ ; if ( i > 5) break ;
New students spend hours in the library, trying to()the system of arranging the books. A: work out B: cross out C: set out D: put out
New students spend hours in the library, trying to()the system of arranging the books. A: work out B: cross out C: set out D: put out
10. A control system ought to both point out the problem and specify the solution.
10. A control system ought to both point out the problem and specify the solution.
The role of the ______ branch of government is to carry out the political system’s policies, laws or directives.
The role of the ______ branch of government is to carry out the political system’s policies, laws or directives.
5. In order to find out more information about this alarm system, one can _______.
5. In order to find out more information about this alarm system, one can _______.
The ALU tells the rest of the computer system how to carry out a program's instructions.
The ALU tells the rest of the computer system how to carry out a program's instructions.
A software tester’s task is to help find out the bugs in a software system before it is released.
A software tester’s task is to help find out the bugs in a software system before it is released.
请看下面的程序代码,当 n 为( )值时,程序段将输出字符串 second。 [br][/br] switch(n) { [br][/br] case 0: System .out .println(“first”); [br][/br] case 1: [br][/br] case 2: System .out .println(“second”); break; [br][/br] default: System .out .println(“end”); [br][/br] }(2.0) A: 0 B: 1 C: 2 D: 以上都可以
请看下面的程序代码,当 n 为( )值时,程序段将输出字符串 second。 [br][/br] switch(n) { [br][/br] case 0: System .out .println(“first”); [br][/br] case 1: [br][/br] case 2: System .out .println(“second”); break; [br][/br] default: System .out .println(“end”); [br][/br] }(2.0) A: 0 B: 1 C: 2 D: 以上都可以
阅读以下程序,对程序功能的描述中正确的是 #icnlude int main() { FILE *in, *out; char ch, infile[10], outfile[10]; printf("Enter the infile name:"); scanf("%s", infile); printf("Enter the outfile name:"); scanf("%s", outfile); if ((in = fopen(infile, "r")) == NULL) { printf("cannot open infile."); exit(0); } if ((out = fopen(outfile, "w")) == NULL) { printf("cannot open outfile."); exit(0); } while (!feof(in)) { fputc(fgetc(in), out); } fclose(in); fclose(out); return 0; }
阅读以下程序,对程序功能的描述中正确的是 #icnlude int main() { FILE *in, *out; char ch, infile[10], outfile[10]; printf("Enter the infile name:"); scanf("%s", infile); printf("Enter the outfile name:"); scanf("%s", outfile); if ((in = fopen(infile, "r")) == NULL) { printf("cannot open infile."); exit(0); } if ((out = fopen(outfile, "w")) == NULL) { printf("cannot open outfile."); exit(0); } while (!feof(in)) { fputc(fgetc(in), out); } fclose(in); fclose(out); return 0; }