问题 问答题

下图是结构化程序设计方法的设计过程的流程图,请按要求回答问题。


使用基本路径测试方法确定该状态图的测试路径。

答案

参考答案:由状态图可以看出:程序中有两个判定节点,故该程序的环路复杂度V(G)=3,所以可以确定3条独立的测试路径,即:
Path1:S0—S1—S2—S5—S7—S8
Path2:SO—S3—S4—S5—S7—S8
Path3:S0—S1—S2—S5—S7—S11—S2—S5—S7—S8。

选择题
改错题

短文改错 (共10小题; 每小题1.5分, 满分15分)

此题要求改正所给短文中的错误. 对标有题号的每一行作出判断:如无错误,在该行右边横线上画一个勾(√); 如有错误(每行只有一个错误),则按下列情况改正:

此行多一个词: 把多余的词用斜线(\)划掉, 在该行右边横线上写出该词, 并也用斜线划掉.

此行缺一个词: 在缺词处加一个漏字符号(^), 在该行右边横线上写该加的词.

此行错一个词: 在错的词下划一横线, 在该行右边横线上写出改正后的词.

注意: 原行没有错的不要改.

Behind my apartment, there is used to be a dirty and                

小题1: ______________

messy corner. Bits of plastic bags hanged on the trees.             

小题2: ______________

Broken bottles were left laying here and there. There was           

小题3:______________

a damaging car in the center. The whole corner gave off an          

小题4: ______________

unpleasant smell. One year ago, we decided to turn it in a             

小题5: ______________

beautiful park. since then, great changes have been taken place         

小题6:______________

in that corner. All the rubbish have been cleared away. Flowers        

小题7: ______________

and young trees have planted all over. Now birds come             

小题8: ______________

here to sing, children come here to play, and adults come here          

小题9:______________

to enjoy our peaceful life. It has taken on a new look.               

小题10:______________