题目内容

What columns doesn’t The Worm of English have

A. The literary world, the art circles, social science-economics.
B. History and geography, science and technology.
C. Species and animal knowledgeable sketches.
D. Selected readings in newspapers and periodicals, culture and education, words and sentences, translation exercises, etc.

查看答案
更多问题

The truth is, when we say of a gentleman that he lives elegantly on nothing a year, we use the word "nothing" to signify something unknown; meaning simply, that we don’t know how the gentleman in question defrays the expenses of his establishment. Now, our friend the colonel had a great aptitude for all games of chance; and exercising himself, as he continually did. with the cards, the dice-box, or the cue, it is natural to suppose that he attained a much greater skill in the use of these articles than men can possess who only occasionally handle them. To use a cue at billiards well is like using a pencil, or a German flute, or a small-sword-you can not master any one of these implements at first, and it is only by repeated study and perseverance, joined to a natural taste, that a man can excel in the handling of either. Now, Crawley, from being only a brilliant amatcaur had grown to a consummate master of billiards. Like a great general, his genius used to rise with the danger, and when the luck had been unfavourable to him for a whole game, and the bets were consequently against him, he would, with consummate skill and boldness, make some prodigious hits which would restore the battle, and come a victor at the end, to the astonishment of everybody-of everybody, that is, who was a stranger to his play. Those who were accustomed to see it were cautious how they staked their money against a man of such sadder, resources, and brilliant and overpowering skill. All the following words can be used to describe Mrs. Crawley EXCEPT [A] charming. [B] sympathetic. [C] social. [D] hypocritical.

At games of cards he was equally skillful; for though he would constantly lose money at the commencement of an evening, playing so carelessly and making such blunders, that newcomers were often inclined to think meanly of his talent; yet when roused to action, and awakened to caution by repeated small losses, it was remarked that Crawley’s play became quite different, and that he was pretty sure of beating his enemy thoroughly before the night was over. Indeed, very few men could say that they ever had the better of him.
B. His successes were so repeated that no wonder the envious and the vanquished spoken sometimes with bitterness regarding them. And as the French say of the Duke of Wellington. who never suffered a defeat, that only an astonishing series of lucky accidents enabled him to be an invariable winner; yet even they allow that he cheated at Waterloo, and was enabled to win the last great trick: so it was hinted at headquarters in England. that some foul play must have taken place in order to account for the continuous success of Colonel Crawley.
C. Though Frascati and the Salon were open at that time in Paris. the mania for play was so widely spread, that the public gambling-rooms did not suffice for the general ardour, and gambling went on in private houses as much as if there had been no public means for gratifying the passion. At Crawley’s charming little reunions of an evening this fatal amusement commonly was practiced-much to good natured little Mrs. Crawley’s annoyance. She spoke about her husband’s passion for dice with the deepest grief; she bewailed it to everybody who came to her house. She besought the young fellows never, never to touch a box; and when young Green, of the Rifles, lost a very considerable sum of money, Rebecca passed a whole night in tears, as the servant told the unfortunate young man, and actually went on her knees to her husband to beseech him to remit the debt, and burn the acknowledgment. How could he He had lost just as much as himself to Blackstone of the Hussars, and Count Punter of the Hanoverian Cavalry. Green might have any decent time; but pay -of course he must pay-to talk of burning IOU’s was child’s play.
D. Other officers, chiefly young-for the young fellows gathered round Mrs. Crawley-came from her parties with tong faces, having dropped more or less money at her fatal card tables. Her house began to have an unfortunate reputation. The old hands warned the less experienced of their danger. Colonel O’Dowd, of the regiment, one of those occupying in Paris, warned Lieutenant Spooney of that corps. A loud and violent fracas took place between the infantry-colonel and his lady, who were dining a the Caré de Paris. and Colonel and Mrs. Crawley, who were also taking their meal there. The ladies engaged on both sides. Mrs. O’Dowd snapped her fingers in Mr. Crawley’s face, and called her husband "no better than a blackleg", Colonel Crawley challenged Colonel O’Dowd, C. B. The commander-in-chief hearing of the dispute sent for Colonel Crawley, who was getting ready the same pistols, "which he shot Captain Marker, " and had such a conversation with him that no duel took place. If Rebecca had not gone on her knees to General Tufto, Crawley would have been sent back to England; and he did not play, except with civilians, for some weeks after.

本题中定义了一个长度为20的整数数组,然后将1~20分别赋给数组元素,计算该数组中所有下标为奇数的元素的和。 public class javal{ public static void main(String args[]){ int sum; ; int arrayList[]=new int[20]; for(int i=0;i<=19;i++) arrayList[i]=i+1; int pos=0; while(pos<20){ if( ) sum=sum+arrayList[pos]; ; } System.out.println("sum="+sum); } }

本题的功能是通过按钮来选择窗口显示的风格。窗口中有三个按钮:“Metal”、“Motif”和“Windows”,单击任何一个按钮,就能将窗口的风格改变为按钮名称所对应的风格。 import java.awt.*; import java.awt.event.*; import javax.swing.*; class PlafPanel extends JPanel implements ActionLis- tener {public () {metaIButton=new JButton("Metal"); motifButtOn=new J Button("Motif"); windowsButton=new JButton("Windows"); add(metalButton); add(motifButton); add(windowsButton); metalButton.addActionListener(this); motifButton.addActionListener(this); windowsButton.addActionListener(this); } Dublic void actionPerformed(ActionEvent evt) {Object source=evt.getSource(); String plaf="": if(source= =metalButton) plaf="javax.swing.plaf.metal.MetalLookAnd- Feel"; else if(source= =motifButton) plaf="com.sun.java.swing.plaf.motif.Moti- fLookAndFeel"; else if(source= =windowsButton) Dlaf="com.sun.java.swing.plaf.windows.Win- dowsLookAndFeel"; try {UIManager.setLookAndFeel( ); SwingUtilities.updateComponentTreeUI(this); } catch(Exception e){) } private JButton metalButton; private JButton motifButton; private JButton windowsButton; } class PlafFrame extends JFrame {public PlafFrame() { setTitle("simple"); setSize(300,200); addWindowListener(new WindowAdapter() {public void windowClosing(WindowEvent e) {System.exit(O); } }); Container contentPane=getContentPane(); contentPane.add(new PlafPanel()); } } public class java2 {public static void main(String[]args) f JFrame frame=new PlafFrame(); frame.show(); }

本程序的功能是获取文本框中的文本。窗口中有两个文本框“用户名”和“密码”,以及三个按钮“登录”、“其他用户登录,,和“关闭”,初始状态“用户名”文本框是只读的,单击“其他用户登录”按钮后变成可写的,“密码”文本框使用的不是密码文本框,在用户键入的时候设置显示为*号。输入用户名和密码后,单击“登录”按钮后,如果输入的密码为空,则弹出提示消息框,否则后台将显示输入的用户名和密码。比如显示为“admin用户的密码:password”(admi为输入的用户名,password为输入密码)。 import java.awt.*; import java.awt.event.*; import javax.swing.JOptionPane; public class java3 { public static void main(String args[]) { final Frame frmFrame=new Frame(); Panel pnlPanel=new Panel(); Label lblUsername=new Label("用户名"); Label lblPassword=new Label("密码"); final TextField txtUsername=new TextField(" Student"); final TextField txtPassword=new TextFidd("", 8); txtUsername.setEditable(false); txtPassword.setChar(’*’); Button btnButtonl=new Button("登录"); ButtOn btnButton2=new Button("其他用户登 录"); Button btnButton3=new Button("关闭"); btnButtonl.addActionListener(new ActionListen-er() { public void actionPerformed(ActionEvent e) { if((txtPassword.getText()).length()= =0) { JOptionPane.showMessageDialog(frmFrame,"密码不能为空"); return; } txtPassword.setColumns(16); System.out.println(txtUsername.getText()+" 用户的密码:" +txtPassword.getPassword()); } }); btnButton2.addActionListener(new ActionListen-er() { public void actionPerformed(ActionEvent e) { txtUsername.setEnable(true); } }); btnButton3.addActionListener(new ActionListen-er() { public void actionPerformed(ActionEvent e) { System.exit(0); } }); pnlPanel.add(1blUsername); pnlPanel.add(txtUsername); pnlPanel.add(1blPassword); pnlPanel.add(txtPassword); pnlPanel.add(btnButtonl); pnlPanel.add(btnButton2); pnlPanel.add(btnButton3); frmFrame.add(pnlPanel); frmFrame.setTitle("advance"); frmFrame.pack(); frmFrame.show(); } }

答案查题题库