问题 单项选择题

下列有关设置函数参数值的描述中,正确的是( )

A.设置了默认值的参数右边允许出现没有指定默认值的参数
B.参数默认值的设置顺序从参数表的左端开始
C.参数默认值要设置在定义语句中,不能设置在声明语句中
D.参数默认值可以是数值也可以是表达式

答案

参考答案:D

解析: 本题主要考查的知识点为默认参数。
[要点透析] 如果一个函数中有多个参数,则默认参数应从右至左逐个定义,A、B错误;参数默认值可以设置在声明语句中,如在函数原型中指定默认参数,C错误。

单项选择题
阅读理解

根据短文内容,从短文后的选项中选出能填入空白处的最佳选项。选项中有两项为多余选项。

                                                                   1______

     Home can be a great place for children to study. It's important to provide a workspace of their own where

they can read books or just write a letter to their friends.

     ● Location (位置) 

     2______ Kitchen and dining room are not so well suite for regular study. since books and pens get in the

way of the day-to-day uses of those areas. Set up a place where a child can settle in and leave papers and pens

at band without having to clear everything away each night. For a child that likes being alone, set aside a corner

of his bedroom, but keep it separate from things like games, music and other hobbies not related to studying.

     ● Keeping Things in Order

     Parents should encourage their child to spread out, but to leave it neat and orderly when he isn't using his

workspace. Ownership is very important for self-respect 3______ The workplace should be personal, but not

another part of the playroom.

     ● 4______ 

     Encourage the whole family to help build a supportive environment that children need for success in school.

Give them a good example of how to deal with problems, how to manage time and get things done in the right

way. 5______ Study will be more enjoyable and effective when supported by the whole family.