[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc

上传人:medalangle361 文档编号:491001 上传时间:2018-11-30 格式:DOC 页数:17 大小:91KB
下载 相关 举报
[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc_第1页
第1页 / 共17页
[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc_第2页
第2页 / 共17页
[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc_第3页
第3页 / 共17页
[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc_第4页
第4页 / 共17页
[实用职业技能类试卷]北大青鸟(Y2)模拟试卷12及答案与解析.doc_第5页
第5页 / 共17页
点击查看更多>>
资源描述

1、北大青鸟( Y2)模拟试卷 12及答案与解析 一、多项选择题 下列各题的备选答案中,至少有一个是符合题意的,请选出所有符合题意的备选答案。 1 在 Spring的配置文件中,包含如下所示的配置代码,则下面说法正确的是( ) . ( A)可以通过下列代码获取对象实 例: ApplicationContext context=new ClassPathXmlApplicationContext(“di.xml“);TestBean t=(TestBean)context.getBean(“test.TestBean“); ( B) TestBean中一定有如下语句: private String

2、dp=“; ( C) TestBean中可能有方法: public void setSp(String value) ( D)属性 dp的类型可能是 int也可能是 String; 2 在 ASP.NET中, Repeater控件专门用于精确内容的显示,以下关于 Repeater说法正确的是( ) . ( A) Repeater控件不提供任何布局内容 ( B) Repeater控件不能通过源代码视图进行模板的编辑 ( C) Repeater控件能够自动生成 HTML标签 ( D) Repeater控件没有默认的外观 3 下面对于 ASP.NET运行机制的描述正确的是 ( ) ( A)代码后置式

3、 jsp和 共有的一项技术 ( B)与 JSP一样, 文件也是先编译后执行 ( C)编译器将 代码编译为 IL后,在有 JIT一次性地将全部 代码编译为机器语言 ( D)可以使用预编译来发布站点以解决用户的第一次访问慢的问题 二、单项选择题 下列各题的备选答案中,只有一个是符合题意的。 4 在 ASP.NET某页面中,假设有一个名为 txtPassword的文本框用于接受用户输入的密码,则在运行时查看 HTML源时,该文本框的代码应当是 ( )。 ( A) ( B) ( C) ( D) 5 在使用 Struts框架构建应用系统时,建立一个类 UserBean,包含 userName属性以及相

4、应的 setter、 getter方法 ;另外建立一个 Action类,它的 execute方法有如下片段 : UserBean user=new UserBean( ) ; user.setUserName(“rose“); request.setAttribute(“user“,user); return actionMapping,findForward(“success“); 假设 success对应的 jsp页面为 success.jsp,若要使 success.jsp能够输出 user对象中的属性值,以下代码片段正确的是 ( )。 ( A) ( B) ( C) ( D) 6 在 A

5、SP.NET中, Visual Studio 提供了 4中创建 WEB站点的方式,一下说法错误的是 ( ) ( A)文件系统方式指将文件存储在本地硬盘的一个指定文件夹中将可以进行开发测试功能工作,但也必须安装 IIS ( B)本地 IIS方式可以使用 IIS高级功能 ( C) FTP站点方式指将文件保存在服务器上,在共享环境下,许多人可以同时使用项目 ( D)远程站点方式配置复杂,缺点很多 7 关于 ASP.NET的特色和优势描述错误的是 ( ) ( A)与浏览器无关 ( B)依赖与特定的服务器操作系统 ( C)易于调式开发 ( D)编译开发,效率更高 8 在 AJAX技术中,使用 JAVAS

6、CRIPT的 XMLHttpRequest对象完成发送请求到服务器并获得返回结果的任务,一般分为以下四个步骤,它们的先后顺序是 ( ) 1创建 XMLHttpRequest实例 2获得服务器返回数据 3初始化 XMLHttpRequest4发生请求 ( A) 1342 ( B) 1324 ( C) 3142 ( D) 2134 9 在 JSP页面上使用 JSTL标签时,应使用 taglib指令导入标签库描述符文件,并设置 taglib指令的 ( )属性指定标签库描述符文件的路径 ( A) url ( B) uri ( C) src ( D) prefix 10 在 JSTL的迭代标签 的属性中

7、,用于指令要遍历的对象集合的是 ( ) ( A) var ( B) items ( C) value ( D) varStatus 11 在使用 hibernate对类与类之间进行了双向一对多关联时,下列相关 inverse属性的说法中 ( )正确 ( A) inverse为 true时,表示即时加载关联的对象 ( B) inverse为 false时,表示延时加载关联的对象 ( C) inverse为 true时,表示由对方管理关联的对象 ( D) inverse为 false时,表示不管理关联的对象 12 在 Hibernate中,实体类的映射文件用于说 明实体类和数据库表的映射关系,以及

8、实体类的属性和表字段的映射关系,它是一个 ( )格式的文件 ( A) properties ( B) css ( C) xml ( D) txt 13 在 ASP.Net中,使用缓存后替换方式进行页面部分缓存时,需要指定Substitution 控件的 Methodname属性,这个属性调用的方法格式正确的是 ( ) ( A) protected string getDateTime(HttpContext context) return System.DateTimeNowtoSyring(); ( B) protected static string getDateTime() retur

9、n System.DateTimeNowtoSyring(); ( C) protected static string getDateTime(HttpContext context) return System.DateTimeNowtoSyring(); ( D) protected override string getDateTime(HttpContext context) return System.DateTimeNowtoSyring(); 14 在 Java中方法重载的条件不包括 ( ) ( A)方法名称相同 ( B)返回值类型不同 ( C)参数顺序不同 ( D)参数类型不

10、同 15 在 ASP.Net中, HyperLink控件的 ( )属性用来设置指向的 URL地址 ( A) TargetRrl ( B) NavigatRrl ( C) ImagerUrl ( D) TextUrl 16 在 中有两种配置文件 ,数据库连接属于站点级连接 ,一般存放在 ( )配置文件中 . ( A) app.config ( B) machine.config ( C) web.congfig ( D) website.config 17 Servlet 是一个在服务器上运行 ,处理请求信息并将其发送到客户端的 Java程序 .( )接受服务请求 ,找到 Servlet类 ,加

11、载 Servlet类并创建 Servlet对象 . ( A) 客户端 ( B) IE浏览器 ( C) Servlet容器 ( D) Servle本身 18 在 中 ,新建站点的过程和创建虚拟目录的过程差一点是 ( ). ( A)需要指定应用程序放置的路径 ( B)需要设置端口号 ( C)需要赋予访问权限 ( D)需要确定 web服务器 19 下列选项中不属于 jsp标准动作的是 ( ). ( A) ( B) ( C) ( D) 20 在使用 Struts时 ,( )访问设置 ActionServlet的路径 . ( A) web.xml 文件中的 标签 ( B) web.xml 文件中的 标签

12、 ( C) struts-config.xml 文件中的 标签 ( D) struts-config.xml 文件中的 标签 21 在 中实现显示移除缓存的方法是 ( ). ( A) Del ( B) Delete ( C) Remove ( D) Cache 22 中 ,下列关于 page指令参数 描述错误的是 ( ). ( A) Language 用来指定页面代码和后置代码使用的语言 ( B) AutoEventWireup 默认 (不写时 )为 false ( C) CodeFile用来指定后置代码文件 ( D) Inherits用来指定页面类 23 下面有关 ASP.NET中 Req

13、uest对象的 ServcerVariable属性描述正确的是 ( )。 ( A)用于收集 HTTP请求中的 Get方式请求发送的数据 ( B)用于收集 Post方式发送的请求数据 ( C)包含了服务器和客户端的系统消息 ( D)以上三项的集合 24 下面的代码定义了一个 Form Bean,假设 Medium类有两个属性: name和 age,要使 Form Bean 能保存页面表单域中的值,则下面代码正确的是 ( )。 Public class AllForm extends ActionForm private Medium medium=new Medium( ) ; private

14、String remark; /Getter and Setter ( A) ( B) ( C) ( D) 25 在 ASP.NET页面中,使用验证控件来限制用户输入的年份在 1990到 2010,以下 ( )代码能够实现。 ( A) minimum value=“1990“ maximumValue=“2010“ errorMessage=“非法 !“ display=“dynamic“ runat=“server“ ( B) ( C) ( D) 26 关于 spring 与 hibernate 集成,下面说法错误的是 ( ) ( A) spring 提供了 hibernateDaoSupp

15、ort 类来简化 hibernate的使用 ( B)在 spring配置文件中可以通过 spring 提供的 localSessionFactoryBean,来获得sessionFactory的实例 ( C)通过集成 spring和 hibernate,用 spring管理程序的依赖关系,将 sessionFatory注入到 datasource中 ( D)通过 spring,可以在业务逻辑层代码中无需直接实例化 DAO类,而是通过依赖注入得到 27 在 struts应用程序的配置文件中配置了如下的 dispatchaction,已知该dispatchaction,定义了处理请求的方法 pri

16、nt,则在 JSP页面上能够正确将表单提交到 print方法处理的代码是 ( ) ( A) ( B) ( C) ( D) 28 在 ASP.NET的 AJAX框架技术中,有关 CollapsiblePanel控件的 TargetControlId属性描述正确的是 ( ) ( A)设置被显示或隐藏 panel的 ID ( B)没有这个属性,应该是 TargetControl属性 ( C) 属性的值是一个控件 ( D) 只 能通过编码设置,不能在页面设置 29 在 java web 应用程序中, EL表达式可用于访问 ( )中存储的数据 ( A) web.xml ( B) Servlet ( C)

17、 Applet ( D) JavaBean 30 在 ASP.NET中,关于导航控件的说法正确的是 ( )。 ( A) TreeView控件使用的数据源必须是后缀名为 xml的文件 ( B) SiteMapPath 控件必须使用后缀名为 xml的文件和站点地图为数据源 ( C) 模板页上不能放置导航控件 ( D) 只有在站点地图中写 明某页面的 url,该页面才能显示 siteMapPath导航控件 31 在 JSP的 HTTP协议中,一下 ( )方法适合用于检索文档,图表或数据库查询结果的 HTTP请求,且传递的数据对客户端是可见的,例如下面所示的请求URL: http:/www.googl

18、e.co.uk/search?h1=en respose.sendRedirect(“http:/localhost:8080/servlet/MyServlet“); ( A) String str = request.getAttribute(“name“); ( B) String str = (String) request.getAttribute(“name“); ( C) Object str = request.getAttribute(“name“); ( D)无法取出来 33 使用 Spring集成 Struts时, ( )操作时错误的。 ( A)在 struts配置文件

19、struts-config.xml中配置插件 ( B)将 Struts配置文件中 Action为 ”org.springframeworDweb.struts.DelegatingActionProxy” ( C)在 Spring配置文件中配置自定义 Action ( D) DAO类继承自 ActionServletSupport 34 在名 helloapp的 Java Web应用中有一个名为 HelloSerlet的 HttpServlet类。它在web.xml文件中的配置如下所示,那么正确访问 HellServlet的 URL是 ( ) HelloServlet org,jb.lHell

20、Servlet HelloServlet /Hello ( A) http:/localhost:8080/HelloServlet ( B) http:/localhost:8080/helloServlet/HelloServlet ( C) http:/localhost:8080/helloServlet/org/javathinker/hello ( D) http:/localhost:8080/helloServlet/Hello 35 在 ASP.NET中要对 RULe地址进行编码,是他不会被浏览器解释为 HTML语法,可以使用的方法是( ) ( A) HrmlEncode (

21、 B) UrlEncode ( C) UrlDecode ( D) UrlCode 36 关于 HQL查询,下面说法错 误的是 ( ), ( A) HQL查询可以执行 T-SQL语句,执行速度更快 ( B) HQL支持统计函数 ( C) HQL语句可以实现类似 PerparedStatement的效果 ( D) HQL支持只查询对象的某几个属性,查询结果将保存在一个 List数据中 37 在 ASP.NET中,对于母板页的使用错误的有 ( ) ( A)模板页的声明一般是: ( B)内容页面后缀为 .aspx;母板页后缀为 .master ( C)内容页使用 ContentPlaceHolder

22、控件类关联母板页 ( D)一个母板页可包含多个内容页 38 以下为一段使用 ASPNET AJAX的 Rating控件实现等级效果的代码,如果选中的部分为深色的星星,未选中的部分显示为浅色的星星,则以下代码运行后显示等级效果是( )( A)图 1 ( B)图 2 ( C)图 3 ( D)图 4 39 在 Java Servlet API 中,以下关于 HttpServlet的说法错误的是 ( )。 ( A) HttpServlet是一个抽象类 ( B) HttpServlet类的子类至少重写 doGet或 doPost方法之一 ( C) HttpServlet类的子类至少重写 Service方

23、法 ( D) HttpServlet位于 javax.servlet.http包中 北大青鸟( Y2)模拟试卷 12答案与解析 一、多项选择题 下列各题的备选答案中,至少有一个是符合题意的,请选出所有符合题意的备选答案。 1 【正确答案】 C,D 2 【正确答案】 A,D 3 【正确答案】 B,D 二、单项选择题 下列各题的备选答案中,只有一个是符合题意的。 4 【正确答案】 C 5 【正确答案】 C 6 【正确答案】 A 7 【正确答案】 B 8 【正确答案】 A 9 【正确答案】 B 10 【正确答案】 B 11 【正确答案】 C 12 【正确答案】 C 13 【正确答案】 C 14 【正

24、确答案】 B 15 【正确答案】 B 16 【正确答案】 C 17 【正确答案】 C 18 【正确答案】 B 19 【正确答案】 B 20 【正确答案】 B 21 【正确答案】 C 22 【正确答案】 B 23 【正确答案】 D 24 【正确答案】 B 25 【正确答案】 A 26 【正确答案】 C 27 【正确答案】 D 28 【正确答案】 A 29 【正确答案】 D 30 【正确答案】 D 31 【正确答案】 C 32 【正确答案】 D 33 【正确答案】 D 34 【正确答案】 D 35 【正确答案】 B 36 【正确答案】 A 37 【正确答案】 C 38 【正确答案】 B 39 【正确答案】 C

展开阅读全文
相关资源
猜你喜欢
  • AECMA PREN 4529-002-2001 Aerospace Series Elements of Electrical and Optical Connection Sealing Plugs Part 002 Index of Product Standards Edition P 1《航空航天系列光电连接件试验方法.第002部分 产品标准索引 .pdf AECMA PREN 4529-002-2001 Aerospace Series Elements of Electrical and Optical Connection Sealing Plugs Part 002 Index of Product Standards Edition P 1《航空航天系列光电连接件试验方法.第002部分 产品标准索引 .pdf
  • AECMA PREN 4529-003-2001 Aerospace Series Elements of Electrical and Optical Connection Sealing Plugs Part 003 Class T - Product Standard Edition P 1《航空航天系列光电连接件试验方法.第003部分 T类-产品标准.pdf AECMA PREN 4529-003-2001 Aerospace Series Elements of Electrical and Optical Connection Sealing Plugs Part 003 Class T - Product Standard Edition P 1《航空航天系列光电连接件试验方法.第003部分 T类-产品标准.pdf
  • AECMA PREN 4530-001-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 001 Technical Specification Edition P1《航天系列密封衣袖.第001部分 技术规格 P.第1版》.pdf AECMA PREN 4530-001-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 001 Technical Specification Edition P1《航天系列密封衣袖.第001部分 技术规格 P.第1版》.pdf
  • AECMA PREN 4530-002-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 002 List and Utilisation of Sealing Sleeves Edition P 1《航天系列密封衣袖.第002部分 列表和利用密封衣袖 P.第1.pdf AECMA PREN 4530-002-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 002 List and Utilisation of Sealing Sleeves Edition P 1《航天系列密封衣袖.第002部分 列表和利用密封衣袖 P.第1.pdf
  • AECMA PREN 4530-005-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 005 Sealing Sleeves for External Diameter Cable 3 mm to 4 1 mm Product Standard Editio.pdf AECMA PREN 4530-005-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 005 Sealing Sleeves for External Diameter Cable 3 mm to 4 1 mm Product Standard Editio.pdf
  • AECMA PREN 4530-006-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 006 Sealing Sleeves for External Diameter Cable 4 68 mm to 5 05 mm Product Standard Ed.pdf AECMA PREN 4530-006-2005 Aerospace Series Sealing Sleeves Used in Elements of Connection Part 006 Sealing Sleeves for External Diameter Cable 4 68 mm to 5 05 mm Product Standard Ed.pdf
  • AECMA PREN 4531-001-2004 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 001 Technical specification Edition P 1《航天系列连.pdf AECMA PREN 4531-001-2004 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 001 Technical specification Edition P 1《航天系列连.pdf
  • AECMA PREN 4531-002-2005 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 002 Specification of performance and contact .pdf AECMA PREN 4531-002-2005 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 002 Specification of performance and contact .pdf
  • AECMA PREN 4531-003-2005 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 003 Square flange receptacle Product standard.pdf AECMA PREN 4531-003-2005 Aerospace series Connectors optical circular single and multipin coupled by threaded ring Flush contacts Part 003 Square flange receptacle Product standard.pdf
  • 相关搜索

    当前位置:首页 > 考试资料 > 职业资格

    copyright@ 2008-2019 麦多课文库(www.mydoc123.com)网站版权所有
    备案/许可证编号:苏ICP备17064731号-1