单选题11. public enum Title {  12. MR(”Mr.”), MRS(”Mrs.”), MS(”Ms.”);  13. private final String title;  14. private Title(String t) { title = t; }  15. public String format(String last, String first) {  16. return title + “ “ + first + “ “ + last;  17. }  18. }  19. public static void main(String[] args) {  20. System.out.println(Title.MR.format(”Doe”, “John”));  21. }  What is the result?()A Mr. John DoeB An exception is thrown at runtime.C Compilation fails because of an error in line 12.D Compilation fails because of an error in line 15.E Compilation fails because of an error in line 20.

单选题
11. public enum Title {  12. MR(”Mr.”), MRS(”Mrs.”), MS(”Ms.”);  13. private final String title;  14. private Title(String t) { title = t; }  15. public String format(String last, String first) {  16. return title + “ “ + first + “ “ + last;  17. }  18. }  19. public static void main(String[] args) {  20. System.out.println(Title.MR.format(”Doe”, “John”));  21. }  What is the result?()
A

 Mr. John Doe

B

 An exception is thrown at runtime.

C

 Compilation fails because of an error in line 12.

D

 Compilation fails because of an error in line 15.

E

 Compilation fails because of an error in line 20.


参考解析

解析: 暂无解析

相关考题:

Mrs. Wilson, a Cree Indian in her sixties, was looking for a home to rent. She heard that one was available in an ideal location, close to the Calgary core.Mrs. Wilson and her daughters went to look at the house. Sure enough, there was a For Rent sign in the window. A woman next door told them that the owner was Antonio Pompei, who owned a bakery farther up the street.Mrs. Wilson has great difficulty walking for she is almost blind, so she waited in the car while her daughters went along to the bakery. The daughters met Mr. Pompei, who agreed to rent the house. However, the daughters wanted to see the inside of the house before they agreed to rent it. One of the bakery employees went with them to the house, where he met Mrs. Wilson.All three women liked the house and returned to the bakery to tell Mr. Pompei that they would rent it.When Mr. Pompei saw Mrs. Wilson, he quickly walked out of the bakery. He had not realized Mrs. Wilson was Indian. Her daughters look more like their father, who is of a different ethnic(种族) origin. The next day, Mrs. Wilson and her daughters returned to the bakery in an attempt to rent the house. Because of her blindness, Mr. Wilson was helped out of the car and guided into the bakery by one of her daughters. Mr. Pompei told the women that the house was already rented.The Wilsons suspected discrimination. As soon as they got home, Mrs. Wilson phoned Mr. Pompei, without identifying herself, Mr. Pompei lost his temper.Mrs. Wilson complained to the Human Rights Commission. Their examination discovered that the tenants who did rent the house had not even seen it at the time when Mrs. Wilson visited it. They applied to rent it a full week after Mrs. Wilson had applied.(1)According to the passage, Mrs. Wilson was _____________.A、to rent the house for her daughtersB、to rent the house for someone elseC、to rent the house for her familyD、to sublet (转租) the house(2)According to the passage, we are certain that Mr. Wilson was _____________.A、an IndianB、not an IndianC、an AsianD、from India(3)Mrs. Wilson found Mr. Pompei’s discrimination by _____________.A、complaining to the Human Rights CommissionB、making the bakery owner angryC、making an unidentifiable phone callD、pretending to be a woman of wealth(4)In the end Mrs. Wilson couldn’t rent the house simply because _____________.A、she was of Indian originB、she needed assistance while walkingC、the owner of the house asked for more moneyD、she was almost blind(5)Which of the following statement is NOT TRUE?A、Mr. Wilson had at least two daughters.B、The house had been rented to someone else a week before.C、Mrs. Wilson was almost blind.D、Mr. Pompei was practicing racial discrimination.

What did Mr. Brocklehurst call Mrs. Reed when he disciplined Jane at Lowood?() A.benefactressB.loyalC.wickedD.cruel

In Pride and Prejudice,Mary is the third daughter of Mr. and Mrs. Bennet.() 此题为判断题(对,错)。

Who has got a little child according to the text? 【 】A. Ms. LeonB. Mr. LewisC. Mr. MoellerD. Dr. Jeffers

11.publicenumTitle{12.MR(”Mr.”),MRS(”Mrs.”),MS(”Ms.”);13.privatefinalStringtitle;14.privateTitle(Stringt){title=t;}15.publicStringformat(Stringlast,Stringfirst){16.returntitle++first++last;17.}18.}19.publicstaticvoidmain(String[]args){20.System.out.println(Title.MR.format(”Doe”,John”));21.}Whatistheresult?()A.Mr.JohnDoeB.Anexceptionisthrownatruntime.C.Compilationfailsbecauseofanerrorinline12.D.Compilationfailsbecauseofanerrorinline15.E.Compilationfailsbecauseofanerrorinline20.

Almost everyone knows the meaning of "Mr.", "Mrs.", and "Miss&q Almost everyone knows the meaning of "Mr.", "Mrs.", and "Miss". "Mr." is used before the names of gentlemen. "Mrs." is for married women and "Miss" is for single women. But what is "Ms."?For some time, businessmen in the US have used "Ms." before a woman's name when they do not know whether or not the woman is marrieD.Today, however, many women prefer to use "Ms." rather than "Mrs." or "Miss". The word "Mr." does not tell us whether a man is married or not. Many women think this is an advantage for men. They want to be equal to men in this way. These women feel that it is not important for people to know whether or not they are marrieD.There are some problems with "Ms.", however. Not all women like it. Some like the older ways of doing things. Some find it difficult to pronounce. ("Ms." sounds like [miz].) Generally, young women like it better than older women do. It is difficult to know whether "Ms." will be used by more American women in the future or not. What do you think of this change?1. Many young women prefer to use "Ms." because ________.:A.they think themselves as good as menB.it doesn't tell whether they're married or notC.the word sounds more pleasant than "Mrs." doesD.the word has been used for a long time

Mr. and Mrs. Green are worried that their daughter is recently ____ with a suspicious guy. A. going onB. going throughC. going outD. going down

Text 4A writer said yesterday that Richard M. Scrushy, the former chief executive of HealthSouth, paid her through a public relations firm to produce several favorable articles for an Alabama newspaper that he reviewed before publication during his fraud trial last year.The articles appeared in The Birmingham Times, a black-owned weekly in Birmingham, Ala. Mr. Scrushy was acquitted in June in a six-month trial there on all 36 counts against him, despite testimony from former HealthSouth executives who said he presided over a huge accounting fraud. "I sat in that courtroom for six months, and I did every thing possible to advocate for his cause," Audrey Lewis, the author of the articles, said in a telephone interview. She said she received $10,000 from Mr. Scrushy through the Lewis Group, a public relations firm, and another $1,000 to help buy a computer. "Scrushy promised me a lot more than what I got," she said.Charles A. Russell, a spokesman for Mr. Scrushy, said he was not aware of an explicit agreement for the Lewis Group to pay Ms. Lewis. The payments to Ms. Lewis were first reported by The Associated Press yesterday. "There's nothing there I think Richard would have any part of," Mr. Russell said.Mr. Russell said that Mr. Scrushy reviewed the articles before they were published. "Richard thought she was doing a little, 'F.Y.I., here's what I'm writing,' " Mr. Russell said. Ms. Lewis said that Mr. Russell, a prominent Denver-based crisis communications consultant, was also involved in providing her with financial compensation. She said Mr. Russell wrote her a $2,500 personal check at the end of May 2005; Mr. Russell said that was true. "She was looking for freelance community-relations work after the trial," Mr. Russell said.Ms. Lewis came into Mr. Scrushy's sphere through Believers Temple Church; she attends services and works as an administrator there. She and Rev. Herman Henderson, the pastor, were part of a group that appeared in court with Mr. Scrushy and often prayed with him during breaks. Before and during the trial, in which 11 of the 18 jurors were black, Mr. Scrushy, who is white, forged ties with Birmingham's African-American population. He joined a predominantly black church, and his foundation donated to it and other black congregations.Mr. Henderson also said he received payments from Mr. Scrushy in exchange for building support for him among blacks. Mr. Scrushy said in a statement yesterday that his foundation donated money to Mr. Henderson's church, but said the payments were unrelated to his case. "My foundation donated to his church building fund and to a Katrina relief effort that his church sponsored," Mr. Scrushy said. "That's it. Period."Ms. Lewis, 31, said she was disclosing details about the financial arrangement because Mr. Scrushy still owes her and Mr. Henderson a significant amount of money. Ms. Lewis provided copies of a retainer agreement that Mr. Scrushy signed last April with the Lewis Group, a public relations firm controlled by Jesse J. Lewis Sr., 82 the founder of The Birmingham Times, and a check issued to her in May from the Lewis Group. (Ms Lewis and Mr. Lewis are not related.)第36题:The word \\\acquitted\\\ (Line 2, Para. 2) probably means ________.A. dischargedB. arrestedC. quittedD. punished

The last paragraph implies that ________.A. Mr. Scrushy told a lieB. Ms. Lewis will get the money Mr. Scrushy owes herC. the Lewis Group may be a go-betweenD. Mr. Scrushy will be involved in the trial again

___ Ms. Camano leaves for Bangkok, she wants to meet with Mr. Jenkins to discuss her sales presentation.A. Past B. before C. Prior D. Near

Mr. Hernftndez is not available at the time the work crew is scheduled to arrive, and ___is Ms. Kekkonen.A. so B. also C. neither D. yet

What will happen on May 10th?A. Another seminar will be held.B. Mr. Takagi and Ms. Lee will meet.C. The seminar will end.D. Mr. Takagi,Ms. Lee and Ms. Ward will meet.

To whom should reporters address follow—up questions?A. Mr. Charlie McGregerB. Mr. Keith WilsonC. Ms. Jackie JohnsonD. Mr. Norman Winter

What will happen next week?A. Mr. Ron Evans will sell the product to specialty stores.B. Ms. Emilie Greeen will meet with Mr. Tony Higginson again.C. Mr. Tony Higginson will receive a signed contract.D. Mr. Tony Higginson will send a distribution agreement to be signed.

What is the main purpose of Mr. Takagi’s e — mail to Ms. Ward?A. To incorporate her data into his lectureB. To inform online customers of special salesC. To schedule a meeting with Ms. LeeD. To thank her for her help

We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.AOur great honourBNice having you hereCNice you are hereDWith pleasure

We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.A、Our great honourB、Nice having you hereC、Nice you are hereD、With pleasure

How did Mr. Jones get to the cinema?()A、At o'clock.B、To Mrs. Jones.C、By car.D、To the Grand Theater.

Let me()you to Mr. Thompson. Mr. Thompson,this is Mrs. Zhang.

单选题As they are retired, Mr. and Mrs. Scott prefer a house in the country to _____ their remaining years there.AspendBspendingCspentDspends

单选题After hearing the telephone message, what did Ms. Parsons do immediately?ACall Mr. Patel backBHire a new truckCApprove the shipmentDContact the delivery firm

单选题What information is NOT included in Ms. Kuhn's email?AWho her favorite author isBA way to reach Mr. MoralesCHow to find her pictureDHer chosen words of wisdom

单选题How do Mr. Gentry and Ms. Kuhn probably know each other?AMs, Kuhn is Mr. Gentry's IT client.BThey are employees of the same company.CThey went to the same university.DMr. Gentry is an old friend of Ms. Kuhn.

单选题The first paragraph is written to ______.Areport the suicide of a young manBshow the suffering of Mr. And Mrs. SatowCdescribe the Satows’ confusion over their son’s deathDintroduce the topic of a website called Ulifeline

单选题We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.AOur great honourBNice having you hereCNice you are hereDWith pleasure

单选题How did Dave feel after the conversation with Mr. and Mrs. Jones?AEmbarrassedBUpsetCImpatient

问答题Practice 2  ● Look at the HR list below. It shows the titles of each person.  ● For questions 6-10, decide who does these jobs.  ● For each question, mark one letter A-H on your book.  ● Do not use any letter more than once.  A Mr. Brown Accountant        E Mr. Harvers Clerk  B Mr. Wright Buyer          F Ms. Hampson Sales Representative  C Mrs. Turnner Quality Controller   G Miss Law Receptionist  D Mr. Edwards Typist         H Ms. Smith Marketing Manager  6. Who answers the phones and welcomes the visitors?  7. Who purchase the stationeries for the company?  8. Who works on the sales volume of the company?  9. Who looks at the company’s profits and costs?  10. Who makes sure the company’s products are well made?