桃花开花时期,如果遇上连阴雨,结果率会下降,其主要原因是[ ]
A.传粉受精不充分
B.光合作用不充分
C.呼吸作用不充分
D.肥料吸收不充分
答案:A
某振荡电路自感线圈的自感系数是4毫亨,电容器电容为2.5皮法。求该振荡电路的振荡周期以及发出的电磁波在空中的波长(π=3.14)。
简单应用题请完成下列Java程序:创建一个具有2行3列的GridLayout管理器,包括Choice,Label,Button构件,布局为第1行包括一个Choice构件(包括2个选项item1和item2),一个Label构件(当选择Choice构件中的选项时,Label构件显示相应的名称,即,如果点击item1则Label中显示item1),和一个exit按钮(点击则退出应用程序),第2行包括3个Button构件。程序运行结果如下:
注意:请勿改动main( )主方法和其他已有语句内容,仅在下划线处填入适当的语句。import java.awt.*;import java.awt.event.*;public class ex1_2 extends Frame implements ActionListener, ItemListener{ private Label l; private String str="label"; private Choice choice1_2; public static void main(String[] arg) { new ex1_2(); } ex1_2() { setLayout( ); choice1_2 = new Choice(); choice1_2.addItem("item1"); choice1_2.addItem("item2");choice1_2. ; add(choice1_2); l=new Label(str); add(l); Button exit1_2 = new Button("exit"); exit1_2.addActionListener(this); add(exit1_2); for(int i=0; i<3; i++) add(new Button("button" + i)); setSize(300,300); pack(); show(); }public void actionPerformed(ActionEvent event) { if(event.getActionCommand().equals("exit")) { System.exit(0); } } public void itemStateChanged(ItemEvent event){ str=choice1_2. getSelectedItem(); l.setText(str); }}