未分类题

Whichstatementofassigningalongtypevariabletoahexadecimalvalueiscorrect?()

A.longnumber=345L;
B.longnumber=0345;
C.longnumber=0345L;
D.longnumber=0x345L;

【参考答案】

D
十六进制数以0x开头,long型数以L(大小写均可,一般使用大写,因为小写的l和数字1不易区分)。
<上一题 目录 下一题>
热门 试题

单项选择题
命题逻辑演绎的CP规则为()。
A.jiandati.com/4702fd0-chaoxing2016-306404.png'/>形式,那么将B作为前提,设法演绎出C
D、设B.jiandati.com/41a68f3-chaoxing2016-306405.png'/>是含公式A的命题公式,C.jiandati.com/ebf60d8-chaoxing2016-306406.png'/>,则可用B替换D.jiandati.com/41a68f3-chaoxing2016-306405.png'/>中的A
单项选择题
Importjav
A.applet.Applet;ImportjavA.awt*;PublicclassImageDemoextendsApplet{Imageimg;Publicvoidinit(){Img=getImage(getCodeBase(),”11.gif”);//1}Publicvoidpaint(Graphicsg){Intw=img.getHeight(this);Inth=img.getHeight(this);g.drawImage(img,120,60,w/2,h/2,this);//2g.drawImage(img,150,0,w*2,h*2,this);//3}}以上代码第()行将图像放大。
A.1
B.2
C.3
D.代码并没有将图像放大
相关试题
  • YouneedtoinstallWindows2000Professio...
  • Youhave17GBofprivatefilesondriveDonyou...
  • Youaretheadministratorofyourcompany’sne...
  • YouareconfiguringfivecomputersforWindows...
  • Youhave17GBofprivatefilesondriveDonyou...