【单选题】下面程序的输出是。 main() {enum team {my,your=4,his,her=his+10}; printf("%d%d%d%dn",my,your,his,her);}A.0 1 2 3B.0 4 0 10C.0 4 5 15D.l 4 5 15

【单选题】下面程序的输出是。 main() {enum team {my,your=4,his,her=his+10}; printf("%d%d%d%dn",my,your,his,her);}

A.0 1 2 3

B.0 4 0 10

C.0 4 5 15

D.l 4 5 15


参考答案和解析
DDBBCC C语言对枚举的定义规定:在枚举中声明的各个枚举元素,如果没有明确指出某个枚举元素的值,它的上一个元素存在并有明确值的情况下,这个枚举元素的值为其上一个元素的值+1。在本题中,没有明确说明枚举元素em3的值,则em3=em2+1=1+1=2,进而可知,在printf()打印函数中,要打印的数组元素是aa[3]、aa[1]、aa[2],因此最后的打印结果应当为“DDBBCC”。

相关考题:

阅读下列短文,并做每篇后面的题。从各题所给的四个选项中,选出能完成所给句子的最佳选项。AA neighbor of mine, while visiting his mother in Boston, took her to a shoe store to buy a new pair of shoes. While she was trying on different styles(款式), my neighbor took the manager aside. “ When she picks out a pair that she likes,” he said, “ just tell her that the price is 12 dollars. I’ll pay the regular(正常的)price. I don’t care how much it is.”The following week, my neighbor was walking by the shoe store and the manager recognized (认出)him and called him in.“ What’s the problem?” asked my neighbor as he entered the store.“ Wasn’t my check any good?”“ That’s not it,” answered the manager, “ The problem is that your mother is bringing all her friends in for those 12-dollar shoes!”( ) 51. My neighbor went to Boston ________.A. to buy shoes for his motherB. to see his motherC. to pay for the shoes he had bought for his motherD. to see the manager of the shoe store

A man and his girlfriend were married. It was a large celebration.All of their friends and family came to see the lovely ceremony and to partake of the festivities and celebrations. All had a wonderful time.The bride was gorgeous in her white wedding gown and the groom was very dashing in his black tuxedo. Everyone could tell that the love they had for each other was true.A few months later, the wife came to the husband with a proposal,“I read in a magazine, a while ago, about how we can strengthen our marriage,” she offered.“Each of us will write a list of the things that we find a bit annoying with the other person. Then, we can talk about how we can fix them together and make our lives happier together. ”Her husband agreed. So each of them went to a separate room in the house and thought of the things that annoyed them about the other. They thought about this question for the rest of the day and wrote down what they came up with.The next morning, at the breakfast table, they decided that they would go over their lists.“I'll start,” offered the wife. She took out her list. It had many items on it. Enough to fill 3 pages in fact. As she started, reading the list of the little annoyances, she noticed that tears were starting to appear in her husband's eyes.“What’s wrong?” she asked.“Nothing,” the husband replied, “keep reading your list.”The wife continued to read until she had read all three pages to her husband. She neatly placed her list on the table and folded her hands over the top of it.“Now,you read your list and then we'll talk about the things on both of our lists, ” she said happily.Quietly the husband stated, “I don't have anything on my list. I think that you are perfect the way that you are. I don't want you to change anything for me. You are lovely and wonderful and I wouldn't want to try and change anything about you. ”The wife, touched by his honesty, the depth of his love for her, and his acceptance of her, turned her head and wept.(1)Which is NOT true according to the passage?A、The man and his girlfriend had a great wedding.B、The woman wanted reasons for a divorce.C、The man respected his wife very much.D、The woman was moved by her husband's kindness.(2) The woman suggested writing down another's weak points, in order to ________.A、make her marriage betterB、show her annoyance with her husbandC、let other people knowD、help her husband think independently(3) What is the writer's attitude to the husband's behavior?A、PositiveB、Ironical(讽刺的)C、OppositeD、None of the above.(4) According to your understanding, why did tears appear in the husband's eyes?A、Because his wife was too perfect.B、Because he accepted her as a whole, but she didn't.C、Because he loved her more than she loved him.D、Because his wife was too rude (粗鲁的).(5) It can be inferred from the passage that the wifeA、would shorten her list.B、would not let other people know her husband's bad aspects.C、would learn to respect and accept her husband fully.D、would be confused.

Your sponsor announce to you and your team that his/her door is open to everyone wishing to discuss project problems. Yet, the sponsor seems to be annoyed whenever someone does stop by, even when discussing a serious problems. This is an example of.A semanticsB credibilityC inconsistent signalsD perceptual differencesE misunderstood role

71 Your sponsor announce to you and your team that his/her door is open to everyone wishing to discuss project problems. Yet, the sponsor seems to be annoyed whenever someone does stop by, even when discussing a serious problems. This is an example of.A. semanticsB. credibilityC. inconsistent signalsD. perceptual differencesE. misunderstood role

My mother was relieved that her son would be satisfied with his performance so he wouldn't do another one, at least for her ______. A: sakeB: lakeC: makeD: wake

Is there any difference between your idea and _____?A. he B. his C. she D. her

阅读下列短文,从每篇短文后所给各题的四个选项(A、B、C和D)中,选出最佳选项,并在答题卡上将该项涂黑。AMy grandfather came from Hungary and was the only one in his family who settled down in the United States. The rest of his family remained in Europe. When World War I broke out, he seemed to have become another man, downhearted. Such obvious change was not born out of concern for his welfare, but out of fear: if his only son, my uncle, had to go to war, it would be cousin fighting against cousin.One day in 1918, my Uncle Milton received his draft notice. My grandparents were very upset. But my mother, at the age of 10, felt on top of the world about her soldier brother going off to war. Realizing how he was regarded by his little sister and all of her friends, my uncle bought them all service pins, which meant that they had a loved one in the service. All the little girls were delighted.The moment came when my uncle and the other soldiers, without any training but all in uniforms, boarded the train. The band played and the crowd cheered. Although no one noticed, I’m sure my grandmother had a tear in her eye for the only son. The train slowly pulled out, but not about a thousand yards when it suddenly paused. Everyone stared in wonder as the train slowly returned to the station. There was a dead silence before the doors opened and the men started to step out. Someone shouted, “The war is over!” For a moment, nobody moved, but then the people heard someone bark orders at the soldiers. The men lined up in two lines, walked down the steps, and with the band playing, marched down the street, as returning heroes, to be welcomed home. My mother said it was a great day, but she was just a little disappointed that it didn’t last a tiny bit longer.51. What the grandfather was most worried about was .A. the spread of the world warB. the safety of his two cousinsC. a drop in his living standardsD. his relatives killing each other

7. Hi! This is_______ new teacher.__________ name is Linda.A. your; MyB. his; YourC. your ; HerD. her; His

第一节 阅读理解(共15小题;每小2分,满分30分)阅读下列短文,从每题所给的A、B、C和D项中,选出最佳选项,并在答题卡上将该项涂黑。When I was growing up in America, I was ashamed of my mother’s Chinese English. Because of her English, she was often treated unfairly. People in department stores, at banks, And at restaurants did not take her seriously ,did not give her good service ,pretended not to Understand her ,or even acted as if they did not hear her.My mother has realized the limitations of her English as well. When I was fifteen, she used to have me call people on phone to pretend I was she . I was forced to ask for information or even to yell at people who had been rude to her. One time I had to call her stockbroker (股票经纪人).I said in an adolescent voice that was not very convincing, “This is Mrs.Tan.”And my mother was standing beside me ,whispering loudly, “Why he don’t send me cheek already two week lone.”And then , in perfect English I said : “I’m getting rather concerned .You agreed to send the check two weeks ago, but it hasn’t arrived.”Then she talked more loudly. “What he want? I come to New York tell him front of his boss.” And so I turned to the stockbroker again, “I can’t tolerate any more excuse. If I don’t receive the check immediately , I am going to have to speak to your manager when I am in New York next week.”The next week we ended up in New York. While I was sitting there red-faced, my mother, the real Mrs.Tan, was shouting to his boss in her broken English.When I was a teenager, my mother’s broken English embarrassed me. But now, I see it differently. To me, my mother’s English is perfectly clear, perfectly natural. It is my mother tongue. Her language, as I hear it, is vivid, direct, and full of observation and wisdom. It was the language that helped shape the way I saw things, expressed ideas, and made sense of the world.41.Why was the author’s mother poorly served?A.She was unable to speak good English.B.She was often misunderstood.C.She was not clearly heard.D.She was not very polite.

AIt was the first snow of winter – an exciting day for every child but not for most teachers. Up until now, I had been old enough to dress myself, but today I would need some help. Miss Finlayson, my kindergarten teacher, had been through first snow days many times, but I think she may still remember this one.I managed to get into my wool snow trousers. But I struggled with my jacket because it didn’t fit well. It was a hand-me-down from my brother, and it made me wonder why I had to wear his ugly clothes. At least my hat and scarf were mine, and they were quite pretty. Finally it was time to have Miss Finlayson help me with my boots(靴子).In her calm, motherly voice she said, “By the end of winter, you will all be able to put on your own boots.” I didn’t realize at the time that this was more a statement of hope than of confidence(信心).I handed her my boots and stuck out my foot. Like most children, I expected grown-ups to do all the work. After much pushing, she managed to get the first one into place and then, with a sigh, worked the second one on too.I announced, “They’re on the wrong feet.”She struggled to get the boots off and went through the joyless task of putting them on again.“They’re my brother’s boots, you know,” I said. “I hate them!”Somehow, from long years of practice, she managed to act as though I wasn’t an annoying(烦人的)little girl, She pushed and pushed, less gently this time. With a greater sigh, seeing the end of her struggle with me, she asked, “Now, where are your mittens(连指手套)?”I looked into her eyes and said, “I didn’t want to lose them, so I hid them in the toes of my boots.”41.The little girl was more satisfied with her__________-.A.trousersB.jacket C.boots D.hat

下面程序的输出结果【9】 。main (){enum team {y1=4,y2,y3};printf ("%d",y3);}

Well, the design manager is()by your CV and he wants you to be in his team.A、 impressB、 impressedC、 impressing

下述程序的输出结果是______。includemain(){enum team{Jack,Andy,Sam=10,Bob=Sam+2,To 下述程序的输出结果是______。 #include<stdio.h> main() { enum team{Jack,Andy,Sam=10,Bob=Sam+2,Tom}; printf("%d,%d",Andy,Tom); }A.2,13B.1,0C.1,13D.1,12

32. Emma, can you introduce ________ to Alice? I want to meet her.A. him B. his C. me D. my

根据下面资料,回答Bum rate is the speed at which a start up business consumes money. My rate would be $50,000 a month when my new media company started. So, I began looking around for individuals who would be my first investors. "Angel money" it was called. But when I reviewed my list of acquaintances to find those who might be able to help, I found the number got small. With no other choices, I began meeting with the venture-capital companies. But I was warned they took a huge share of your company for the money they put in. And if you struggled, they could drop you cold. As I was searching for "angel money", I started to build a team who trusted me even though I didn′t have money for paying checks yet. Bill Becker was an expert in computer programming and image processing at a very famous Media Lab at M.I.T. With his arrival, my company suddenly had a major technology "guy" in-house. Katherine Henderson, a film maker and a former real-estate dealer, joined us as our director of market research. Steve White came on as operating office. He had worked for the developer of a home-finance software, Quicken. We grabbed him. We had some really good people, but we still didn′t have enough money. One night, my neighbor, Louise Johnson, came for a visit. She and I were only nodding acquaintances, but her boys and ours were constant companions. She ran a very good business at the time. Louise was brilliant and missed nothing. She had been watching my progress closely. She knew I was dying for money and I had prospects but could offer no guarantees of success. She told me that her attorney had talked to mine and the terms had been agreed upon. She handed me an envelope. Inside was a check for $500,000. I almost fell down. I heard her voice as if from heaven. "I have confidence in your plan," she said. "You′ll do well. You′re going to work for it, but it′ s satisfying when you build your own company." Who could have thought I′ d find an angel so close to home? There were no words sufficient for the moment. We just said good night. She left and I just stood there, completely humbled and completely committed. Louise decided to lend money to the author because _____________.A.she wanted to join his companyB.she knew he would build a teamC.she knew his plan would succeedD.she wanted to help promote his sales

根据下面资料,回答Bum rate is the speed at which a start up business consumes money. My rate would be $50,000 a month when my new media company started. So, I began looking around for individuals who would be my first investors. "Angel money" it was called. But when I reviewed my list of acquaintances to find those who might be able to help, I found the number got small. With no other choices, I began meeting with the venture-capital companies. But I was warned they took a huge share of your company for the money they put in. And if you struggled, they could drop you cold. As I was searching for "angel money", I started to build a team who trusted me even though I didn′t have money for paying checks yet. Bill Becker was an expert in computer programming and image processing at a very famous Media Lab at M.I.T. With his arrival, my company suddenly had a major technology "guy" in-house. Katherine Henderson, a film maker and a former real-estate dealer, joined us as our director of market research. Steve White came on as operating office. He had worked for the developer of a home-finance software, Quicken. We grabbed him. We had some really good people, but we still didn′t have enough money. One night, my neighbor, Louise Johnson, came for a visit. She and I were only nodding acquaintances, but her boys and ours were constant companions. She ran a very good business at the time. Louise was brilliant and missed nothing. She had been watching my progress closely. She knew I was dying for money and I had prospects but could offer no guarantees of success. She told me that her attorney had talked to mine and the terms had been agreed upon. She handed me an envelope. Inside was a check for $500,000. I almost fell down. I heard her voice as if from heaven. "I have confidence in your plan," she said. "You′ll do well. You′re going to work for it, but it′ s satisfying when you build your own company." Who could have thought I′ d find an angel so close to home? There were no words sufficient for the moment. We just said good night. She left and I just stood there, completely humbled and completely committed. The author easily built a team of his company because _____________.A.they were underpaid at their previous jobsB.they were turned down by other companiesC.they were confident of the author and his businessD.they were satisfied with the salaries in his company

You have just come back from the U.S.as member of a SinoAmerica cultural exchange program.Write a letter to your American colleague to 1)express your thanks for his/her warm reception,2)welcome him/her to visit China in due course.You should write about 100 words on the ANSWER SHEET.Do not sign your own name at the end of the letter.Use“Zhang Wei”instead.Do not write the address.

根据以下材料,回答Trogmire Troll was dealing with acrisis. The new girl in class really liked him a lot. Trogmire was not happyabout it.Trogmire′s good friend, Tremor Troll, triedto comfort him. "What′s thebig deal? I think Treasure Troll is kind of cute. And she seems to be niceenough."Trogmire swallowed his last bite of poisonsumac salad and glared at Tremor. "Then why don′t you ask her to be yourgirlfriend? There she is, sitting all by herself at the other end of thecafeteria. March over there and ask her to be your sweetie-poo!""She′ s crazy about you, not me,"Tremor replied."Well, I don′t want any girlfriend,especially not a weird pesky one like her!" Trogmire growled.Tremor wouldn′ t give up. "The onlything pesky about her is that she keeps writing you those notes and shestares.""Yucky love notes!" Trogmireinterrupted. He took another sip of mole milk. "Did you notice those strange browneyes? Why aren′ t they normal red or pink?"Tremor took another look at Treasure."I think her face is a lovely shade of green. And her dark green curlyhair is quite pretty. Besides, she′ s very sweet and that′ s what reallymatters."Trogmire stuck out his tongue. "I think I′m going to be sick! I′dbetter save my dessert for later." He crammed a small bag of MaggotMunchies into his even smaller shirt pocket. "The fact is, I have aproblem. That girl is getting on my nerves!"Tremor followed Trogmire′s example anddecided to save his dessert for later. However, he carefully placed the baginto his lunch box. "Do youhave any ideas about how to solve your problem?" Tremor asked."I′m going to be mean and rude toher," Trogmire announced. "I′11 call her names and make ugly faces at her.""That′s how you treat everyone,"Tremor reminded his friend.Trogmire nodded. "It′s time thatTreasure got to know the real Troll!"How did Treasure Troll feelabout Trogmire Troll?A.She didn't like him because he was rude.B.She was annoyed by his strangeappearance.C.She didn' t have any strong feelingsabout him.D.She liked him a lot.

根据以下材料,回答Trogmire Troll was dealing with acrisis. The new girl in class really liked him a lot. Trogmire was not happyabout it.Trogmire′s good friend, Tremor Troll, triedto comfort him. "What′s thebig deal? I think Treasure Troll is kind of cute. And she seems to be niceenough."Trogmire swallowed his last bite of poisonsumac salad and glared at Tremor. "Then why don′t you ask her to be yourgirlfriend? There she is, sitting all by herself at the other end of thecafeteria. March over there and ask her to be your sweetie-poo!""She′ s crazy about you, not me,"Tremor replied."Well, I don′t want any girlfriend,especially not a weird pesky one like her!" Trogmire growled.Tremor wouldn′ t give up. "The onlything pesky about her is that she keeps writing you those notes and shestares.""Yucky love notes!" Trogmireinterrupted. He took another sip of mole milk. "Did you notice those strange browneyes? Why aren′ t they normal red or pink?"Tremor took another look at Treasure."I think her face is a lovely shade of green. And her dark green curlyhair is quite pretty. Besides, she′ s very sweet and that′ s what reallymatters."Trogmire stuck out his tongue. "I think I′m going to be sick! I′dbetter save my dessert for later." He crammed a small bag of MaggotMunchies into his even smaller shirt pocket. "The fact is, I have aproblem. That girl is getting on my nerves!"Tremor followed Trogmire′s example anddecided to save his dessert for later. However, he carefully placed the baginto his lunch box. "Do youhave any ideas about how to solve your problem?" Tremor asked."I′m going to be mean and rude toher," Trogmire announced. "I′11 call her names and make ugly faces at her.""That′s how you treat everyone,"Tremor reminded his friend.Trogmire nodded. "It′s time thatTreasure got to know the real Troll!" Which of the following statements isTRUE?A.Trogmire pretended to be rude in orderto make Treasure stop liking him.B.Tremor thought that looks were moreimportant than personality.C.Tremor thought that Treasure was cute.D.Trogmire offered his dessert to Treasureto make her sick.

Is there anyone in your family looking for a job? Yes, my sister is. She is()part time in a restaurant now, but she wants to change her job.A、studyingB、workingC、eatingD、playing

$str = "My name is Jack, and what is your name?";echo substr_count ($str,“name”);程序的输出结果为()。A、1B、2C、3D、4

All of the client computers in your company’s network are Windows 2000 portable computers. A usernamed Maria stores Sales files in her My Documents folder. She uses these files when she travels.  Mariainforms you that when she takes her portable computer to trade shows, she can access some of the Salesfiles but not all of them. When her portable computer is connected to the network at the office, she canaccess all of the files.You need to enable Maria to access all of the files in her My Documents folder when she is working remotely.  What should you do? ()A、 Allow Maria full control permissions on the %systemroot%/Documents and Settings/Maria/My      Documents folder. B、 Allow Maria full control permissions on the %systemroot%/ Documents and Settings/All Users/My Documents folder. C、 Configure Maria’s computer to automatically copy the entire contents of her network My Documents folder to her offline files folder. D、 Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her local My Documents folder.

All of the client computers in your company network are Windows 2000 portable computers. A user named Maria stores Sales files in her My Documents folder. She uses these files when she travels. Maria informs you that when she takes her portable computer to trade shows, she can access some of the Sales files but not all of them. When her portable computer is connected to the network at the office, she can access all of the files. You need to enable Maria to access all of the files in her My Documents folder when she is working remotely. What should you do?()A、 Allow Maria full control permissions on the %systemroot%/documents and settings/Maria/MyDocuments folderB、 Allow Maria full control permissions on the %systemroot%/documents and settings/all  users/My Documents folderC、 Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her offline files folder.D、 Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her local My Documents folder.

单选题Is there anyone in your family looking for a job? Yes, my sister is. She is()part time in a restaurant now, but she wants to change her job.AstudyingBworkingCeatingDplaying

单选题$str = "My name is Jack, and what is your name?";echo substr_count ($str,“name”);程序的输出结果为()。A1B2C3D4

单选题All of the client computers in your company network are Windows 2000 portable computers. A user named Maria stores Sales files in her My Documents folder. She uses these files when she travels. Maria informs you that when she takes her portable computer to trade shows, she can access some of the Sales files but not all of them. When her portable computer is connected to the network at the office, she can access all of the files. You need to enable Maria to access all of the files in her My Documents folder when she is working remotely. What should you do?()A Allow Maria full control permissions on the %systemroot%/documents and settings/Maria/MyDocuments folderB Allow Maria full control permissions on the %systemroot%/documents and settings/all  users/My Documents folderC Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her offline files folder.D Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her local My Documents folder.

单选题All of the client computers in your company’s network are Windows 2000 portable computers. A usernamed Maria stores Sales files in her My Documents folder. She uses these files when she travels.  Mariainforms you that when she takes her portable computer to trade shows, she can access some of the Salesfiles but not all of them. When her portable computer is connected to the network at the office, she canaccess all of the files.You need to enable Maria to access all of the files in her My Documents folder when she is working remotely.  What should you do? ()A Allow Maria full control permissions on the %systemroot%/Documents and Settings/Maria/My      Documents folder. B Allow Maria full control permissions on the %systemroot%/ Documents and Settings/All Users/My Documents folder. C Configure Maria’s computer to automatically copy the entire contents of her network My Documents folder to her offline files folder. D Configure Maria’s computer to automatically copy the entire contents of her network My  Documents folder to her local My Documents folder.

单选题分析以下Michoacan Aztec语中的一些词以及英语翻译。no kali—my house nokalimes--my houses mokali—your house ikali—his house kalimes--houses如果表示friend的词是mahkwa,表示myfriends的词应该是()AnomahkwaBmahkwasCmomahkwamesDmomahkwaesEnomahkwames