JSP程序设计 期末试卷(B)答案.pdf

JSP程序设计 期末试卷(B)答案.pdf

ID:48008494

大小:185.11 KB

页数:12页

时间:2020-01-13

JSP程序设计 期末试卷(B)答案.pdf_第1页
JSP程序设计 期末试卷(B)答案.pdf_第2页
JSP程序设计 期末试卷(B)答案.pdf_第3页
JSP程序设计 期末试卷(B)答案.pdf_第4页
JSP程序设计 期末试卷(B)答案.pdf_第5页
资源描述:

《JSP程序设计 期末试卷(B)答案.pdf》由会员上传分享,免费在线阅读,更多相关内容在行业资料-天天文库

1、江苏海事职业技术学院2011/2012学年第二学期期末考试试卷(B)答案适考专业:计算机网络技术试卷编号:考试科目:JSP程序设计考试类型:考试:学号一、选择题(每题1分共50分)1.DriverManager类的getConnection(Stringurl,Stringuser,Stringpassword)方法中,参数url的格式为jdbc:<子协议>:<子名称>,下列哪个url是不正确的?(B)A)”jdbc:mysql://localhost:80/数据库名”B)”jdbc:odbc:数据源”C)”jdbc:oracle:thin@host:端口号:数据库名”D)”jd

2、bc:sqlserver://172.0.0.1:1443;DatabaseName=数据库名”:2.查询结果集ResultSet对象是以统一的行列形式组织数据的,执行ResultSetrs=姓名stmt.executeQuery("selectbid,name,author,publish,pricefrombook");语句,得到的结果集rs的列数为(B)A)4B)5C)6D)不确定3.下列哪个作用范围的Bean,当客户离开这个页面时,JSP引擎取消为客户该页面分配的Bean,释放他所占的内存空间。(C)A)applicationB)request:C)pageD)sessi

3、on班级4.JSP页面可以在“<%=”和“%>”标记之间放置Java表达式,直接输出Java表达式的值。组成“<%=”标记的各字符之间(B)。A)可以有空格B)不可以有空格C)必须有空格D)不确定5.以下哪个对象提供了访问和放置页面中共享数据的方式(D)A)pageContextB)responseC)requestD)session信息工程系6.(D)是标题标记。:A)

标记B)
标记C)


标记D)系部7.使用动作标记可以在JSP页面中得到Bean实例的属性值,并将其转1换为什么类型的数据,发送到客户端。(A)A)Str

4、ingB)DoubleC)ObjectD)Classes8.当利用request的方法获取Form中元素时,默认情况下字符编码是哪个(A)A)ISO-8859-1B)GB2312C)GB3000D)ISO-8259-19.调用getCreationTime()可以获取session对象创建的时间,该时间的单位是(C)。A)秒B)分秒C)毫秒D)微秒10.JSP的Page编译指令的属性Language的默认值是:(A)A)JavaB)CC)C#D)SQL11.可以在以下哪个()标记之间插入变量与方法声明?(B)A)<%和%>B)<%!和%>C)D)<%和!>12.

5、:useBeanid="bean的名称"scope="bean的有效范围"class="包名.类名"/>动作标记中,scope的值不可以是(D)。A)pageB)requestC)sessionD)response13.下列变量声明在()范围内有效。(C)。<%!DatedateTime;intcountNum;%>A)从定义开始处有效,客户之间不共享B)在整个页面内有效,客户之间不共享C)在整个页面内有效,被多个客户共享D)从定义开始处有效,被多个客户共享14.下面描述错误的是(C)A)HTML文件必须由开头,标记结束。B)文档头信息包含在

6、与之间。C)在和之间可以包含和<body>等信息。2D)文档体包含在<body>和</body>标记之间15.JSP页面通过(C)来识别Bean对象,可以在程序片中通过xx.method形式来调用Bean中的set和get方法。A)nameB)classC)idD)classname16.JSP的编译指令标记通常是指:(A)A)Page指令、Include指令和Taglib指令B)Page指令、Include指令和Plugin指令C)Forward指令、Include指令和Taglib指令D)Page指令、Param指令和Ta</p><p>7、glib指令17.一个典型的HTTP请求消息包括请求行、多个请求头和(B)A)响应行B)信息体C)响应行D)响应头18.下面不属于JSP内置对象的是(D)A)out对象B)respone对象C)application对象D)page对象19.out对象是一个输出流,其输出不换行的方法是(A)A)out.print()B)out.newLine()C)out.println()D)out.write()20.下列()注释为隐藏型注释。(C)。A)<!--注释内容[<%=表达式%>]</p> </div> <div class="mt-3 bg-white"> <div class="d-lg-block d-none px-3 px-lg-4 py-3 border-bottom text-center font-18"> 当前文档最多预览五页,下载文档查看全文 </div> <div class="detail-fixed-feature d-none d-lg-block" id="detailFixedFeatureBox"> <div class="px-3 px-lg-4 py-3 d-flex align-items-center justify-content-between fixed-feature-box" id="detailFixedFeature"> <div class="d-lg-flex d-none align-items-center"> <div> <a class="btn btn-outline-danger article-state" href="javascript:;" data-id="48008494" data-code="438274" data-title="JSP程序设计 期末试卷(B)答案.pdf"> <span>侵权申诉</span> </a> <button type="button" class="btn btn-outline-secondary with-light ml-2" data-toggle="modal" data-target="#reportModal" data-id="48008494"><span>举报</span></button> </div> <nav class="d-flex align-items-center ml-4" id="anchorPoint"> <a href="javascript:;" class="btn btn-light anchor-pre px-2"><i class="iconfont text-muted"></i></a> <div class="text-muted mb-0 pre-point-list" id="prePointList"> <a class="px-2 active nav-link" href="#anchorImg0">1</a> <a class="px-2 nav-link" href="#anchorImg1">1</a> <a class="px-2 nav-link" href="#anchorImg2">2</a> <a class="px-2 nav-link" href="#anchorImg3">3</a> <a class="px-2 nav-link" href="#anchorImg4">4</a> <a class="px-2 nav-link" href="#anchorImg5">5</a> / <span class="px-2" id="prePageNums">12</span> </div> <a href="javascript:;" class="btn btn-light anchor-next px-2"><i class="iconfont text-muted"></i></a> </nav> </div> <div class="d-flex align-items-center"> <p class="d-lg-block d-none font-14 text-black-50 mb-0 mr-2">此文档下载收益归作者所有</p> <button class="btn btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" style="width:128px;height:40px;" data-id="48008494" data-price="1500" data-size="185.11 KB" data-page="12页" data-type="pdf" data-binddown="true" data-isold="new_content" data-vip="0" data-title="JSP程序设计 期末试卷(B)答案.pdf">下载文档</button> </div> </div> </div> </div> <div class="d-block d-lg-none px-3 px-lg-4 py-3 border-bottom text-center font-14" style="color:#999">当前文档最多预览五页,下载文档查看全文</div> <button class="btn d-block w-100 d-lg-none btn-danger detail-download-btn px-3 ml-0 font-16" data-btn="downloadfile" data-id="48008494" data-price="1500" data-size="185.11 KB" data-page="12页" data-type="pdf" data-binddown="true" data-isold="new_content" data-vip="0" data-title="JSP程序设计 期末试卷(B)答案.pdf">点击下载本文档 </button> </div> <div class="px-3 px-lg-4 py-3 bg-white mt-3"> <ul class="nav custom-tab border-bottom" id="myTab" role="tablist"> <li class="nav-item" role="presentation"> <a class="nav-link active px-0 mr-4 font-16 font-weight-light pb-3" id="tips-tab" data-toggle="tab" href="#showTips" role="tab" aria-controls="showTips" aria-selected="true">版权提示</a> </li> <li class="nav-item" role="presentation"> <a class="nav-link px-0 pb-3 font-16 font-weight-light text-black-50" href="/d-48008494.html" >下载文档</a> </li> <dl class="flex-grow-1 mb-0 d-lg-none"> <li class="ml-3 float-right d-lg-none"> <button type="button" class="btn btn-light" data-toggle="modal" data-target="#reportModal" data-id="48008494"><span>举报</span></button> </li> </dl> </ul> <div class="tab-content with-content pt-3" id="myTabContent"> <div class="tab-pane fade show active font-14" id="showTips" role="tabpanel" aria-labelledby="showTips-tab"> 温馨提示: <br> 1. 部分包含数学公式或PPT动画的文件,查看预览时可能会显示错乱或异常,文件下载后无此问题,请放心下载。<br> 2. 本文档由用户上传,版权归属用户,天天文库负责整理代发布。如果您对本文档版权有争议请及时联系客服。<br> 3. 下载前请仔细阅读文档内容,确认文档内容符合您的需求后进行下载,若出现内容与标题不符可向本站投诉处理。<br> 4. 下载文档时可能由于网络波动等原因无法下载或下载错误,付费完成后未能成功下载的用户请联系客服处理。 <br> </div> </div> </div> </div> <div class="detail-sidebar d-none d-lg-block"> <div id="columnDetailSiderRight"> <div class="detail-yourlike mt-0 pb-2" id="relativeArticle"> <div class="border-bottom py-2 d-flex align-items-center justify-content-between"> <h5 class="font-16">相关文章</h5> <a class="font-14 hover-letter-spacing" href="/ucenter/search/index.html?text=JSP程序设计 期末试卷(B)答案.pdf" target="_blank" rel="nofollow">更多<i class="iconfont font-12 pl-1"></i></a> </div> <ul class="font-14 like-list"> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-6061279.html" title="11-12-2 jsp程序设计 期末试卷(b)答案" target="_blank">11-12-2js<span class="text-danger">p</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span><span class="text-danger">(</span>b<span class="text-danger">)</span><span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-34384516.html" title="2012年jsp程序设计期末试卷b题目及其答案" target="_blank">2012年js<span class="text-danger">p</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>b题目及其<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-39270638.html" title="Jsp程序设计复习答案" target="_blank"><span class="text-danger">J</span>s<span class="text-danger">p</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span>复习<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-39703008.html" title="JSP程序设计期末试卷A题目及其答案资料" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>A题目及其<span class="text-danger">答</span><span class="text-danger">案</span>资料</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-40088123.html" title="JSP期末试卷A及答案" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>A及<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-47023359.html" title="JSP期末试卷B及答案" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span><span class="text-danger">B</span>及<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-47061700.html" title="JSP程序设计期末试卷A题目及其答案" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>A题目及其<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-48306345.html" title="JSP程序设计期末试卷A题目及其答案" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>A题目及其<span class="text-danger">答</span><span class="text-danger">案</span></a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-doc" href="/p-54765321.html" title="JSP程序设计期末试卷A题目及其答案.doc" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span><span class="text-danger">期</span><span class="text-danger">末</span><span class="text-danger">试</span><span class="text-danger">卷</span>A题目及其<span class="text-danger">答</span><span class="text-danger">案</span><span class="text-danger">.</span><span class="text-danger">d</span>oc</a> </li> <li class=""> <a class="text-ellipsis office-icon text-dark office-icon-pdf" href="/p-56182715.html" title="JSP程序设计技术教程习题参考答案.pdf" target="_blank"><span class="text-danger">J</span><span class="text-danger">S</span><span class="text-danger">P</span><span class="text-danger">程</span><span class="text-danger">序</span><span class="text-danger">设</span><span class="text-danger">计</span>技术教<span class="text-danger">程</span>习题参考<span class="text-danger">答</span><span class="text-danger">案</span><span class="text-danger">.</span><span class="text-danger">p</span><span class="text-danger">d</span><span class="text-danger">f</span></a> </li> </ul> </div> <div class="detail-yourlike pb-2"> <div class="border-bottom py-2"> <h5 class="font-16">相关标签</h5> </div> <ul class="font-14 like-list d-flex flex-wrap"> <a class="search-tag" href="/tags/1248134/" target="_blank">期末试卷</a> <a class="search-tag" href="/tags/1299293/" target="_blank">程序设计</a> <a class="search-tag" href="/tags/510003/" target="_blank">答案</a> </ul> </div> <script src="/d/js/acmsd/thea1.js"></script> </div> </div> </div> <footer> <div class="container d-none d-lg-block mb-4"> <div class="d-flex justify-content-between footer-nav"> <ul class="d-flex foot-nav"> <li> <h5>常见问题</h5> <a class=text-decoration-none href=/help/wenti/upload/ target=_blank> 关于上传 </a><a class=text-decoration-none href=/help/wenti/xiazai/ target=_blank> 关于下载 </a><a class=text-decoration-none href=/help/wenti/qinquan/ target=_blank> 关于侵权 </a><a class=text-decoration-none href=/help/wenti/fenxaing/ target=_blank> 分享文档赚钱教程 </a> </li> <li> <h5>关于我们</h5> <a class=text-decoration-none href=/help/about/wzjs/ target=_blank> 网站介绍 </a><a class=text-decoration-none href=/help/about/gywm/ target=_blank> 关于我们 </a><a class=text-decoration-none href=/help/about/lxwm/ target=_blank> 联系我们 </a> </li> <li> <h5>版权问题</h5> <a class=text-decoration-none href=/help/banquan/bqsm/ target=_blank> 版权声明 </a><a class=text-decoration-none href=/help/banquan/qqcl/ target=_blank> 侵权处理 </a><a class=text-decoration-none href=/help/banquan/mzsm/ target=_blank> 免责声明 </a> </li> <li> <h5>协议条款</h5> <a class=text-decoration-none href=/help/xieyi/yhxy/ target=_blank> 用户协议 </a><a class=text-decoration-none href=/help/xieyi/fwtk/ target=_blank> 用户服务条款 </a><a class=text-decoration-none href=/help/xieyi/ysbh/ target=_blank> 用户隐私保护 </a> </li> <li> <h5>网站导航</h5> <a class="text-decoration-none help-nav-item" href="/sitemaps.xml" data-name="网站地图" target="_blank">网站地图</a> <a class="text-decoration-none help-nav-item" href="/list.html" data-name="全部分类" target="_blank">全部分类</a> <a class="text-decoration-none help-nav-item" href="/sitemaps/index.html" data-name="资源地图" target="_blank">资源地图</a> </li> </ul> <div class="foot-qrcode d-flex"> <div> <div class="subsitute-bg"><img src="https://www.wenku365.com/d/file/2022/07-08/f23df57d987ef7ad9acb33fe5abf9854.jpg"></div> <p>关注公众号<br></p> </div> </div> </div> </div> <div class="footer-copyright"> <p><a href="/" target="_blank">天天文库</a>站为“文档C2C交易模式”,即用户上传的文档直接卖给(下载)用户,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有【成交的100%(原创)】。</p> <p>本站是网络服务平台方,若您的权利被侵害,侵权客服QQ:3074922707 欢迎举报。</p> <p>Copyright 2004-2021 <a href="https://www.wenku365.com/" target="_blank">wenku365.com</a> All Rights Reserved <a href="https://beian.miit.gov.cn/#/Integrated/index" rel="nofollow" target="_blank">闽ICP备15016911号-5 </a></p> <p>闽公网安备 <a href="http://www.beian.gov.cn/portal/registerSystemInfo?recordcode=35052402000320" rel="nofollow" target="_blank">35052402000320</a></p> <p> <a href="https://www.wenku365.com/zt.html" target="_blank">专题文集</a> <a href="https://www.wenku365.com/zt-90007.html" target="_blank">丨职业培训</a> <a href="https://www.wenku365.com/zt-90005.html" target="_blank">丨实用范文</a> <a href="https://www.wenku365.com/zt-90010.html" target="_blank">丨商业材料</a> <a href="https://www.wenku365.com/zt-90013.html" target="_blank">丨合同协议</a> <a href="https://www.wenku365.com/zt-90009.html" target="_blank">丨PPT专题</a></p> </div> </footer> <script src="//static.wenku365.com/wenku365/js/global.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/clipboard.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.treeview.js?"></script> <script src="//static.wenku365.com/wenku365/js/jquery.share.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/common.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/downloadFile.js?"></script> <script src="//static.wenku365.com/wenku365/js/loginWindow.js?"></script> <script src="//static.wenku365.com/wenku365/js/windowRecharge.js?"></script> <script src="//static.wenku365.com/wenku365/js/viewer.min.js?"></script> <script src="//static.wenku365.com/wenku365/js/detail.js?"></script> <!-- 2023-05-07 12:10:05 --> </body> </html>