问题 单项选择题

在C语言中,变量的隐含存储类别是

A) auto
B) static
C) extern
D) 无存储类别

答案

参考答案:A

解析: auto变量:无static声明的局部变量。用auto作存储类别的声明时,可以不写auto,存储类别隐含确定为auto(自动存储类别),是动态存储方式。大多数变量是自动变量。用static声明的局部变量是静态局部变量。函数调用结束后静态局部变量占据的内存存储单元空间不释放,局部变量保留原值,下次调用时可以继续使用该值。用extern声明外部变量,外部变量即全局变量,可以用extern声明来改变全局变量的作用域,实际上,关键字“auto”可以省略,auto不写则隐含确定为“自动存储类别”,属于动态存储方式。

完形填空

[1] Dogs are social animals and without proper training, they will behave like wild animals. They will spoil your house, destroy your belongings, bark excessively, fight other dogs and even bite you. Nearly all behavior problems are perfectly normal dog activities that occur at the wrong time or place or are directed at the wrong thing. The key to preventing or treating behavior problems is learning to teach the dog to redirect its normal behavior to outlets(发泄) that are acceptable in the home environment.

[2] One of the best things you can do for your dog and yourself is to obedience train (驯服) it. Obedience training doesn't solve all behavior problems, but it is the foundation for solving just about any problem. Training opens up a line of communication between you and your dog. Effective communication is necessary to instruct your dog about what you want it to do.

[3] Training is also an easy way to establish the social rank order. When your dog obeys a simple request of “come here, sit,” it is showing obedience and respect for you. It is not necessary to establish yourself as top dog or leader of the dog pack (群) by using extreme steps. You can

teach your dog its subordinate (从属的) role by teaching it to show obedience to you. Most dogs love performing tricks for you to pleasantly accept that you are in charge.

[4] Training should be fun and rewarding for you and your dog. It can enrich your relationship and make living together more enjoyable. A well-trained dog is more confident and can more safely be allowed a greater amount of freedom than ______

小题1:What’s the main idea of the passage (no more than 8 words)

____________________________________________________

小题2:Complete the following statement with words from Paragraph 2 . (no more than 3 words)

_____________________ is essential to the dogs though it can't solve all behavior problems.

小题3:Fill in the blanks in paragraph 4 with proper words (no more than 4 words)

____________________________________________________

小题4:Point out at least 4 benefits of training dogs in Para.4 . (no more than 4 words)

____________________________________________________

小题5:What does the word “it ”(Line 1 , Paragraph 4) refer to ? (no more than 2 words) ?

____________________________________________________

判断题