当前位置:SCJP程序员认证考试题库

问题:

[多选]

import java.awt*;  
public class X extends Frame (  
public static void main(string args) ( 
X x = new X ();  
X.pack();  
x.setVisible(true); 
) 
public X () (  
setlayout (new GridLayout (2,2));  
Panel p1 = new panel();  
 Add(p1);  
 Button b1= new Button (“One”);  
 P1.add(b1); 
 Panel p2 = new panel();  
 Add(p2);  
Button b2= new Button (“Two”);  
 P2.add(b2);  
 Button b3= new Button (“Three”); 
 add(b3);  
Button b4= new Button (“Four”);  
add(b4);  
)  
)  
Which two statements are true? ()

A .  All the buttons change height if the frame height is resized.
B .  All the buttons change width if the Frame width is resized.
C .  The size of the button labeled “One” is constant even if the Frame is resized.
D .  Both width and height of the button labeled “Three” might change if the Frame is resized.

环境因素指 胸外心脏挤压法对成人应压下5~10mm。 巡视变配电设备时,巡视人员不得越过警戒线和遮栏。 Word按照标题级别缩进该标题,该缩进只在()中出现,切换到其他视图时,Word将取消该缩进。 普通视图。 页面视图。 Web版式视图。 大纲视图。 验电工作前应在预先确认有电的带电体上检验电器是否完好。

import java.awt*;  
public class X extends Frame (  
public static void main(string args) ( 
X x = new X ();  
X.pack();  
x.setVisible(true); 
) 
public X () (  
setlayout (new GridLayout (2,2));  
Panel p1 = new panel();  
 Add(p1);  
 Button b1= new Button (“One”);  
 P1.add(b1); 
 Panel p2 = new panel();  
 Add(p2);  
Button b2= new Button (“Two”);  
 P2.add(b2);  
 Button b3= new Button (“Three”); 
 add(b3);  
Button b4= new Button (“Four”);  
add(b4);  
)  
)  
Which two statements are true? ()

参考答案:

  参考解析

本题暂无解析

在线 客服