-
-
查看答案
正确率:100%
-
2022-04-30 18:55:28
-
-
查看答案
正确率:100%
-
2022-04-30 18:55:28
-
-
-
-
6[填空题]
阅读下列程序并完成程序填空。 编写一个Java程序将当100,101,102,103,104,105个数以数组的形式写入到Dest.txt文件中,并以相反的顺序读出显示在屏幕上。 //programme name IODemo.java import java.io.*; public class IODemo { public static void main( String args[] ) { int data[] = {100,101,102,103,104,105}; int t; try { DataOutputStream out = new DataOutputStream (new FileOutputStream(“dest.txt”); _ _ _ _ _ _ _ _ (int i=0;i<data.length;i ) out.WriteInt(data[i]); out.close(); DataInputStream in = new DataInputStream (new FileInputStream(“dest.txt”); for(int i= data.length-1;i>= 0;i--) { t=in.readInt(data[i]); System.out.print(“ ” t); } System.out.println( ); in.close(); }catch(IOException e) { System.out.println(e.getMessage();} } }
-
-
-
1[阅读题]
Alfred Nobel, the great Swedish inventor and industrialist, was born in Stockholm on October 21, 1833, but moved to Russia with his parents in 1842, where his father, Immanuel, made a strong position for himself in the engineering industry. Immanuel Nobel invented landmine and made a lot of money from the government during the Crimean War, but went bankrupt soon after. Then, the family returned to Sweden in 1859, where Alfred began his own study of explosives in his father’s lab. He had never been to school or university but had taught himself, and by the time he was twenty, he became a skillful chemist and excellent linguist, speaking Swedish, Russian, German, French and English. He built up over 80 companies in 20 different countries. He was always searching for a meaning to life. He spent much time and money working on how to end the wars, and the peace between nations, until his death in Italy in 1896. His famous last will, in which he left money to provide prizes for outstanding work in physics, chemistry, physiology, medicine, literature and peace, is a memorial to his interests and ideas. And so, the man is remembered and respected long after his death.61. Where was Alfred Nobel born? He was born in _____.A. Sweden B. StockholmC. Russia D. Moscow62. What did Immanuel Nobel invented during the Crimean War?A. The engineering industry. B. A strong position.C. Landmine. D. Study of explosives.63. Why did Alfred Nobel return to Sweden ? Because his father ______.A. went bankrupt B. was put in prison C. was ill D. died64. How many companies did Alfred Nobel build up? He built up _______ companies in different countries.A. 20 B. 40C. 60 D. 8065. What was Alfred Nobel always searing for? ______.A. More time and more money B. A meaning to life C. How to end the war D. The peace between nations
-
2[阅读题]
`An eight-year-old child heard her parents talking about her little brother. All she knew was that he was very sick and they had no money. Only a very expensive operation could save him now and there was no one to lend them the money.When she heard her daddy say to her tearful mother, “Only a miracle can save him now,” the little girl went to her bedroom and pulled her money from its hiding place and counted it carefully.She hurried to a drugstore (药店) with the money in her hand.“And what do you want?” asked the salesman. “It’s for my little brother,” the girl answered. “He’s really, really sick and I want to buy a miracle.” “Pardon?” said the salesman.“My brother Andrew has something bad growing inside his head and my daddy says only a miracle can save him. So how much does a miracle cost?” “We don’t sell a miracle here, child. I’m sorry,” the salesman said with a smile.“Listen, if it isn’t enough, I can try and get some more. Just tell me how much it costs.”A well-dressed man heard it and asked, “What kind of a miracle does your brother need?”“I don’t know,” she answered with her eyes full of tears. “He’s really sick and mum says he needs an operation. But my daddy can’t pay for it, so I have brought all my money.”“How much do you have?” asked the man. “$ 1.11, but I can try and get some more,” she answered.“Well, what luck,” smiled the man. “$ 1.11, the price of a miracle for little brothers.”He took up the girl’s hand and said, “Take me to where you live. I want to see your brother and meet your parents. Let’s see if I have the kind of miracle you need.”That well-dressed man was Dr Carlton Armstrong, a famous doctor. The operation was successful and it wasn’t long before Andrew was home again.How much did the miracle cost?66. What was the trouble in the little girl’s family? A. Her brother was seriously ill.B. They had no money.C. Nothing could save her brother.D. Both A and B.67. In the eye of the little girl, a miracle might be ______.A. something interesting B. something beautifulC. some wonderful medicine D. some good food68. The little girl said again and again “...I can try and get some more.” That shows ______.A. she had still kept some money B. she hoped not to be refusedC. There was no need to worry about moneyD. she thought money was easy to get69. What made the miracle happen? A. The girl’s love for her brother. B. The girl’s money.C. The medicine from the drugstore. D. Nobody can tell.70. From the passage we can infer (推断) that ______.A. The doctor didn’t ask for any payB. A miracle is sure to happen if you keep onC. The little girl is lovely but not so cleverD. Andrew was in fact not so sick as they had thought