|
修改库
snew.dbf:
Record#
学号
姓名
总分
Record#
学号
修改分
1
97303
罗宏伟
534.0
1
97178
-6.0
2
97178
杨小华
522.0
2
98201
-2.6
3
98201
李学刚
490.0
3
98310
4.0
4
98120
卢
兵
509.0
4
97303
-8.0
5
98310
任宏达
527.0
试写出下列程序的运行结果。
set talk off
sele 1
use stu
sele 2
use snew alias ms
index on
学号
to isnew
sele 1
set relation to
学号
into ms
repl all
总分
with
总分
+ms->
总分
go bott
disp
return
六、设计题
(
每小题
6
分,共
12
分
)
42.
根据下列程序段,试设计条件测试的覆盖点。
char a;
a=get char ();
if (a>=
′
0
′
&&a<=
′
9
′
)
print (
″这是一个数字字符。
\n
″
);
if (a>=
′
a
′
&&a<=
′
z
′
)
print (
″这是一个小写的英文字母。
\n
″
);
43.
某文件系统采用连续结构,文件
user
大小是
1234
字节,磁盘块的大小为
512
字节,该文件占用的第一个物理块的块号是
|