A new shopping center on the north side will have ().A.five hundred more than shopsB.as more than five hundred shopsC.five hundred shops more thanD.more than five hundred shops

题目
A new shopping center on the north side will have ().

A.five hundred more than shops

B.as more than five hundred shops

C.five hundred shops more than

D.more than five hundred shops


相似考题
更多“A new shopping center on the north side will have (). ”相关问题
  • 第1题:

    Given:Which code, inserted at line 14, allows the Sprite class to compile?()

    A.Direction d = NORTH;

    B.Nav.Direction d = NORTH;

    C.Direction d = Direction.NORTH;

    D.Nav.Direction d = Nav.Direction.NORTH;


    参考答案:D

  • 第2题:

    下列程序在Frame中设定BorderLayout布局管理器,选择正确的语句填入程序的横线处。 import java.awt.*; public class ex43 extends Frame { public static void main(String[] args) { ex43 bj = new ex43("BorderLayout"); ______ obj.add("North", new Button("North")); obj.add("South", new Button("Sourth")); obj.add("East", new Button ("East")); obj.add("West", new Button ("West")); obj. add ("Center", new Button ( "Center" ) ); obj.pack(); obj. setVisible (true); } public ex43(String str) { super (str); } }

    A.obj.setLayout(new BorderLayout());

    B.setLayout(new Borderkayout());

    C.setLayout(BorderLayout());

    D.obj.setLayout(BorderLayout());


    正确答案:A

  • 第3题:

    以下程序中,使用适当的布局管理器,在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 ());

    }

    }


    正确答案:System.exit(0) BorderLayout()或者带参数的BorderLayout(intint)也正确
    System.exit(0) BorderLayout()或者带参数的BorderLayout(int,int)也正确 解析:本题考查知识点:AWT库的使用、布局管理器的使用。
    解题思路:程序使用“labelTitle”来显示提示信息,使用“textField”来获取用户的输入,最后将用户输入的结果通过“showTextLabel”显示出来。
    Frame的关闭按钮的处理方式与JFrame的方式不相同,Frame必须手动实现退出按钮的事件处理机制,否则单击关闭按钮程序不会做出响应。
    本题的第一个空就是对退出按钮的事件响应内容。
    BorderLayout布局管理器将容器分为五个区域:North、South、East、West和Center。可以指定构件放在那个区域,但是每个区域只能放置一个构件。第二个空即是为Frame设置BorderLayout类型的布局管理器。

  • 第4题:

    5类双绞线制作的交叉网线,下面哪一个图形描述的管脚对应关系正确()。

    A.交叉网线示例SIDE1SIDE 21234567812345678

    B.交叉网线示例SIDE1SIDE 21234567812345678

    C.交叉网线示例SIDE1SIDE 21234567812345678


    正确答案:B

  • 第5题:

    在程序中,使用适当的布局管理器,在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());

    }

    }


    正确答案:System.exit(0) BorderLayout()
    System.exit(0) BorderLayout() 解析:本题考查知识点:AWT库的使用,布局管理器的使用。解题思路:程序使用label Title来显示提示信息,使用text Field来获取用户的输入,最后将用户输入的结果通过showTextLabel显示出来。Frame的关闭按钮的处理方式与JFrame的方式不同,Frame必须手动实现退出按钮的事件处理机制,否则单击关闭按钮程序不会做出响应。本题的第1空就是对退出按钮事件响应的内容。BorderLayout布局管理器将容器分为五个区域:North、South、East、West和 Center。可以指定构件放在哪个区域,但是每个区域只能放置一个构件。第2个空即是为Frame设置BorderLayout类型的布局管理器。

  • 第6题:

    使用数组来实现抛骰子6000 次,统计每个面次数 示例输出 side1 776 side2 999 side3 1211 side4 923 side5 1101 side6 990


    D解析:G与P相邻,I也与P相邻,因此P不能与G、I同色,即P不能是红色,也不能是翡翠色,所以选D。