Given the following expression about TextField which use a proportional pitch font. TextField t = new TextField("they are good",40); Which statement is true?()
第1题:
创建一个标识有“关闭”按钮的语句是( )。
A.TextField b=new TextField("关闭");
B.Button b=new Burron("关闭");
C.Checkbox b=new Checkbox("关闭");
D.Label b=new Label("关闭");
第2题:
下面Applet在窗口中实现一个不可编辑的TextField,并且显示“ok”。在横线处填入正确的语句。
import java.applet.Applet;
import java.awt.t;
public class Test extends Applet {
TextField tf;
public void init () {
setLayout (new GridLayout(1,0);
tf=new TextField("ok");
【 】
add(tf);
}
}
第3题:
在程序中,使用适当的布局管理器,在Frame框的North位置添加一句提示信息,在South位置添加一个单行文本框,在这个文本框中输入的内容将会显示在Center位置。运行结果如下图所示。
注意:请勿修改main()主方法和其他已有语句内容,仅在横线处填入适当语句。
import java.awt.*;
import java.awt.event.*;
public class simple extends Frame
{
public static void main(String[] args)
{
simple frame=new simple("simple");
frame.init();
frame.setSize(300,300);
frame.show();
}
public simple(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", labelTitle);
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());
}
}
第4题:
给出下列关于使用适当的字符间距的字体的TextField的表达式,则哪个选项的叙述是正确的? ( ) TextField t=new TextField("they are good",40);
A.被显示的字符串可以使用多种字体
B.一行中最大的字符数是40
C.显示的宽度正好是40个字符宽
D.用户可以编辑字符
第5题:
Which of the following are true about SSIDs configured in the ADU?()
第6题:
AWT中创建一个标识有“确定”按钮的语句是()
第7题:
创建一个标识有“关闭”按钮的语句是()。
第8题:
Which of the following statements are true when creating NETBIOS names? ()
第9题:
Which three statements about subqueries are true?()
第10题:
被显示的字符串可以使用多种字体//只有一种字体
一行中最大的字符数是40//使显示的最大字符数
显示的宽度正好是40个字符宽//有可能不足 只是设置的最佳大小
用户可以编辑字符
第11题:
The displayed string can use multiple fonts.
The maximum number of characters in a line will be 40.
The displayed width is exactly 40 characters.
The user can edit the characters.
第12题:
The code will not compile.
A Window will appear containing only a Button.
An IllegalArgumentException is thrown at line 6.
A Window button will appear but will not contain the Label, TextField, or Button.
A Window will appear containing a Label at the top, a TextField below the Label, and a Button below the TextField.
A Window will appear containing a Label on the left, a TextField to the right of the Label, and a button to the right of the TextField.
第13题:
下列选项中可以创建一个标识有“关闭”的按钮语句的是( )。
A.TextField b = new TextField("关闭");
B.TextArea b=new TextArea("关闭");
C.Button b = new Button("关闭");
D.Checkbox b = new Checkbox("关闭");
第14题:
下列______是创建一个标识有“关闭”按钮的语句。 ( )
A.TextField b=new TextField("关闭");
B.TexArea b=new TexArea("关闭");
C.Button b=new Button("关闭");
D.Checkbox b=new Checkbox("关闭");
第15题:
以下程序中,使用适当的布局管理器,在Frame框的“North”位置添加一句提示信息,在“South”位置添加一个单行文本框,在这个文本框中输入的内容将会显示在“Center”位置。运行结果如下图所示。
注意:请勿改动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 ());
}
}
第16题:
You define the following regular expression of currency values:regex tx = new regex("^-?\d+(\.\d{2})?$")You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use.What should you do?()
A.The tx.Matches(Bill)
B.The tx.Equals(Bill)
C.The tx.Match(Bill)
D.The tx.IsMatch(Bill)
第17题:
Which statement is true about Kompella-based and Martina-based VPNs?()
第18题:
给出以下关于一个使用适当的字符间距的字体的TextField的表达式TextField t = new TextField("they are good",40);以下说法中()是正确的
第19题:
下列哪个选项是创建一个标识有"打开"按钮的语句()。
第20题:
import java.awt.*; public class Test extends Frame { public Test() { add(new Label(“Hello”) ); add(new TextField(“Hello”) ); add(new Button(“Hello”) ); pack(); show(); } public static void main(String args) { new Test (); } } What is the result? ()
第21题:
You define the following regular expression of currency values: regex tx = new regex("^-?/d+(/./d{2})?$") You are required to write code that will be used to find whether a string in the variable named Bill matches the regular expression or not. You are also required to use this code as the expression in a conditional statement and need to know which code segment to use. What should you do?()
第22题:
A single row subquery can retrieve only one column and one row.
A single row subquery can retrieve only one row but many columns.
A multiple row subquery can retrieve multiple rows and multiple columns.
A multiple row subquery can be compared by using the “>” operator.
A single row subquery can use the IN operator.
A multiple row subquery can use the “=” operator.
第23题:
NETBIOS names can only use alphanumeric characters.
You can use a ’.’ in a NETBIOS name.
You can use an ’_’ (underscore) in a NETBIOS name.
NETBIOS names must be UPPERCASE
NETBIOS names can be a maximum of 32 characters