题目内容 (请给出正确答案)
[判断题]

以下语句是正确的。 Label prompt= Label("请输入数据:"); 。()

查看答案
如搜索结果不匹配,请 联系老师 获取答案
您可能会需要:
您的账号:,可能会需要:
您的账号:
发送账号密码至手机
发送
更多“以下语句是正确的。 Label prompt= Label(…”相关的问题

第1题

在窗体Form1的Click事件过程中有以下语句:Label1.Caption="Visual Basic"若本语句执行之前,标签控件的Caption属性为默认值,则标签控件的Name属性和Caption属性在执行本语句之前的值分别为()。

A.Label和Label

B.Label1和Label1

C.Label1和Visual Basic

D.Label和Caption

点击查看答案

第2题

在窗体form1 的Click事件过程中有以下语句:Label1. Caption = "Visual Basic"若本语句执行前,标

在窗体form1 的Click事件过程中有以下语句: Label1. Caption = "Visual Basic" 若本语句执行前,标签控件的Caption属性取默认值,则该标签控件的名称属性和Caption属性在执行本语句前的取值分别为 ______。

A.Label,Label1

B.Label,Caption

C.Label1,Label1

D.Caption,Label

点击查看答案

第3题

以下语句中,生成按钮控件的语句是()。

A.h_1=uimenu(gcf,'Label','&Blue');

B.h_1=uicontrol(gcf,'style','push', 'string','grid off','callback','grid off');

C.h_1=uicontrol(gcf,'style','text', 'horizontal','left','string',{'输入'});

D.h_1=axes('unit','normalized','position',[0,0,1,1],'visible','off');

点击查看答案

第4题

以下语句中,生成按钮控件的语句是

A.h_1=uimenu(gcf,'Label','&Blue');

B.h_1=uicontrol(gcf,'style','push', 'string','grid off','callback','grid off');

C.h_1=uicontrol(gcf,'style','text', 'horizontal','left','string',{'输入'});

D.h_1=axes('unit','normalized','position',[0,0,1,1],'visible','off');

点击查看答案

第5题

●试题六 阅读以下说明和Java代码,将解答写入答题纸的对应栏内。 【说明】 下面是一个Applet程序,

●试题六

阅读以下说明和Java代码,将解答写入答题纸的对应栏内。

【说明】

下面是一个Applet程序,其功能是输出已定义好的两个变量x和chr。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。

注意:不改动程序的结构,不得增行或删行。

import javA.awt.*;

(1) import javA.Applet;

(2) public class MyApplet implements Applet

{

int x=10;

(3) char chr="R";

Label output1;

Label output2;

(4) private void init()

{

output1=new Label("定义int类型变量"+"x,的初值为"+x);

output2=new Label("定义char类型变量"+"chr,的初值为"+chr);

add(output1);

add(output2);

}

}

<HTML>

<HEAD>

<TITLE>ex34_3</TITLE>

</HEAD>

<BODY>

(5) <applet class="MyApplet.class"

width=400 height=400 >

</applet>

</BODY>

</HTML>

点击查看答案

第6题

以下程序中,使用适当的布局管理器,在Frame框的“North”位置添加一句提示信息,在“South”位置添加一
个单行文本框,在这个文本框中输入的内容将会显示在“Center”位置。运行结果如下图所示。

以下程序中,使用适当的布局管理器,在Frame框的“North”位置添加一句提示信息,在“South

注意:请勿改动main()主方法和其他已有语句内容,仅在横线处填入适当语句。

import java.awt.*;

import java.awt.event.*;

public class Example2_6 extends Frame

{

public static void main(String [] argv)

{

Example2_6 frame. = new Example2_6("Example2_6");

frame, init ();

frame.setSize(300, 300);

frame, show ();

}

public Example2_6(String name)

{

super (name);

addWindowListener (new WindowAdapter ()

{ public void windowClosing(WindowEvent e)

{ __________;

}

} );

}

public void init()

{

setLayout (new ___________);

Label labelTitle = new Label("在文本框中输入字符串,可以在Frame. 中间显示");

Label showTextLabel = new Label();

TextField textField = new TextField("请在这里输入字符串");

textField.addActionListener (new AddStringListener(showTextLabel, textField) );

add("North", labelTitte);

add("Center", showTextLabel);

add("South", textField);

}

}

class AddStringListener implements ActionListener

{

Label label;

TextField textField;

public AddStringListener(Label label, TextField textField)

{

this. label = label;

this.textField = textField;

}

public void actionPerformed(ActionEvent e)

{

label, setText (textField. getText ());

}

}

点击查看答案

第7题

在Android 中需要找一个id为label的TextView组件,下列哪个语句是正确的

A.TextView tv=this.findViewById(R.id.label);

B.TextView tv=(TextView)findViewById(R.id.label);

C.TextView tv=(TextView)findViewById(R.layout. label);

D.TextView tv=(TextView)findViewById(R.string.label);

点击查看答案

第8题

下列选项中,正确的C51循环语句为

A.goto label;

B.while() 语句;

C.do {语句; }while()

D.for(; ; ) 语句;

点击查看答案

第9题

在Android 中需要找一个id为label的TextView组件,下列哪个语句是正确的()

A.TextView tv=this.findViewById(R.id.label);

B.TextView tv=(TextView)findViewById(R.id.label);

C.TextView tv=(TextView)findViewById(R.layout. label);

D.TextView tv=(TextView)findViewById(R.string.label);

点击查看答案

第10题

阅读以下说明和Java代码,将解答写入对应栏内。【说明】 请完成下列Java程序。程序的执行结果是生成一

阅读以下说明和Java代码,将解答写入对应栏内。

【说明】

请完成下列Java程序。程序的执行结果是生成一个具有一个TextField类型的对象in、 Button类型的对象btn和Label类型的对象out图形用户界面,程序的功能是计算用户输入数的平方,如图3所示。

阅读以下说明和Java代码,将解答写入对应栏内。【说明】 请完成下列Java程序。程序的执行结果是生

注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。

【程序】

import java. awt.*;

import java, awt. event.*;

public class square {

public static void main(String args[ ]){

(1)

}

}

class AppFrame. extends Frame{

TheAdapterTest listener = new TheAdapterTest();

Text Field in = new TextField (5);

Button btn = new Button("计算");

Label ut = new Label("用于显示计算结果");

public AppFrame()

{

setLayout(new FlowLayout());

add(in);

add(btn)

add(out);

btn. addActionListener(new BtnActionAdapter());

addWindowListener (listener);

setSize(400,100);

show();

}

class BtnActionAdapter implements (2) {

public void actionPerformed((3)) {

String s = in. getText();

double d =(4)

double sq = d * d;

out. setText(d+"的平方是:" +sq);

}

}

class TheAdapterTest extends WindowAdapter

{

public void windowCIosing((5))

{

System. exit(1)

}

}

}

点击查看答案
发送账号至手机
密码将被重置
获取验证码
发送
温馨提示
该问题答案仅针对搜题卡用户开放,请点击购买搜题卡。
马上购买搜题卡
我已购买搜题卡, 登录账号 继续查看答案
重置密码
确认修改
温馨提示
每个试题只能免费做一次,如需多次做题,请购买搜题卡
立即购买
稍后再说
警告:系统检测到您的账号存在安全风险

为了保护您的账号安全,请在“赏学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!

微信搜一搜
赏学吧
点击打开微信
警告:系统检测到您的账号存在安全风险
抱歉,您的账号因涉嫌违反赏学吧购买须知被冻结。您可在“赏学吧”微信公众号中的“官网服务”-“账号解封申请”申请解封,或联系客服
微信搜一搜
赏学吧
点击打开微信