网友您好, 请在下方输入框内输入要搜索的题目:

题目内容 (请给出正确答案)
单选题
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 **/ %>


参考答案

参考解析
解析: 暂无解析
更多 “单选题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 **/ %” 相关考题
考题 与Form1.Show方法效果相同的是( )。A.Form1.Visible=TrueB.Form1.Visible=FalseC.Visible.Form1=TrueD.Visible.Form1=False

考题 Youarebuildingyourownlayoutmechanismbyincludingdynamiccontentforthepage’sheaderandfootersections.Thefooterisalwaysstatic,buttheheadergeneratesthetitletagthatrequiresthepagenametobespecifieddynamicallywhentheheaderisimported.WhichJSPcodesnippetperformstheimportoftheheadercontent?()A.jsp:includepage=’/WEB-INF/jsp/header.jsp’jsp:paramname=’pageName’value=’WelcomePage’//jsp:includeB.jsp:importpage=’/WEB-INF/jsp/header.jsp’jsp:paramname=’pageName’value=’WelcomePage’//jsp:importC.jsp:includepage=’/WEB-INF/jsp/header.jsp’jsp:attributename=’pageName’value=’WelcomePage’/./jsp:includeD.jsp:importpage=’/WEB-INF/jsp/header.jsp’.jsp:attributename=’pageName’value=’WelcomePage’/./jsp:import

考题 Whichtwoarevalidandequivalent?() A.%!inti;%B.%=inti;%C.jsp:exprinti;/jsp:exprD.jsp:scriptletinti;/jsp:scriptletE.jsp:declarationinti;/jsp:declaration

考题 WhichJSPstandardactioncanbeusedtoimportcontentfromaresourcecalledfoo.jsp?() A.jsp:importfile=’foo.jsp’/B.jsp:importpage=’foo.jsp’/C.jsp:includepage=’foo.jsp’/D.jsp:includefile=’foo.jsp’/

考题 下列正确地在CSS文件中插入注释的语句是( )。A.//this is a commentB.//this is a comment//C./*this is a comment*/D.this is a comment

考题 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’ /

考题 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 ObjectB、 Service LocatorC、 Intercepting FilterD、 Business Delegate

考题 下面()是JAVA语言中的有效注释。A、/this is a comment/B、--this is a commentC、this is a commentD、/--this is a comment

考题 如何在CSS文件中插入注释()A、//this is a commentB、//this is a comment//C、/*this is a comment*/D、this is a comment

考题 可插入多行注释的 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--

考题 在CSS样式文件中的注释正确的是()。A、// this is a comment //B、// this is a commentC、/* this is a comment */D、/’ this is a comment

考题 如何在JavaScript中添加注释?()A、' This is a commentB、!--This is a comment--C、//This is a comment

考题 Company.com has installed and configured a VIO server utilizing a Shared Ethernet Adapter and is investigating some network performance issues visible on the clients. The customer wants to understand the total network connectivity from the clients out to the data center routers.  Which of the following commands will identify the Shared Ethernet Adapter mapping?()A、ifconfig -aB、netstat -nrC、lsmap -all -netD、lsdev -Cc adapter

考题 You are building your own layout mechanism by including dynamic content for the page’s header and footersections. The footer is always static, but the header generates the  tag that requires the page name tobe specified dynamically when the header is imported. Which JSP code snippet performs the import of theheader content?() titleA、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:includeB、jsp:import page=’/WEB-INF/jsp/header.jsp’jsp:param name=’pageName’ value=’Welcome Page’ / /jsp:importC、jsp:include page=’/WEB-INF/jsp/header.jsp’jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:includeD、jsp:import page=’/WEB-INF/jsp/header.jsp’. jsp:attribute name=’pageName’ value=’Welcome Page’ / . /jsp:import

考题 You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which JSP code snippet should be used to make this menuvisible to the user?()A、% if ( request.isUserInRole("SalesManager") ) { % %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % % } %B、jsp:if test=’request.isUserInRole("SalesManager")’ %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % /jsp:ifC、% if ( request.isUserInRole("SalesManager") ) { % . jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / . % } %D、jsp:if test=’request.isUserInRole("SalesManager")’ jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / /jsp:if

考题 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 **/ %

考题 多选题A developer complains that after making changes to a store JSP, the original content still displays in the browser.  Which of the following steps should the administrator perform to try to solve the problem?()AEnsure that the modified JSP is located in the correct directory and has the correct timestamp.BStop and restart the WebSphere Commerce Server.CStop and restart the database server.DClear the WebSphere Commerce cache.ERefresh the URL Views registry using the WebSphere Commerce Administration Console.

考题 单选题Your network contains an Active Directory domain named contoso.com. The domain contains a server named Server1 that runs Windows Server 2012 R2. Server1 has the Hyper- V server role installed. The domain contains a virtual machine named VM1. A developer wants to attach a debugger to VM1. You need to ensure that the developer can connect to VM1 by using a named pipe. Which virtual machine setting should you configure?()A Network AdapterB BIOSC ProcessorD COM 1

考题 单选题在CSS样式文件中的注释正确的是()。A // this is a comment //B // this is a commentC /* this is a comment */D /’ this is a comment

考题 单选题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 ObjectB  Service LocatorC  Intercepting FilterD  Business Delegate

考题 单选题You are building JSP pages that have a set of menus that are visible based on a user’s security role. Thesemenus are hand-crafted by your web design team; for example, the SalesManager role has a menu in thefile /WEB-INF/html/sales-mgr-menu.html. Which JSP code snippet should be used to make this menuvisible to the user?()A % if ( request.isUserInRole(SalesManager) ) { % %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % % } %B jsp:if test=’request.isUserInRole(SalesManager)’ %@ include file=’/WEB-INF/html/sales-mgr-menu.html’ % /jsp:ifC % if ( request.isUserInRole(SalesManager) ) { % . jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / . % } %D jsp:if test=’request.isUserInRole(SalesManager)’ jsp:include file=’/WEB-INF/html/sales-mgr-menu.html’ / /jsp:if

考题 单选题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 Squeakybusiness 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 newsystem. Which pattern can the developer use to solve this problem?()A Transfer ObjectB Service LocatorC Intercepting FilterD Business Delegate

考题 单选题Among all the comments, which of the following choices brings in authoritative sources in their discussion?A Comment 1 and Comment 2.B Comment 3 and Comment 5.C Comment 1 and Comment 7.D Comment 4 and Comment 6.

考题 多选题A Company.com developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in a thread-safe manner.  Which two can support this design goal?()AStore the data in a local variable.BStore the data in an instance variable.CStore the data in the HttpSession object.DStore the data in the ServletContext object.EStore the data in the ServletRequest object.

考题 多选题A developer wants a web application to be notified when the application is about to be shut down. Which two actions are necessary to accomplish this goal?()AInclude a listener directive in a JSP pageBconfigure a listener in the TLD file using the  elementCInclude a  element in the web application deployment descriptorDconfigure a listener in the application deployment descriptor, using the  elementEInclude a class implementing ServletContextListener as part of the web application deploymen

考题 多选题A developer chooses to avoid using SingleThreadModel but wants to ensure that data is updated in athread-safe manner. Which two can support this design goal?()AStore the data in a local variable.BStore the data in an instance variable.CStore the data in the HttpSession object.DStore the data in the ServletContext object.EStore the data in the ServletRequest object.

考题 单选题可插入多行注释的 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--