A.<%@taglibURL="/hello"prefix="examples"%> B.<%@taglibURI="/hello"prefix="examples"%> C.<%@tagliburl="/hello"prefix="examples"%> D.<%@tagliburi="/hello"prefix="examples"%>
单项选择题正则表达式([0-9]{3})-([a-z]{3})-([a-z]*?ab)与下列哪个字符串相匹配()
A.123-abc{3}-cab B.123{3}-abc-cab C.123-abc-cb D.123-abc-ccab
单项选择题定义字符串:Stringstr= abcdefg ;则str.substring(2,5).indexOf(’d’)的结果是:()
A.1 B.3 C.2 D.4
单项选择题以下循环执行()次。
A.无限 B.10 C.9 D.11
单项选择题以下语句输出的结果是:() Stringstr= 1234 ; intx=4,y=5; str=str+(x+y); System.out.println(str);
A.12349 B.123445 C.会产生编译错误 D.123+4+5
单项选择题如下代码在ServletA.java中: 假如编译Servlet要具备的环境都已经建立好,现在用完全正确的命令编译该文件,对于以下陈述正确的是()
A.编译该文件时会提示缺少doGet()或者doPost方法,编译不能够成功通过 B.编译后,把Servlet1.class放在正确的位置,在浏览器中查看该Servlet1,会看到输出文字:”hello!” C.编译后,把Servlet1.class放在正确的位置,在浏览器中查看该Servlet1,却看不到任何输出文字 D.编译后,把Servlet1.class放在正确的位置,在浏览器中查看该Servlet1,却看到产生运行时错误的出错信息
单项选择题类Teacher和Student是类Person的子类: Personp; Teachert; Students; p,tandsareallnon-null. if(tinstanceofPerson){s=(Student)t;} 最后一句语句的结果是:()
A.将构造一个Student对象 B.表达式是合法的 C.表达式是错误的 D.编译时正确,但运行时错误
单项选择题下列代码编译和执行后的结果是()
A.代码不打印任何东西 B.代码打印出"My Object" C.代码打印出"My String" D.代码抛出一个Runtime的异常
A.在main()方法处编译失败 B.在run()方法处编译失败 C.只有“In run”最终打印出来 D.In run在"Leaving run"前一起被打印出来 E.编译正常,但是不打印任何东西
单项选择题关于下面的程序,哪个项的说法是正确的?()
A.编译通过,打印出5 B.编译通过,打印出23 C.编译不通过,在//2处有错误 D.编译不通过,在//1处有错误
单项选择题一个栈的输入序列为12345,则下列序列中不可能是栈得输出序列的是()。
A.23415 B.23145 C.54132 D.15432
单项选择题J2EE的三层结构包括表示层、中间层、()。
A.服务层 B.中间层 C.保存层 D.数据层
单项选择题下面两段代码打印的结果是:() System.out.println(5.00-D.90); System.out.println(300-210);
A.0.8999999999999999和90 B.0.9和90 C.0.8999999999999999和89.99999999999999 D.0.9和89.99999999999999
多项选择题关于白盒一般知识,说法正确的有:()
A.白盒是基于程序结构的逻辑驱动测试 B.白盒测试是依据被测源程序分析程序内部构造,并根据内部构造设计用例,来对内部控制流程进行测试,可完全不顾程序的整体功能实现情况 C.白盒测试一般在测试前期进行,通过达到一定的逻辑覆盖率指标,使得软件内部逻辑控制结构上的问题能基本得到消除 D.白盒测试发现问题后解决问题的成本较低
多项选择题导致软件缺陷的原因有很多,以下是可能的原因,其中最主要的原因包括()
A.软件需求说明书编写的不全面,不完整,不准确,而且经常更改 B.软件设计说明书 C.软件操作人员的水平 D.开发人员不能很好的理解需求说明书和沟通不足
多项选择题编写测试计划的目的有()
A.使测试工作顺利进行 B.使项目参与人员沟通更舒畅 C.使测试工作更加系统化 D.软件工程以及软件过程的需要 E.软件过程规范化的要求 F.控制软件质量