题目详情
当前位置:首页 > 职业培训考试
题目详情:
发布时间:2023-12-18 04:02:14

[填空题]下列代码的功能是把按钮save添加到窗口myFrame的中间,在空白处应填入的代码是______。
import Javax.swing.*;
public calss MyFrame
public static void main(String args[])
JFrame myFrame=new JFrame( );
JButton save=new JButton("Save");
myFrame.getContentPane( )add(save,"______");
myFrame.setSize(200,200);
myFrame.setVisible(true);


更多"下列代码的功能是把按钮save添加到窗口myFrame的中间,在空白处"的相关试题:

[填空题]

下列代码的功能是把按钮save添加到窗口myFrame的中间,在空白处应填入的代码是()。
public class MyFrame
public static void main(String[] args)
JFrame myFrame=new JFrame( );
JButton save=new JButton( );
myFrame.getContentPane( ).add(save,"______");
myFrame.setSize(200, 200);
myFrame.setVisible(true);
 


[填空题]下列代码的功能是把按钮save添加到窗口myFrame的中间,在空白处应填入的代码是________。 public class MyFrame { public static void main(String[] args) { JFrame myFrame = new JFrame( ); JButton save = new JButton( ); myFrame.getContentPane( ).add(save,"________"); myFrame.setSize(200, 200); myFrame.setVisible(true); } }
[填空题]下列代码的功能是把按钮save添加到窗口myFrame的中间,在空白处填入的代码是______。
import javax.swing.*;
public class MyFrame
public static void rain(String args口)
JFrame myFrame=new JFrame( );
JButton save-new JButton("Save");
myFrame.getContentPane( ).add(save,"______");
myFrame.setSize(200,200);
myFrame.setVisible(troe);


[单项选择]

下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是()
  public class FindKeyWords{
  public static void main(sring[] args){
  sting text=
  “ An array is a data structur that stores a collection of”
  + “values of the same type . You access each individual value”
  + “through an integer index . For example,if a is an array”
  + “of inergers, then a[i] is the ith integer in the array.”;
  Int arrayCount =0;
  Int idex = -1;
  Sting arrarStr =”array”;
  Index = text.indexof(arrayStr);
  While(index 0) {
  ++arrayCount;
  Index += arrayStr.length( );
  Index = text.indexof(arrayStr,index);
  }
  System.out.println
  (“the text contains” + arrayCount + “arrays”);
  }
  }


A. <
B. =
C. <=
D. >=
[单项选择]下列程序的功能是统计字符串中“array”的个数,在程序的空白处应填入的正确选项是( )。
public class FindKeyWords
public static void main(sring[]args)
sting text=
"An array is a data structur that stores a collection of"
+"values of the same type. You access each individual value"
+"through an integer index. For example,if a is an array"
+"of inergers,then a[i]is the ith integer in the array.";
Int arrayCount=0;
Int idex=-1;
Sting arrarStr="array";
Index=text.indexof(arravStr);
While(index______0)
++arrayCount;
Index+=arrayStr.length( );
Index=text.indexof(arrayStr,index);

System.out.println
("the text contains"+arrayCount+"arrays");


A. <
B. =
C. <=
D. >=
[单项选择]已知形成链表的存储结构如下图所示,则下述类型描述中的空白处应填______。
struct link
char data;
______;
node;
data
next

A. Struct link next
B. link*next
C. struct next link
D. Struct link*next
[单项选择]已知形成链表的存储结构如下图所示,则下述类型描述中的空白处应填______。
struct link
char data;
______,
node;
data
next

A) struct link next B) link *next
C) stuct next link D) struct link *next
[填空题]在窗体上画两个文本框和一个命令按钮,然后在命令按钮的代码窗口中编写如下事件过程:
Private Sub Commandl_Click( )
Text1="VB programming"
Text2=Text1
Text1="ABCD"
End Sub
程序运行后,单击命令按钮,文本框Text2中显示的内容为 【12】
[填空题]在窗体上画两个文本框和一个命令按钮,然后在命令按钮的代码窗口中编写如下事件过程:
Private Sub Command1_ Click( )
Text1="VB programming"
Text2=Text1
Text1="ABCD"
End Sub
程序运行后,单击命令按钮,文本框Text2中显示的内容为______。
[多项选择]窗口的控制按钮和改变窗口尺寸按钮包括( )。
A. 控制按钮
B. 关闭按钮
C. 最小化按钮
D. 最大化(还原)按钮
[填空题]在窗体上画两个文本框和一个命令按钮,然后在代码窗口中编写如下事件过程: Private Sub Command1_Click( ) Text1. Text="VB Programming" Text2. Text=Text1. Text Text1. Text="ABCD" End Sub 程序运行后,单击命令按钮,两个文本框中显示的内容分别为 【7】 【8】

我来回答:

购买搜题卡查看答案
[会员特权] 开通VIP, 查看 全部题目答案
[会员特权] 享免全部广告特权
推荐91天
¥36.8
¥80元
31天
¥20.8
¥40元
365天
¥88.8
¥188元
请选择支付方式
  • 微信支付
  • 支付宝支付
点击支付即表示同意并接受了《购买须知》
立即支付 系统将自动为您注册账号
请使用微信扫码支付

订单号:

请不要关闭本页面,支付完成后请点击【支付完成】按钮
恭喜您,购买搜题卡成功
重要提示:请拍照或截图保存账号密码!
我要搜题网官网:https://www.woyaosouti.com
我已记住账号密码