下列关于SEEK命令和LOCATE命令的叙述,正确的是()。

A:SEEK命令可以一次找到全部记录,LOCATE命令一次只能找到一条记录 B:SEEK命令必须打开索引文件才能使用,LOCATE命令不需要索引文件 C:SEEK命令只能查找字符串,LOCATE命令可以查找任何字段 D:SEEK命令可以和CONTINUE连用,LOCATE命令则不能 E:两者都是查询命令

设数据库与按工资索引的文件已经打开,用SEEK命令把记录指针指向工资为900元的记录之后,接着要使指针指向下一个相同工资的记录,应使用命令( )。

A:DISPLAY NEXT 1 B:SKIP C:CONTINUE D:SEEK 900

若文件是Random AccessFile的实例file,并且其基本文件长度大于0,则下面的语句实现的功能是 ( )
file.seek(file.length( )-1);

A:将文件指针指向文件的第一个字符后面 B:将文件指针指向文件的最后一个字符前面 C:将文件指针指向文件的最后一个字符后面 D:会导致seek()方法抛出一个IOException

在Visual FoxPro中,SEEK和LOCATE命令都可以用于查找记录,但在使用上有所不同,下面表述正确的是

A:SEEK命令可以一次查找到全部记录,LOCATE命令只能找到一条记录 B:SEEK命令只能查找字符串,LOCATE命令可以查找任何类型字段 C:SEEK命令需要打开相应索引文件才能使用,LOCATE命令不需要索引文件 D:SEEK命令可以和COUTINUE命令联合使用,而LOCATE命令不可以

若文件是Random AccessFile的实例file,并且其基本文件长度大于0,则下面的语句实现的功能是 ( )file.seek(file.length( )-1);

A:将文件指针指向文件的第一个字符后面 B:将文件指针指向文件的最后一个字符前面 C:将文件指针指向文件的最后一个字符后面 D:会导致seek()方法抛出一个IOException

(C)

When it comes to friends, I desire those who will share my happiness, who possess wings of their own and who will fly with me. I seek friends whose qualities illuminate me and train me up for love. It is for these people that I reserve the glowing hours, too good not to share.
When I was in the eighth grade, I had a friend. We were shy and "too serious" about our studies when it was becoming fashionable with our classmates to learn acceptable social behaviors. We said little at school, but she would come to my house and we would Sit down with pencils and paper, and one of us would say: "Let’s start with a train whistle today." We would sit quietly together and write separate poems or stories that grew out of a train whistle. Then we would read them aloud. At the end of that school year, we, too, were changing into social creatures and the stories and poems stopped.
When I lived for a time in London, I had a friend, he was in despair and I was in despair. But our friendship was based on the idea in each of us that we would be sorry later if we did not explore this great city because we had felt bad at the time. We met every Sunday for five weeks and found many excellent things. We walked until our despairs disappeared and then we parted. We gave London to each other.
For almost four years I have had remarkable friend whose imagination illuminates mine. We write long letters in which we often discover our strangest selves. Each of us appears, sometimes in a funny way, in the other’s dreams. She and I agree that, at certain times, we seem to be parts of the same mind. In my most interesting moments, I often think: "Yes, I must tell..."We have never met.
It is such comforting companions I wish to keep. One bright hour with their kind is worth more to me than the lifetime services of a psychologist (心理学家), who will only fill up the healing silence necessary to those darkest moments in which I would rather be my own best friend.

In the darkest moments, the author would prefer to ().

A:seek professional help B:be left alone C:stay with her best friend D:break the silence

(C)

When it comes to friends, I desire those who will share my happiness, who possess wings of their own and who will fly with me. I seek friends whose qualities illuminate me and train me up for love. It is for these people that I reserve the glowing hours, too good not to share.
When I was in the eighth grade, I had a friend. We were shy and "too serious" about our studies when it was becoming fashionable with our classmates to learn acceptable social behaviors. We said little at school, but she would come to my house and we would Sit down with pencils and paper, and one of us would say: "Let’s start with a train whistle today." We would sit quietly together and write separate poems or stories that grew out of a train whistle. Then we would read them aloud. At the end of that school year, we, too, were changing into social creatures and the stories and poems stopped.
When I lived for a time in London, I had a friend, he was in despair and I was in despair. But our friendship was based on the idea in each of us that we would be sorry later if we did not explore this great city because we had felt bad at the time. We met every Sunday for five weeks and found many excellent things. We walked until our despairs disappeared and then we parted. We gave London to each other.
For almost four years I have had remarkable friend whose imagination illuminates mine. We write long letters in which we often discover our strangest selves. Each of us appears, sometimes in a funny way, in the other’s dreams. She and I agree that, at certain times, we seem to be parts of the same mind. In my most interesting moments, I often think: "Yes, I must tell..."We have never met.
It is such comforting companions I wish to keep. One bright hour with their kind is worth more to me than the lifetime services of a psychologist (心理学家), who will only fill up the healing silence necessary to those darkest moments in which I would rather be my own best friend.

In the darkest moments, the author would prefer to ().

A:seek professional help B:be left alone C:stay with her best friend D:break the silence

微信扫码获取答案解析
下载APP查看答案解析