题目内容

We must have good eating habits because()

A. we want to eat more
B. we want to enjoy our meals
C. we want to be healthy and strong
D. we want to grow up quickly

查看答案
更多问题

下面是一个Applet程序,其功能是建立一个图形用户界面的窗口,包括一个文本显示区和一个按钮,单击按钮,可以在文本区已有的文本基础上追加显示10条“欢迎您,参加Java考试!”信息,并且文本区由滚动条控制文本的上下滚动。请改正程序中的错误(有下划线的语句),使程序能输出正确的结果。 注意:不改动程序的结构,不得增行或删行。 源程序文件代码清单如下; import javax.swing.*; import java.awt.*; import java.awt.event.*; <applet code="ex13_3.class" width=800 height=400> </applet> public class ex13_3 extends JApplet JButton jb = new JButton("Add Text"); JTextPane jtp = new JTextPane(); public void init() jb.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) for(int i=1; i<10; i++) jtp.getText(jtp.setText()+ "欢迎您,参加Java考试!"); ); Container cp = getContentPane(); cp.add(new JScrollPane(jtp)); cp.add(BorderLayout. SOUTH, jtp); public static void main(String args[]) ex13_3 obj13_3=new ex13_3(); String str = obj13_3.getClass().toString(); if(str.indexOf("class") !=-1) str=str.substring(6); JFrame frm = new JFrame(str); frm.addWindowListener(new WindowAdapter() public void windowClosing(WindowEvent we) System.exit(0); ); frm.getContentPane ().addiex13 3); frm.setSize(300, 400); frm.setVisible(true); ex13_3.html <HTML> <HEAD> <TITLE>ex13_3</TITLE> </HEAD> <BODY> <applet code="ex13_3.class" width=800 height=400> </applet> </BODY> </HTML>

某学校附近拟建一座化工厂。请你以该校学生的名义,写一篇短文,陈述反对建此化工厂的理由。短文中要包括以下几点: 1.不仅你本人,大部分同学都反对建这个化工厂。 2.尽管该厂可以为本市赚不少钱,但危害大于好处。 3.严重污染饮用水,防范措施不充分。 4.造成严重空气污染。 5.侵占学生们游戏、玩耍的场所。 注意:词数应为100左右。

A PartnershipsOn the whole, this is not a popular form of business organization, but it is often used by people in the professions, like doctors, dentists or lawyers, to expand their business.Greater efficiency is possible because people in this sort of association can spend their time doing what they are best at. If one person is sick, then the remaining partner(s) can carry on the work. The main disadvantage is that even with this form of ownership, the amount of money available to the business may be limited. If people quarrel or disagree over decision-making there can be problems and serious delays.B Public (PIC) CompaniesThese are the largest businesses in the private sector. There is no limit to the number of people holding shares in it and many of the larger companies have their shares listed on the stock exchange. The advantage of big businesses like this is that they find it easier to raise money as banks consider them a "good risk". There are strict laws governing the setting-up of this kind of business and each year the company has to publish its accounts. The larger such businesses grow, the more difficult it is to control them. Workers in such businesses may feel that management doesn’t understand their problems.C Private (Ltd) companiesSuch businesses are not allowed to sell shares to the public. They must consist of at least two members, but there is no upper limit to the numbers who own the company. The larger size makes it possible for such companies to borrow more money from the banks or from issuing additional shares to its members. The advantage is that such a business is able to offer its members limited liability (responsibility) for debts and losses. Many companies of this type exist in England, Europe and the U.S. In this form, people can spend their time in doing what they are best at.

请完成下列Java程序。实例listener是监听器,frm是事件源,fr上发生的事件委托tat进行处理。程序的执行结果是显示一个蓝色的窗口,单击关闭按钮,可关闭窗口。 注意:请勿改动main()主方法和其他已有的语句内容,仅在下划线处填入适当的语句。 源程序文件代码清单如下: import java.awt.*; import java.awt.event.*; public class BlueWindow public static void main(String args[]) Frame frm=new Frame ("欢迎参加Java考试!"); TheAdapterTest listener=new TheAdapterTest(); frm. ______; frm.setSize(200,200); frm.setBackground(Color.blue); frm. ______; class TheAdapterTest extends WindowAdapter public void windowClosing(WindowEvent e) System.exit(1);

答案查题题库