要向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”>

题目

要向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是绝对路径,必须都用引号引用起来。
更多“要向Applet传递参数,应该在下列drawing.html文件的下画线处填人的选项是( )。A.param image,”flower.gif”B.param image value=flower.gifC.param name=image value=”flower.gif”D.2param name=”image”value=”flower.gif””相关问题
  • 第1题:

    下面______正确示范了传递—个参数给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

  • 第2题:

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

    向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
    解析:Applet获取参数是通过HTML文件中采用PARAM>标记定义参数。Java中还定义了相应的方法,用来从HTML中获取参数。格式为:
      param name=appletParameter1 value=value>

  • 第3题:

    在窗体Form1中有一个名称为Image1的图像框,在窗体加载的时候为它装载了一幅图片,该图片比图像框要小如图20-2a所示,现在单击一下图像框,将把照片放到和图像框一样大,如图20-2b所示。再单击它将其还原,然后再单击放大,再单击还原,如此反复。下划线处应填( )。

    Private Sub Form_Load() Image1.Stretch=True __________ End Sub Private Sub Image1_click() Image1.Height=3000 _________ End Sub

    A.Image1.Picture=LoadPictrue("gg1.gif')

    B.Image1.Picture="gg1.gif' Image1.Stretch=True Image1.Stretch=Not Image1.Stretch

    C.Image1.Picture=Loadptctrue("gg1.gif")

    D.Image1.Picture="gg1.gif" Image1.Sbetch=Not Image1.Stretch Image1.Stretch=True


    正确答案:C
    解析:要给图像框装载一幅图片,可使用LoadPicture语句,第一空处应填“Image1.Pictrne=LoadPictrue("gg1.gif")”。图像框有一个属性Stretch,当它设置为True时,图片将自动缩放大小以适应图像框的大小,当它的值为False时,图片将按原来的大小显示,故在图片框上单击时,只需把它的Stretch属性取反即可,所以第二空应填"Image1.Stretch=NotImage1.Stretch"。

  • 第4题:

    请根据网页显示的效果图(如图14-4所示),将HTML文本中(n)处的解答填于相应的解答栏内。

    [说明]

    <html>

    <head>

    <!-- TemplateBeginEditable name="doctitle" -->

    <title>Untitled Document</title>

    <!-- TemplateEndEditable -->

    <meta. http-equiv="Content-Type" eontent-"text/html; charset=gb2312">

    <!-- TemplateBeginEditable name="head" -->

    <!-- TemplateEndEditable -->

    <!-- TemplateParam name="BodyBackgroundColor" type="color" value="FFFFFF" -->

    <!-- TemplateParam name="FooterColor" type="color" value="CCCCCC" -->

    <!-- TemplateParam name="ImageTitleColor" type="color" value="CCCCCC" -->

    <!-- TemplateParam name="Footer" type="boolean" value="true" -->

    <style. type="text/css">

    <!--

    body {

    background-color: FFFFFF;

    }

    -->

    </style></head>

    <body marginwidth="0" marginheight="0" leffmargin="0" topmargin="0">

    <br>

    <table width="45%" border="0" cellspaeing="2" cellpadding="4" align="center">

    <tr bgcolor="@@(ImageTitleColor )@@">

    <td height=-"20"><!-- TemplateBeginEditable name="ImageTitle" -->

    <div align="center">图片浏览(日落) </div>

    <!-- TemplateEndEditable --x/td>.

    </tr>

    <tr>

    <td width="60%" height="169" align="center"> <!-- TemplateBeginEditable name="Image" -->

    <IMG nClick=over(this) title=放大 (1) name="image" width="318" height="137" (2) (3) ><!-- TemplateEndEditable --></td>

    </tr>

    </table>

    <br>

    <hr width="55 %" noshade size="1">

    <hr>

    <!-- TemplateBeginEditable name="Navigation" -->

    <table width="63%" border="0" cellspacing="0" cellpadding="4" align="center">

    <tr>

    <td width="20%" align="right"><nobr><a href="">(4); First</a>|<a href="">(5);

    Previous</a></nobr></td>

    <td width="20%" align="center"><nobr><a href="">(6)</a>|2| <a href="">3</a>

    |<a href="">4</a> | <a href="">5</a></nobr></td>

    <td align="left" width="20%"><nobr><a href="">Next ></a>|<a href="">Last

    (7); </a></nobr></td>

    </tr>

    </table>

    <!-- TemplateEndEditable -->

    </body>

    </html>


    正确答案:(1)src="Sunset.jpg" (2)hspace="4" (3)vspace="4" (4)<< (5)< (6)1 (7)>;>
    (1)src="Sunset.jpg" (2)hspace="4" (3)vspace="4" (4)<< (5)< (6)1 (7)>;>

  • 第5题:

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

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

    A.<paramname=age,value=20>

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

    C.<name=age,value=20>

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


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

  • 第6题:

    蓝屏分析工具Windebug分析结果中IMAGE_NAME:后面的文件就是引起蓝屏的文件。


    正确答案:正确

  • 第7题:

    如你要用给 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>

    正确答案:C

  • 第8题:

    表单元素重置按钮的代码为()。

    • A、<inputtype="submit"name="..."value="...">
    • B、<inputtype="reset"name="..."value="...">
    • C、<inputtype="button"name="..."value="..."onClick="...">
    • D、<inputtype="radio"name="..."value="...">

    正确答案:D

  • 第9题:

    表单元素一般按钮的代码为()。

    • A、<inputtype="submit"name="..."value="...">
    • B、<inputtype="reset"name="..."value="...">
    • C、<inputtype="button"name="..."value="..."onClick="...">
    • D、<inputtype="radio"name="..."value="...">

    正确答案:D

  • 第10题:

    Which HttpSession method stores an object in a session?()

    • A、 put(String name. Object value)
    • B、 set(String name. Object value)
    • C、 setAttribute(String name. Object value)
    • D、 putAttribute(String name. Object value)
    • E、 addAttribute(String name. Object value)

    正确答案:C

  • 第11题:

    单选题
    struts2中,以下配置文件上传拦截器只允许上传bmp图片文件的代码,正确的是()。
    A

    〈param name=allowedTypes〉image/bmp〈/param〉

    B

    〈param name=allowedTypes〉*.bmp〈/param〉

    C

    〈param name=allowedTypes〉bmp〈/param〉

    D

    〈param name=allowedTypes〉image/*.bmp〈/param〉


    正确答案: B
    解析: 暂无解析

  • 第12题:

    单选题
    Which HttpSession method stores an object in a session?()
    A

     put(String name. Object value)

    B

     set(String name. Object value)

    C

     setAttribute(String name. Object value)

    D

     putAttribute(String name. Object value)

    E

     addAttribute(String name. Object value)


    正确答案: A
    解析: 暂无解析

  • 第13题:

    已知下列程序的输出结果是42,请将下画线处缺失的部分补充完整。 include using name

    已知下列程序的输出结果是42,请将下画线处缺失的部分补充完整。

    include <iostream>

    using namespace std;

    class Foo{

    int value;

    public:

    Foo( ):value(0){}

    void setValue(int value)

    {______=value;}//给Foo的数据成员value赋值

    void print( ){eout<<value;}

    };

    int main( ){

    Foo f;

    f.setValue(42);

    f.print();

    return 0;

    }


    正确答案:this.value
    this.value 解析:为类的数据成员赋值,将从形参传递来的实参赋值给类数据成员,为区分名字可以使用this指针

  • 第14题:

    下面哪个选项正确示例了传递一个参数给applet? ( )

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

    B.<param name=age value=33>

    C.<applet code=Test.class name-age value=33 width=100 height=100>

    D.<applet Test 33>


    正确答案:B
    解析:该题考查对APPLET>标记中的属性PARAM的理解。属性PARAM是用来传递参数给applet的,它又有两个属性name和value,前者表示参数的名字,后者表示参数的值。选项A和C显然不对,而选项D忽略了关键字param 选项B的表示是正确的。故本题答案是B。

  • 第15题:

    要向Applet传递参数,应该在下列drawing.html文件的下画线处填人的选项是( )。 … … <applet code=Drawlmage.class width=1 00 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">


    正确答案:D
    D。【解析】param<name="",value="">中name属性值不可重复,value是绝对路径,必须用引号引用起来。

  • 第16题:

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

    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”>


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

  • 第17题:

    要向Applet传递参数,应该在下列drawing.htm文件的下画线处填入的选项是( )。 …… <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">


    正确答案:D
    D。【解析】param<name="",value="">中name属性值不可重复,value是绝对路径。必须都用引号引用起来。

  • 第18题:

    struts2中,以下配置文件上传拦截器只允许上传bmp图片文件的代码,正确的是()。

    • A、〈param name="allowedTypes"〉image/bmp〈/param〉
    • B、〈param name="allowedTypes"〉*.bmp〈/param〉
    • C、〈param name="allowedTypes"〉bmp〈/param〉
    • D、〈param name="allowedTypes"〉image/*.bmp〈/param〉

    正确答案:A

  • 第19题:

                            下列解释正确的是()

    • A、out_applet.java中一定有一个参数是“display_string” 
    • B、<param>具有两个属性“name”和“value” 
    • C、value是参数的名称 
    • D、“good morning”通过<panram> 标记传递给“Our_Applet.class”

    正确答案:A,B,D

  • 第20题:

    下列文件中,不属于图形图像文件的是()

    • A、image.MP3
    • B、image.JPG
    • C、image.GIF
    • D、image.BMP

    正确答案:A

  • 第21题:

    Refer to the following output:  The current permanent system firmware image is EM340_041The current temporary system firmware image is EM340_075 The system is currently booted from the temporary firmware image. Which command will display similar information?()

    • A、lsmcode
    • B、diag -S 1
    • C、prtconf grep firmware image
    • D、invscout -vf [Server system name]

    正确答案:A

  • 第22题:

    单选题
    如你要用给 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>


    正确答案: A
    解析: 暂无解析

  • 第23题:

    单选题
    向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>


    正确答案: C
    解析:
    典型的标记语言,Applet程序嵌入在网页里边执行。例如:
    <applet code="parasdemo" width=300 height=100>
    <param name=author value="作者">
    <param name=purpose value="向applet程序传递参数">
    <param name=version value = 8>
    </applet>
    因此本题选择A。