问题 单项选择题

在C语言中,函数返回值的类型最终取决于( )。

A) 函数定义时在函数首部所说明的函数类型
B) return语句中表达式值的类型
C) 调用函数时主调函数所传递的实参类型
D) 函数定义时形参的类型

答案

参考答案:A

解析: 本题考查的知识点是函数返回类型。有返回值函数的定义形式为:
<返回类型><函数名>(<参数列表>)
{
<语句序列>
}
其中,<返回类型>决定了最终函数返回值的类型。故本题应该选择A)。

选择题
完形填空
Every summer, hundreds of thousands of students travel to other countries looking for work and adventure. Most of the opportunities are in   1  work. The pay is usually poor, but most people work   2  for the thrill of travel. You can pick grapes in France, entertain kids on American summer camps, and, of course, there are always   3  in hotels and restaurants.
But it is not as easy as it used to be to find work. Unless you speak the language of the country well, there will be very   4  openings. For example, when you arrive to wash dishes in a restaurant in Paris, the owner will   5  you to speak French. British students only have a language   6  for jobs in the USA and Australia.
Not every one   7  the experience. Sarah James was once responsible for forty American children in Europe. During the   8 , one child lost his passport; four children were lost in Madrid for a whole day; the whole group was thrown out of one hotel because of the   they made. Sarah says, “It really was a 24-hour-a-day job since the kids never   10 ! And the pay was awful. It wasn’t worth it.”
The trouble is that   11  expect to have an easy time of it. After all, they see it as a  12 . In practice, though, they have to work hard. At the same time, all vacation work is casual work, and jobs are   13  only when the hotel, the restaurant, or the campsite is busy. But students have few employment   14 . As soon as the holiday season finishes, companies will get rid of them. And if their employer doesn’t like them, they’ll be   15 , too.
小题1:
A.seasonalB.mentalC.professionalD.formal
小题2:
A.hardB.voluntarilyC.abroadD.continuously
小题3:
A.jobsB.visitorsC.customersD.parties
小题4:
A.goodB.newC.attractiveD.few
小题5:
A.teachB.expectC.allowD.forbid
小题6:
A.programB.lessonC.advantageD.exam
小题7:
A.hasB.enjoysC.forgetsD.remembers
小题8:
A.tripB.flightC.discussionD.ceremony
小题9:
A.promiseB.progressC.complaintD.noise
小题10:
A.criedB.studiedC.sleptD.helped
小题11:
A.childrenB.studentsC.employersD.parents
小题12:
A.jobB.lessonC.holidayD.shame
小题13:
A.countlessB.availableC.interestingD.boring
小题14:
A.experiencesB.rulesC.plansD.rights
小题15:
A.dismissed B.chargedC.finedD.punished