此题为判断题(对,错)。
第1题:
Given:And MainClass exists in the /apps/com/company/application directory. Assume the CLASSPATHenvironment variable is set to "." (current directory). Which two java commands entered at the command line will run MainClass?()

A.java MainClass if run from the /apps directory
B.java com.company.application.MainClass if run from the /apps directory
C.java -classpath /apps com.company.application.MainClass if run from any directory
D.java -classpath . MainClass if run from the /apps/com/company/application directory
E.java -classpath /apps/com/company/application:. MainClass if run from the /apps directory
F.java com.company.application.MainClass if run from the /apps/com/company/application directory
第2题:
下列语句能给数组赋值,而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";}
B.String s[5]=new String[] {"Zero","One","Two","Three","Four"};
C.String s[]=new String[] {"Zero","One","Two","Three","Four"};
D.String s[]=new String[]= {"Zero","One","Two","Three","Four"};
第3题:
以下哪句代码可以点击后打开新页面new.wxml(非tab页面),并且新页面带有返回箭头可以返回前一页?
A.<navigator url='pages/new/new' open-type='redirect'></navigator>
B.<navigator url='pages/new/new' open-type='switchTab'></navigator>
C.<navigator url='pages/new/new' open-type='navigate'></navigator>
D.<navigator url='pages/new/new' open-type='reLaunch'></navigator>
第4题:
下列语句能给数组赋值而不使用for循环的是
A.myArray{[1]="One";[2]="Two";[3]="Three";}
B.String s[5]=new String[]{"Zero", "One", "Two", "There", "Four"};
C.String s[]=new String[]{"Zero", "One", "Two", "There", "Four"};
D.String s[]=new String[]=|"Zero", "One", "Two", "There", "Four"};
第5题:
A. mv /old_dir/file /new_dir
B. mv -p /old_dir/file /new_dir
C. mv -k /old_dir/file /new_dir
D. mv /old_dir/file /new_dir/new_file
第6题:
下列给字符串二维数组进行赋值的语句中,错误的是()。
A.String s[ ] [ ] = new String [ ] [ ] { { “One “ , “ Two “ }, { “ Three “ , “ Four “ } } ;
B.String s[ ] [ ] = { { “ One “ , “Two “},{ “ Three “ , “ Four “ } } ;
C.String s[ ] [ ] = new String [ ] [ ] { { “Zero”} , { “ One ” , “Two” , “ Three” , “ Four” } } ;
D.String s[ 2] [2 ] = { { “ One ” , “Two”},{“ Three” , “ Four” } } ;