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

题目

如何在 JavaScript 中添加注释?()

  • A、 ' This is a comment 
  • B、 <!--This is a comment--> 
  • C、 //This is a comment 
参考答案和解析
正确答案:C
如果没有搜索结果或未解决您的问题,请直接 联系老师 获取答案。
相似问题和答案

第1题:

publicclassPerson{privateStringname,comment;privateintage;publicPerson(Stringn,inta,Stringc){name=n;age=a;comment=c;}publicbooleanequals(Objecto){if(!(oinstanceofPerson))returnfalse;Personp=(Person)o;returnage==p.age&&name.equals(p.name);}}WhatistheappropriatedefinitionofthehashCodemethodinclassPerson?()

A.returnsuper.hashCode();

B.returnname.hashCode()+age*7;

C.returnname.hashCode()+comment.hashCode()/2;

D.returnname.hashCode()+comment.hashCode()/2-age*3;


参考答案:B

第2题:

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

A.//this is a comment

B.//this is a comment//

C./*this is a comment*/

D.this is a comment


正确答案:C

第3题:

A comment ( ) a nice day.


参考答案:on

第4题:

XSLT要为转换后的文档添加属性,应使用下列()元素。

  • A、xsl:element
  • B、xsl:attribute
  • C、xsl:value-of
  • D、xsl:comment

正确答案:B

第5题:

程序编辑界面的EDCMD选项中,Comment的功能是显示和隐藏注释。


正确答案:正确

第6题:

Given:WhatistheappropriatedefinitionofthehashCodemethodinclassPerson?()

A.returnsuper.hashCode();

B.returnname.hashCode()+age*7;

C.returnname.hashCode()+comment.hashCode()/2;

D.returnname.hashCode()+comment.hashCode()/2-age*3;


参考答案:B

第7题:

An operator is asked to shutdown the telnet service for security reasons. What are the appropriate commands to achieve this?()

A. comment out telnetd in /etc/services refresh -s inetd

B. comment out telnetd in /etc/inetd.conf refresh -s inetd

C. comment out telnetd in /etc/rc.tcpip refresh -s telnetd

D. comment out telnetd in /etc/inetd.conf refresh -s telnetd


参考答案:B

第8题:

WhatistheappropriatedefinitionofthehashCodemethodinclassPerson?()

A.returnsuper.hashCode();

B.returnname.hashCode()+age*7;

C.returnname.hashCode()+comment.hashCode()/2;

D.returnname.hashCode()+comment.hashCode()/2-age*3;


参考答案:B

第9题:

下列对于程序文件描述正确的有:()

  • A、“Comment”显示注释
  • B、“Writeprotection”显示写保护状态
  • C、“Modificationdate”显示最后一次编辑时间
  • D、“ProgramSize”显示程序大小

正确答案:A,B,C,D

第10题:

XML中的注释(COMMENT)用来对程序进行解释说明,XML处理器不对它们进行任何处理,那么在XML中对文本进行注释的正确方法是()。

  • A、/*文本*/
  • B、//文本
  • C、%文本
  • D、<!--文本-->

正确答案:D

更多相关问题