The JSP developer wants a comment to be visible in the final

题目
单选题
The JSP developer wants a comment to be visible in the final output to the browser. Which comment styleneeds to be used in a JSP page?()
A

<!-- this is a comment -->

B

<% // this is a comment %>

C

<%-- this is a comment --%>

D

<% /** this is a comment **/ %>

如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

Whichtwoarevalidandequivalent?()

A.<%!inti;%>

B.<%=inti;%>

C.<jsp:expr>inti;</jsp:expr>

D.<jsp:scriptlet>inti;</jsp:scriptlet>

E.<jsp:declaration>inti;</jsp:declaration>


参考答案:A, E

第2题:

下列正确地在CSS文件中插入注释的语句是( )。

A.//this is a comment

B.//this is a comment//

C./*this is a comment*/

D.this is a comment


正确答案:C

第3题:

与Form1.Show方法效果相同的是( )。

A.Form1.Visible=True

B.Form1.Visible=False

C.Visible.Form1=True

D.Visible.Form1=False


正确答案:A

第4题:

如何在CSS文件中插入注释()

  • A、//this is a comment
  • B、//this is a comment//
  • C、/*this is a comment*/
  • D、this is a comment

正确答案:C

第5题:

Squeaky Beans Inc. hired an outside consultant to develop their web application. To finish the job quickly, the consultant created several dozen JSP pages that directly communicate with the database. The Squeaky business team has since purchased a set of business objects to model their system, and the Squeaky developer charged with maintaining the web application must now refactor all the JSPs to work with the new system.  Which pattern can the developer use to solve this problem?()

  • A、 Transfer Object
  • B、 Service Locator
  • C、 Intercepting Filter
  • D、 Business Delegate

正确答案:D

第6题:

WhichJSPstandardactioncanbeusedtoimportcontentfromaresourcecalledfoo.jsp?()

A.<jsp:importfile=’foo.jsp’/>

B.<jsp:importpage=’foo.jsp’/>

C.<jsp:includepage=’foo.jsp’/>

D.<jsp:includefile=’foo.jsp’/>


参考答案:C

第7题:

Which JSP standard action can be used to import content from a resource called foo.jsp?()

  • A、<jsp:import file=’foo.jsp’ />
  • B、<jsp:import page=’foo.jsp’ />
  • C、<jsp:include page=’foo.jsp’ />
  • D、<jsp:include file=’foo.jsp’ />

正确答案:C

第8题:

Youarebuildingyourownlayoutmechanismbyincludingdynamiccontentforthepage’sheaderandfootersections.Thefooterisalwaysstatic,buttheheadergeneratesthe<title>tagthatrequiresthepagenametobespecifieddynamicallywhentheheaderisimported.WhichJSPcodesnippetperformstheimportoftheheadercontent?()

A.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:include>

B.<jsp:importpage=’/WEB-INF/jsp/header.jsp’><jsp:paramname=’pageName’value=’WelcomePage’/></jsp:import>

C.<jsp:includepage=’/WEB-INF/jsp/header.jsp’><jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:include>

D.<jsp:importpage=’/WEB-INF/jsp/header.jsp’>.<jsp:attributename=’pageName’value=’WelcomePage’/>.</jsp:import>


参考答案:A

第9题:

下面()是JAVA语言中的有效注释。

  • A、/this is a comment/
  • B、--this is a comment
  • C、this is a comment
  • D、/--this is a comment

正确答案:A

第10题:

可插入多行注释的 JavaScript 语法是?()

  • A、 /*This comment has more than one line*/ 
  • B、 //This comment has more than one line// 
  • C、 <!--This comment has more than one line-->

正确答案:A

更多相关问题