单选题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

题目
单选题
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.


相似考题

1.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.

更多“11. public enum Title {  12. MR(”Mr.”), MRS(”Mrs.”), MS(”Ms.”相关问题
  • 第1题:

    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.JohnDoe

    B.Anexceptionisthrownatruntime.

    C.Compilationfailsbecauseofanerrorinline12.

    D.Compilationfailsbecauseofanerrorinline15.

    E.Compilationfailsbecauseofanerrorinline20.


    参考答案:A

  • 第2题:

    Mr. and Mrs. Green are worried that their daughter is recently ____ with a suspicious guy.

    A. going on

    B. going through

    C. going out

    D. going down


    正确答案:C

  • 第3题:

    The last paragraph implies that ________.

    A. Mr. Scrushy told a lie

    B. Ms. Lewis will get the money Mr. Scrushy owes her

    C. the Lewis Group may be a go-between

    D. Mr. Scrushy will be involved in the trial again


    正确答案:C
    最后一段讲述因为Mr. Scrushy还欠他们一大笔债务,Ms. Lewis拿出财务详细证据来,包括Mr. Scrushy可能就是通过Lewis Group付给她钱的。选项A“Mr. Scrushy撒谎了”,从全文来看,Mr. Scrushy就此事其实没有说过什么,不能算是撒谎;B“Ms. Lewis会拿到Mr. Scrushy欠的钱”,但其实这并不能确定;C“Lewis Group可能是中间人”,因为在文章开始Ms. Lewis提到是Mr. Scrushy通过Lewis Group支付给她的,而且她拿出了两方面的财务证明,所以Lewis Group非常有可能是中间人;D“Mr. Scrushy将会再次卷入审判”,这也是不可知的事情。因此,正确答案为C。

  • 第4题:

    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

    答案:C
    解析:

  • 第5题:



    To whom should reporters address follow—up questions?
    A. Mr. Charlie McGreger
    B. Mr. Keith Wilson
    C. Ms. Jackie Johnson
    D. Mr. Norman Winter


    答案:D
    解析:
    文中的报道引用了 Santos公司人力资源部负责人Norman Winter( Head of Human Resources Department at Samos,Ltd.)的发言,因此可以推测他是发言人,所以后续问题需要向他咨询。

  • 第6题:


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


    答案:D
    解析:
    Takagi 先生在邮件的第一段中写道,“I feel that your help was very valuable to my presenta-tion.(你对我的演讲帮助很大。)”因此他写信的目的是向Ward表明谢意。正确选项是D。

  • 第7题:

    We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.

    • A、Our great honour
    • B、Nice having you here
    • C、Nice you are here
    • D、With pleasure

    正确答案:B

  • 第8题:

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


    正确答案:introduce

  • 第9题:

    单选题
    After hearing the telephone message, what did Ms. Parsons do immediately?
    A

    Call Mr. Patel back

    B

    Hire a new truck

    C

    Approve the shipment

    D

    Contact the delivery firm


    正确答案: B
    解析:
    第一段中间部分“I called the delivery company immediately afterwards and spoke to a representative there”提到收到电话留言马上就联系物流公司。选择D。

  • 第10题:

    单选题
    How do Mr. Gentry and Ms. Kuhn probably know each other?
    A

    Ms, Kuhn is Mr. Gentry's IT client.

    B

    They are employees of the same company.

    C

    They went to the same university.

    D

    Mr. Gentry is an old friend of Ms. Kuhn.


    正确答案: B
    解析:
    文中提到他们要建一个“Get to Know Us”的部分,根据在靠后部分“I thought that we might have a group photo shoot one day this week to collect images of everyone in the office”,及“I was wondering if you might be interested in taking charge of the shoot”可知他们两人很可能在一家公司上班,所以B项正确。

  • 第11题:

    单选题
    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.


    正确答案: C
    解析: 暂无解析

  • 第12题:

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

    Embarrassed

    B

    Upset

    C

    Impatient


    正确答案: C
    解析:
    男士知道这对夫妻的身份之后有如下想法:I just wish the ground would open up and swallow me. I felt so stupid可知他当时十分尴尬。

  • 第13题:

    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 men

    B.it doesn't tell whether they're married or not

    C.the word sounds more pleasant than "Mrs." does

    D.the word has been used for a long time


    正确答案:B

  • 第14题:

    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. discharged

    B. arrested

    C. quitted

    D. punished


    正确答案:A
    该词所在原句为“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.”(Mr. Scrushy因36项指控而授受了6个月的审判,6月份……,尽管前HealthSouth主管指证其策划了一项大的账目作假。)因为前后半句是转折关系,所以可以推断Mr. Scrushy并没有受到制裁,因此选项A“宣布无罪”,B“逮捕”,C“解除”,D“惩罚”中,A符合逻辑。

  • 第15题:

    ___ 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

    答案:B
    解析:
    past“过”,before“在……之前”,prior 和to 连用表示“之前”, near“在附近,临近”。句意为“在Camano 女士前往曼谷之前,她想和Jenkins 先生见面讨论她的销售报告”。故选B。

  • 第16题:


    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.


    答案:D
    解析:
    Takagi给Ward写的邮件中的下半部分中提到5月10号见面,并说届时,Lee也会参加这次会面。因此可以推知TakagKWard.Lee会在5月10号这一天会面。正确答案是D。

  • 第17题:



    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.


    答案:C
    解析:
    文章后半部分说,“Please sign it and send it back to me by the end of next week.(请于下周之前在协议书上签字,并寄还给我。)”因此可以推断出Tony Higginson会收到一份签名的协议书。

  • 第18题:

    We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.

    AOur great honour

    BNice having you here

    CNice you are here

    DWith pleasure


    B

  • 第19题:

    How did Mr. Jones get to the cinema?()

    • A、At  o'clock. 
    • B、To Mrs. Jones. 
    • C、By car. 
    • D、To the Grand Theater.

    正确答案:C

  • 第20题:

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

    spend

    B

    spending

    C

    spent

    D

    spends


    正确答案: D
    解析:

  • 第21题:

    单选题
    What information is NOT included in Ms. Kuhn's email?
    A

    Who her favorite author is

    B

    A way to reach Mr. Morales

    C

    How to find her picture

    D

    Her chosen words of wisdom


    正确答案: B
    解析:
    文中没有关于作者的。这封邮件中,第一段最后一句提到联系Mr. Morales的联系方式,对应B项。第二段第一句话讲“but I do have a personal photo that I wouldn’t mind contributing to the webpage, which I attached to this email”怎样可以得到她的照片,对应C项。倒数第二句“And here is my favorite quote”提到了她最喜欢的句子,与D项对应,A项未提及,选择A。

  • 第22题:

    单选题
    The first paragraph is written to ______.
    A

    report the suicide of a young man

    B

    show the suffering of Mr. And Mrs. Satow

    C

    describe the Satows’ confusion over their son’s death

    D

    introduce the topic of a website called Ulifeline


    正确答案: D
    解析:
    推理判断题。文章第一段提到,“五年前,Satow夫妇20岁的儿子在寒假上吊自杀了,他们开始通过询问其他学生来查明他们到底忽视了哪些迹象”。第二段首句接着讲到,“由这个调查而生的是Ulifeline网站”,可知第一段是为了引出本文的话题,Ulifeline网站,故D项为正确答案。

  • 第23题:

    单选题
    We really enjoy ourselves at the party. Thanks again, Mr. and Mrs. Brown.()Just drop in whenever you feel like it.
    A

    Our great honour

    B

    Nice having you here

    C

    Nice you are here

    D

    With pleasure


    正确答案: D
    解析: 暂无解析

  • 第24题:

    问答题
    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?

    正确答案: 6.G 句意:谁接电话和接待来宾?这些应该是接待员(receptionist)的工作范畴,故选G。
    7.B 句意:谁为公司采购文具?这应该是采购员(buyer)的工作内容。purchase 购买。
    8.F 负责公司销售额应该是销售代表(Sales Representative)的工作,故选F。
    9.A 句意:谁管理公司利润和开支情况?Mr. Brown Accountant(会计师)应该为此负责。
    10.C 保证公司产品质量应该是质量管理员(Quality Controller)的责任,故选项C。
    解析: 暂无解析