java工程师信产部认证考试

单选题如你要用给 Applet传递一个名字为param1, 值为100的参数,应选用语句()。A <APPLET NAME=”param1” VALUE=”100”></APPLET> B <PARAM  NAME=”param1” VALUE=”100”></PARAM> C <PARAM  NAME=”param1” VALUE=”100”> D <PARAM  NAME=”param1” VALUE=100>

题目
单选题
如你要用给 Applet传递一个名字为param1, 值为100的参数,应选用语句()。
A

<APPLET NAME=”param1” VALUE=”100”></APPLET> 

B

<PARAM  NAME=”param1” VALUE=”100”></PARAM> 

C

<PARAM  NAME=”param1” VALUE=”100”> 

D

<PARAM  NAME=”param1” VALUE=100>

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

第1题:

要向Applet传递参数,应该在下列drawing.html文件的下划线处填入的选项是

……

<applet code=DrawImage.class width=100 height=100>

</applet>

……

A.<param image,“flower.gif”>

B.<param image value= flower .gif>

C.<param name= image value=“flower .gif”>

D.<param name=“image”value=“flower.gif”>


正确答案:C

第2题:

jsp:param标记可用于将附加request参数发送至转发的页,有name和value两个属性。()

此题为判断题(对,错)。


参考答案:正确

第3题:

<html><head></head><body><appletcode=”Out_Applet.class”width=200height=100><paramname=”display_string”value=”goodmorning”></applet></body></htmle>下列解释正确的是()

A.out_applet.java中一定有一个参数是“display_string”

B.<param>具有两个属性“name”和“value”

C.value是参数的名称

D.“goodmorning”通过<panram>标记传递给“Our_Applet.class”


参考答案:A, B, D

第4题:

要向Applet传递参数,应该在下列drawing.html文件的下画线处填人的选项是( )。

A.<param image,”flower.gif”>

B.<param image value=flower.gif>

C.<param name=image value=”flower.gif”>

D.<2param name=”image”value=”flower.gif”>


正确答案:D
paramname=””,value=””>中name属性值不可重复,value是绝对路径,必须都用引号引用起来。

第5题:

AllofyourJSPsneedtohavealinkthatpermitsuserstoemailthewebmaster.Thiswebapplicationislicensedtomanysmallbusinesses,eachofwhichhaveadifferentemailaddressforthewebmaster.Youhavedecidedtouseacontextparameterthatyouspecifyinthedeploymentdescriptor,likethis:42.<context-param>43.<param-name>webmasterEmail</param-name>44.<param-value>master@example.com</param-value>45.</context-param>WhichJSPcodesnippetcreatesthisemaillink?()

A.<ahref=’mailto:${contextParam.webmasterEmail}’>contactus</a>

B.<ahref=’mailto:${applicationScope.webmasterEmail}’>contactus</a>

C.<ahref=’mailto:${contextInitParam.webmasterEmail}’>contactus</a>

D.<ahref=’mailto:${initParam.webmasterEmail}’>contactus</a>


参考答案:D

第6题:

向 Applet 传递参数正确的描述是

A ) <param nace=age, value=20>

B ) <applet code=Try.class width=100, height=100, age=33>

C ) <name=age, value=20>

D ) <applet code=Try.class name=age,value=20>


正确答案:A

第7题:

向Applet传递参数的正确描述是( )。

A.<param name=age,value=20>

B.<applet code=Try.class width=100,height=100, age=33>

C.<name=age,value=20>

D.<applet code=Try.class name=age,value=20>


正确答案:A
A。【解析】<Applet>标记的参数部分一般格式是[<PARAMNAME=appletParameterVALUE-value>]。

第8题:

如你要用给Applet传递一个名字为param1,值为100的参数,应选用语句()。

A.<APPLETNAME=”param1”VALUE=”100”></APPLET>

B.<PARAMNAME=”param1”VALUE=”100”></PARAM>

C.<PARAMNAME=”param1”VALUE=”100”>

D.<PARAMNAME=”param1”VALUE=100>


参考答案:C

第9题:

Youhavecreatedawebapplicationthatyoulicensetorealestatebrokers.Thewebappishighly customizableincludingtheemailaddressofthebroker,whichisplacedonthefooterofeachpage.Thisisconfiguredasacontextparameterinthedeploymentdescriptor:10.<context-param>11.<param-name>footerEmail</param-name>12.<param-value>joe@estates-r-us.biz</param-value>13.</context-param>WhichELcodesnippetwillinsertthiscontextparameterintothefooter?()

A.<ahref=’mailto:${footerEmail}’>Contactme</a>

B.<ahref=’mailto:${initParam@footerEmail}’>Contactme</a>

C.<ahref=’mailto:${initParam.footerEmail}’>Contactme</a>

D.<ahref=’mailto:${contextParam@footerEmail}’>Contactme</a>

E.<ahref=’mailto:${contextParam.footerEmail}’>Contactme</a>


参考答案:C

第10题:

下面______正确示范了传递—个参数给applet。

A.<applet code=Test.class age=33 width=100 height=100>

B.<param name=age value

C.<applet Test 33>

D.<aoolet code=Test.class name=age value=33 width=100 height=100>


正确答案:B

更多相关问题