问题 单项选择题

设函数fun的定义形式为: void fun(char ch,float x) { …… } 则以下对函数fun的调用语句中,正确的是【 】。

A.fun("abc",3.0);

B.t=fun('D',16.5);

C.fun('65',2.8);

D.fun(32,32);

答案

参考答案:D

解析:对有参函数进行调用时,实参与形参的类型应相同或赋值兼容。由于整型数据与字符型数据可以通用,所以实参"32"与形参"ch"的类型是一致的:又因为整型变量给浮点型变量赋值是相兼容的,所以选项D是正确的调用。

完形填空
If you are writing or studying, it makes much difference where the light comes from. People     use   46  and pens every day. They have to be very careful about the way of the light because the light shines on their work.
Every  47   gets its light either from daylight   48   the window   49   from the lamps or electricity,   50  no matter what kind of light it is, the way it shines towards our books or work is very important to the eyes.
Take a book and sit with your   51   toward the window, and try to read. Your shadow(影子) falls all over the page and makes it   52   for your eyes as if you were in a   53   room.
Now turn around and face the window. The page is   54   shadow again, while the bright light is in your eyes.
Try sitting with your   55  side toward the window. This is very good for   56   , but if you were writing, the shadow   57   fall across the page and bother you  58  .
There is another way – sit  59   your left side to the window. Now everything is perfect for writing as well.
Whatever kind of light is in the room, the rule about the right way to sit is   60   the same.
小题1:
A.eyesB.headsC.booksD.hands
小题2:
A.manB.womanC.houseD.animals
小题3:
A.fromB.throughC.intoD.inside
小题4:
A.andB.thenC.asD.or
小题5:
A.butB.untilC.ifD.when
小题6:
A.sideB.backC.bodyD.front
小题7:
A.good B.badC.usefulD.clear
小题8:
A.brightB.cleanC.dirtyD.dark
小题9:
A.inB.intoC.onD.to
小题10:
A.frontB.backC.leftD.right
小题11:
A.speakingB.readingC.writingD.studying
小题12:
A.can B.mayC.wouldD.will
小题13:
A.fewB.a fewC.littleD.a little
小题14:
A.by B.withC.againstD.near
小题15:
A.onlyB.neverC.not oftenD.always
多项选择题