首页 > 工商管理> 管理学
题目内容 (请给出正确答案)
[单选题]

阅读下面程序classex32{publicstaticvoidmain(String[]args){{intx=3;System.out.print(x+"");}intx=2;System.out.println(x);}}现在想先编译再运行该程序,结果是()

A.32

B.23

C.编译出错

D.运行出错

查看答案
答案
收藏
如果结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能还需要:
您的账号:
发送账号密码至手机
发送
安装优题宝APP,拍照搜题省时又省心!
更多“阅读下面程序classex32{publicstaticvo…”相关的问题
第1题
阅读下面程序Pointp;p.x=1;p.y=2;p.x的值是()

A.0

B.1

C.2

D.编译出错

点击查看答案
第2题
阅读下面程序:List_demo =[1,2,1,3]Nums = set(list_demo)For i in numsPrint(i,end=””)执行的结果为()

A. 1213

B.213

C.321

D.123

点击查看答案
第3题
阅读下面程序classex3124{publicstaticvoidmain(String[]args){booleanb=true;if(b){inti=1;}else{inti=2;}System.out.println(i);}}现在想先编译再运行该程序,结果是()

A.1

B.2.

C.编译出错

D.运行出错

点击查看答案
第4题
阅读下面程序,当单击按钮Command之后。窗体上输出的是()PrivateSubCommand1_Click()DimiAsIntegerDimsAsIntegerx=0Fori=1To10s=s+iNextiPrints,iEndSub

A.5511

B.s=55,i=11

C.555

D.s=11i=5

点击查看答案
第5题
阅读下面数据搬移程序段,改正使用不当的语句。 A DB 35,47,2AH,'XYZ' B DB N DUP(0) N EQU

阅读下面数据搬移程序段,改正使用不当的语句。

A DB 35,47,2AH,'XYZ'

B DB N DUP(0)

N EQU $-A

MOV SI,A

MOV D1,B

MOV CX,LENGTH A

LP:MOV AX,[SI]

MOV [DI],AX

INC SI

INC DI

DEC CX

LOOP LP

点击查看答案
第6题
“阅读下面程序 class ex3124 { public static void main(String [] args) { boolean b=true; if(b){ int i=1;} else { int i=2;}System.out.println(i);}} 现在想先编译再运行该程序,结果是()

A.运行出错

B.编译出错

C.2

D.1

点击查看答案
第7题
阅读下面程序importjava.awt.*;publicclassExGui{privateFramef;privateButtonb1;privateButtonb2;publicstaticvoidmain(Stringargs[]){ExGuithat=newExGui();that.go();}publicvoidgo(){f=newFrame("GUIExameple");f.setLayout(newFlow

A.Frame大小是0

B.Frame大小是满屏

C.Frame可见

D.Frame不可见

点击查看答案
第8题
阅读下面程序段FrameWithPanelfr=newFrameWithPanel("FrameWithPanel");Panelpan=newPanel();fr.setSize(300,200);fr.setBackground(Color.blue);fr.setLayout(null);pan.setSize(100,100);pan.setBackground(Color.yellow);fr.add(pan);fr.setVisible(true);……窗口内坐

A.Color.blue

B.Color.yellow

C.Color.black

D.因操作系统不同而不同

点击查看答案
第9题
阅读下面代码: import java.awt.*; public class Exam11_1 { private Frame.
f; private Button bl,b2,b3,b4; public static void main(String args[] { Exam11_1 that = new Exam11_1 (); that.go(); } public void go () { ______; f.setLayout(new FlowLayout());; bl = new Button ("Button 1"); b2 = new Button ("Button 2"); b3 = new Button ("Button 3"); b4 = new Button ("Button 4"); f.add(b1); f.add(b2); f.add(b3); f.add(b4); f.pack(); f.setVisible(true); } } 请在程序中画线处填写正确的语句【 】,以便编译运行程序后得到正确的结果。

点击查看答案
第10题
The aging of American Society has resulted in ______.A.people's greater concern about publ

The aging of American Society has resulted in ______.

A.people's greater concern about public health care

B.old people's increasing interests in high-tech goods

C.more crimes being committed by senior citizens

D.communities' growing overlook of education

点击查看答案
第11题
下面() 电子图书阅读工具不是国产研发的。

A.Apabi Reader

B.Adobe Reader

C.超星阅览器(SSRrader)

D.CAJViewer阅读器

点击查看答案
退出 登录/注册
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改