皮皮学,免费搜题
登录
搜题
【简答题】
下列程序的功能是:输入一个姓名,程序运行后,输出“姓名Welcome you!”。例如,输出“Welcome you!”。请在下面横线处填入正确的方法名,使程序可以正确运行。 import java,awt,*; import java.awt.event.*; public class welcomenYou{ public static void main(String args[]) { new FrameInOut(); } } class FrameInOut extends Frame implements ActionListener { Label prompt; TextField input,output; Button btnn; void FramInOut() { prompt=new Label("Please input your name"); input:new TextField(10); output=new TextField(25); btnn:new Button("Class"); ______(new FlowLayout()); add(prompt); add(input); add(output); add(btnn); input.addActionListener(this); btnn.addActionListener(this); setSize(300.200); show(); } public void actionperformed(ActionEvent e) if(e.getSource()  = = input) output.setText(input.getText()+"Welcome you!"); else { dispose(); system.exit(0); } } }
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】回答(48)题 查看材料
A.
It's easier to have a robot companion instead of a human friend.
B.
But a sophisticated robot will probably be even more attractive.
C.
And if you want to go ahead and tie the knot with your special electronic friend, Levy said that such marriages will be socially acceptable by around 2050.
D.
However, few owners will program their robots to point out their flaws.
E.
Maybe your generation could resist, but eventually there will be a generation of people who grow up with humanoid robots as a normal part of life.
F.
The robot knew each child because it was programmed with face and voice recognition.
【单选题】若t为int类型,进人下面的循环之前,t的值为0 , while( t=l ) { ......}
A.
循环控制表达式的值为0
B.
循环控制表达式的值为1
C.
循环控制表达式不合法
D.
以上说法都不对
【单选题】下面关于凯氏定氮法描述不正确的是:
A.
不必用到蛋白质系数
B.
样品中的有机氮转化为氨与硫酸结合成硫酸铵
C.
碱蒸馏,使氨蒸出
D.
硼酸作为吸收剂
【单选题】王先生出租了一套房屋,每年租金收入2万元,年初收取。如果从第1年年初开始出租,共出租10年,利率为8%。那么在第10年年末的终值是()万元。
A.
37.21
B.
28.45
C.
31.29
D.
33.38
【单选题】水泥遇万分之一的糖类会失去凝固作用,食糖混入水泥不能食用,故水泥与食糖的配舱要求是()
A.
不相邻
B.
不同室
C.
不同舱
D.
不邻舱
【单选题】t为int类型,进人下面的循环之前,t的值为0,则以下叙述中正确的是 while( t=1 ) { ...... }
A.
循环控制表达式的值为0
B.
循环控制表达式的值为1
C.
循环控制表达式不合法
D.
以上说法都不对
【单选题】t为int类型,进人下面的循环之前,t的值为0while( t=1 ){ ……}则以下叙述中正确的是( ).
A.
循环控制表达式的值为0
B.
循环控制表达式的值为1
C.
循环控制表达式不合法
D.
以上说法都不对
【单选题】t为int类型,进人下面的循环之前,t的值为0while(t=l){……}则以下叙述中正确的是()
A.
循环控制表达式的值为0
B.
循环控制表达式的值为1
C.
循环控制表达式不合法
D.
以上说法都不对
【判断题】幼儿园环境创设必须考虑到环境的安全性和教育性
A.
正确
B.
错误
【单选题】With ____ science and technology developing rapidly, it's likely that the robot will take _____ place of human beings in many ways. [      ]
A.
不填;不填
B.
the;a
C.
不填;the
D.
the;the
相关题目: