(答案资料)电子科技大学17秋《面向对象程序设计》在线作业1
??.鍚?r)瑰(tm)ㄦ?鍔?版??剁??规硶鏄?A.add()作业
B.insert()
C.hill()
D.set()
姝g?r)绛"妗堬1/4欰?″垎?/4?鍒?
2.瀵逛簬catch瀛愬彞鐨"鎺鍒?/4屼笅鍒鏄??纭(r)鐨"銆?
A.鐖剁?鍦ㄥ...堬1/4屽瓙绫"鍦ㄥ悗
B.瀛愮?鍦ㄥ...堬1/4岀埗绫"鍦ㄥ悗
C.鏈夌"ф壙?..崇?鐨"?/4傚父涓嶈?/2鍦ㄥ悓涓?釜try?"鏋"绋嬪簭?r)靛?..
D.鎺鍒椤哄簭鍙?""??
姝g?r)绛"妗堬1/4欱?″垎?/4?鍒?
3.宸茬煡濡備笅?g侊1/4?
publicclassTest{
staticlonga[]=newlong
publicstaticvoidmain(Stringarg[]){
System.out.println(a)
}
}
鍒(tm)涓嬮潰涓??鍙ユ槸姝g?r)鐨"銆?
A.Outputisnull.
B.Whencompilesomeerrorwilloccur.
C.Outputis0.
D.Whenrunningsomeerrorwilloccur.
姝g?r)绛"妗堬1/4欳?″垎?/4?鍒?
4.Java璇?█鐨"?r)稿?鐗圭偣涓?1/4屼笅鍒鐗圭偣鏄疌++璇?█鎵?笉?..峰?鐨"銆?
A.?樻??/2
B.璺ㄥ钩鍙?
C.闈㈠?瀵硅薄
D.鏈夌?搴"
姝g?r)绛"妗堬1/4欱?″垎?/4?鍒?
5.?/2"?规硶閬囧埌?/4傚父鍙堜笉鐭ュ??/2曞?鐞嗘讹1/4屽?璇?
A.鎹曡??/4傚父
B.鎶涘嚭?/4傚父
C.?╰hrows澹版槑?/4傚父
D.宓屽??/4傚父
姝g?r)绛"妗堬1/4欳?″垎?/4?鍒?
6.publicclassXextendsFrame{
publicstaticvoidmain(String[]args){
Xx=newX()x.pack()x.setVisible(true)
}
publicX(){
setLayout(newGridLayout(22))
Panelp1=newPanel()add(p1)
Buttonb1
A.allchangeheightandwidth
B.ButtonOnechangeheight
C.ButtonTwochangeheightandButtonThreechangewidth
D.ButtonFourchangeheightandwidth
姝g?r)绛"妗堬1/4欴?″垎?/4?鍒?
7.涓嬮潰璇?彞鏄?垱?烘暟?"鐨"姝g?r)璇?彞銆?
A.floatf=newfloat
B.float[]f[]=newfloat
C.floatf[]=newfloat[]
D.float[]f=newfloat
更多学习资料请登录www.openhelp100.com
页:
[1]