在文件存储中,若要获得SD卡的存储路径,需要调用()
第1题:
A.put(Stringname.Objectvalue)
B.set(Stringname.Objectvalue)
C.setAttribute(Stringname.Objectvalue)
D.putAttribute(Stringname.Objectvalue)
E.addAttribute(Stringname.Objectvalue)
第2题:
类Teacher:classTeacher{Stringname;floatsalary;Teacher(Stringname){this.name=name;}Teacher(Stringname,floatsalary){this.name=name;this.salary=salary;}}执行语句Teachert=newTeacher(Tom”,2000.0f);后,字段salary的值是哪一项?()
A.2000.0f
B.0.0f
C.null;
D.2000
第3题:
File类中,获得文件路径的方法是______。
第4题:
A、多路径软件状态检查
B、主机停机
C、存储阵列监控检查
D、存储停机
第5题:
此题为判断题(对,错)。
第6题:
A.Studentstu=newStudent(“Tom”,23);stu.study(“数学”);
B.Student.study(“数学”);
C.Studentstu=newStudent(“Tom”,23);stu.study();
D.Studentstu=newStudent(“Tom”,23);Stringresult=stu.study(“数学”);
第7题:
A.Stringname=File.getParentName(“file.txt”);
B.Stringname=(newFile(“file.txt”)).getParent();
C.Stringname=(newFile(“file.txt”)).getParentName();
D.Stringname=(newFile(“file.txt”)).getParentFile();
E.Directorydir=(newFile(“file.txt”)).getParentDir();Stringname=dir.getName();
第8题:
下面哪项不是application对象的方法()
A、getAttribute(Stringname)
B、getCookies()
C、getInitParameter()
D、setAttribute(Stringname,Objectvalue)
第9题:
在创建线程时可以显示地指定线程组,此时可供选择的线程构造方法有( )种。
pubicTbread(ThreadGroupgroup,Rurmabletarget):
publicThread(ThreadGroupgroup,Stringname);
publicThread(ThreadGroupgroup,Runnabletarget,Stringname)。
A.1
B.2
C.3
D.4
第10题:
在生成文件对象的语句中,如果文件对象的路径是文件夹所属的路径,需要调用File类中的______方法生成对应的文件夹。
A.createNewFile()
B.isDirectory()
C.canRead()
D.mkdir()