问题 单项选择题

已定义以下函数:
fun (char* p2, char* p1)
{ while ((*p2=*p1) != ’\0’) {p1++;p2++;} }

A.将p1所指字符串复制到p2所指内存空间

B.将p1所指字符串的地址赋给指针p2

C.对p1和p2两个指针所指字符串进行比较

D.检查p1和p2两个指针所指字符串中是否有’\0’

答案

参考答案:A

解析: fun()函数中声明了两个字符串指针作为形参,在其函数体中用了一个 while循环,首先while括号内表达式*p2=*p1是将 p1所指的内容赋值到p2所指的存储空间中,然后在判断是否为’\0’,表达式的值为真时,执行循环体,指针p1和p2分别下移一位,当p1指向字符,’\0’,时,表达式的值为假,循环结束,故此函数的功能是将 p1所指字符串复制到p2所指内存空间中。所以,4个选项中选项A符合题意。

完形填空

Like all vertebrates(脊椎动物), fish have sense organs that tell them what is happening within their environment. The organs enable them to see, hear, smell, taste and touch.

A fish’s eyes differ from those of land vertebrates in several ways. For example, most fish can see to the right and to the left at the same time for the fact that a fish has no neck and so cannot turn its head. Fish also have no eyelids. For land vertebrates, eyelids(眼睑)help moisten(使湿润) their eyes and protect them from sunlight. A fish’s eyes are kept moist by the flow of water over them. They do not need to be shielded from sunlight because it is seldom extremely direct and bright underwater. Some fish have unusual adaptations of the eye. For example, a flatfish has two eyes on the same side of the head. A flatfish spends most of the time lying on its side on the ocean floor and so needs eyes only on the side that faces upward. The eyes of certain deep-sea fish are at the ends of short structures that stick out from the head. These structures can be raised upward, allowing the fish to see overhead as well as to the side and to the front.

A few kinds of fishes are born blind. They include certain species of catfish that live in total darkness in the waters of caves. Some of these fishes have eyes but no vision(视觉). Others lack eyes completely.

小题1:Why can’t a fish turn its head? (no more than 6 words)

_____________________________________________________________________

小题2:What can prevent land vertebrates’ eyes from sunlight? (no more than 3 words)

_____________________________________________________________________

小题3:Why are the flatfish’s eyes different from other fishes’? (no more than 14 words)

_____________________________________________________________________

小题4:What is the passage mainly about? (no more than 6 words)

__________________________________________________________________

综合题