logo - 刷刷题
下载APP
【简答题】

下列程序实现的功能是当按下键盘时,在Applet中通过paint()方法,在(50,50)位置处显示出按下的键的名称。在横线处填写正确的语句。
import java.awt.*;
import java.awt..*;
import java.applet.*;
public class Test7 extends Applet
String str="";
public void init()
addKeyListener (new KeyAdapter()

public void keyPressed(Key ke)

【16】 ;
repaint();

);
requestFocus();
public void paint(Graphics g)
g.drawString("你按下的键是:" +str, 50,50);

题目标签:方法显示功能
举报
参考答案:
参考解析:
.
刷刷题刷刷变学霸
举一反三

【单选题】以下方法中,更适用于处理序列数据的有( )。

A.
卷积神经网络
B.
全连接神经网络
C.
BP神经网络
D.
循环神经网络

【单选题】设问型创新方法中最为典型的方法是

A.
和田十二法
B.
5W2H法
C.
系统提问法
D.
奥斯本检核表法

【单选题】有如下事件过程:Private Sub Form_Load() Show Dim Arr() As Variant Arr = Array(1, 3, 5, 7, 9, 11, 13, 15) Call converse(Arr) For i = 0 To 7 Print arr(i); Next iEnd Sub 以上程序的功能是,通过调用Converse过程,将数组Arr中的元素逆序存放并输出...

A.
Private Sub converse(dim a() as Variant ) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
B.
Private Sub converse(dim a() as Variant) Dim T Dim J As Integer J = (LBound(A) + UBound(A)) / 2 For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
C.
Private Sub converse(a() As Variant) Dim T For i = LBound(A) To UBound(A) T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub
D.
Private Sub converse(a() As Variant) Dim T Dim J As Integer J = Int((LBound(A) + UBound(A)) / 2) For i = LBound(A) To J T = a(i) a(i) = a(UBound(A) - i) a(UBound(A) - i) = T Next i End Sub

【单选题】当洪水即将来临时,应对洪水灾害的正确方法是

A.
到屋顶、大树或附近小山丘上暂避
B.
及时报告,统一组织抢险救灾
C.
有序的进行人员和财产转移
D.
有序的将人员和财产向高出转移

【单选题】以下不属于计算利润分享额的具体方法的是( )。

A.
固定比例法
B.
比例递减法
C.
利润界限法
D.
风险收益法

【单选题】Rock Industries has four divisions.In the quest to develop a more achievable budget for the coming year, the chief executive officer has elected to develop the company’s budget by using a decentralize...

A.
be negligible.没有什么可值得一提的。
B.
require development of a production budget that is forwarded to the Budget Department.编制生产 预算递交预算部门
C.
require development of a production budget after receiving the division’s projected sales forecast. 在收到本分部的销售预测后,编制生产预算
D.
require development of a production budget based on the prior year’s manufacturing activity.根据 上一年度的制造活动编制生产预算

【多选题】监控平台有哪些功能?

A.
管理设备
B.
用户权限管理
C.
数据流管理
D.
录像存储管理
E.
与其它系统联动