setfacl -m user:new:6 test表示用户new对test文件拥有可读可写权限。
第1题:
下列数组array_test中,能在程序运行时动态调整大小的是
A.int array_test[]=new int[10]
B.String[] array_test
C.ArrayList army_test=new Array List()
D.Array array_test=new Array()
第2题:
已知有下列类的说明,则下列哪个语句是正确的?public class Test { private float f=1.0f; int m=12; static int n=1; public static void main(String arg[]) { Test t= new Test(); }}
A.t.f;
B.this. n
C.Test.m;
D.Test.f;
第3题:
下列程序段的输出结果是【 】。
public class Test {
void printValue(int m) {
do {
System.out.println("The value is"+m);
}while (--m>10);
}
public static void main (String args[]) {
int i=10;
Test t= new Test();
t.printValue(i);
}
}
第4题:
阅读下面程序 public class Test implements Runnable{ public static void main(String[]args){ _______________________________________; t. start(); } public void mR(){ System. out. println("Hello!"); }} 在程序下画线处填入正确选项是
A.Test t=flew Test()
B.Thread t=new Thread();
C.Thread t=new Thread(new Test());
D.Test t=new Thread();
第5题:
下列代码中,将引起一个编译错误的行是 1) public class Test{ 2) int m,n; 3) public Test(){} 4) public Test(inta){m=a;} 5) public static void main(String args[]){ 6) Test t1,t2; 7) int j,k; 8) j=0;k=0; 9) t1=new Test(); 10) t2=new Test(j,k); 11) } 12) }
A.第3行
B.第5行
C.第6行
D.第10行
第6题:
下面的程序执行后,文件test.txt中的内容是 ( ) # include<stdio.h> void fun(char*<fname,char * st) { FILE*myf;int i; myf=fopen(fname,"w"); for(i=0;i<strlen(st);i+ +) fputc(st[i],myf); fclose (myf); } main( ) { fun("test","new word"); fun("test","hello"); }
A.hello
B.new worldhello,
C.new world
D.hello,rld
第7题:
已知有下列类的说明,则下列( )语句是正确的。 publicClass Test{ private float f=1.0f; int m=12; static int n=1: public static void main(Stringarg[]){ Test t=new Test(): } }
A.t.f;
B.this.n;
C.Test.m;
D.Test.f;
第8题:
A.t.f
B.this.n
C.Test.m
D.Test.n
第9题:
下面的程序执行后,文件test.txt中的内容是______。 #include<stdio.h> void fun(char *fname,char *st) { FILE*myf;int i; myf=fopen("test.txt","w"); for(i=0;i<strlen(st);i++) fputc(st[i],myf); fclose(myf); } main() { fun("test","new one"); fun("test","hello,"); }
A.hello,
B.new onehello,
C.new one
D.hello,ne
第10题:
下面的程序执行后,文件test.t中内容是 ______。 #include<stdio.h> void fun(char * fName,char * st) {FILE * myf; int i; myf=fopm(fname,"w"); for(i=0;i<strlen(st);i++)fputc(st[i],myf); fclose(myf); } main(){fun("test.t","new world");fun("test.t","hello,");}
A.hello,
B.new worldhello
C.new world
D.hello.rld