问题 单项选择题

程序的白箱测试又称结构测试,下述哪两个之间有包含关系 Ⅰ.语句测试 Ⅱ.分支测试 Ⅲ.循环测试 Ⅳ.路径测试

A.Ⅰ和Ⅱ

B.Ⅱ和Ⅲ

C.Ⅲ和Ⅳ

D.Ⅰ和Ⅳ

答案

参考答案:C

解析:[命题目的] 本题考查软件测试中有关路径测试的概念。 [解题要点] 软件测试中的白箱测试是在黑箱测试完成后所进行的补充测试,也是对软件内部结构的测试,它一般划分为3方面的测试内容,即语句测试,要求对程序中每个语句最少检查一次;分支测试,即要求对程序中每个分支路径最少检查一次;路径测试,即要求程序中每条路径至少检查一次。测试方法认为路径测试是整个测试的基石,其目标是通过检验足够多的程序元素的路径来证实程序元素的实际结构同所期望的程序元素的结构是一致的。循环是一种复杂的控制结构,它同路径覆盖有关,所以循环测试是路径测试的一部分,即路径测试包含着循环测试。 [考点链接] 黑箱测试、路径测试。

多项选择题
阅读理解

阅读理解。

    Honesty comes in many forms. First there's self-honesty. Is what people see the real

article or do you appear through smoke and mirrors? I find that if I try to be something

I'm not, I feel unsure of myself and take out a part from my PBA (personal bank account ).

I love how singer Judy Garland put it, "Always be a first-class version of yourself,

instead of a second-class version of somebody else."

   Then there's honesty in our actions. Are you honest at school, with your parents, and

with your boss? If you've ever been dishonest, I think we all have, try being honest, and

notice how whole it makes you feel. Remember, you can't do wrong and feel right. This story

by Jeff is a good example of that: 

   In my second year of study, there were three kids in my math class who didn't do well.

I was really good at it. I would charge them three dollars for each test that I helped

them pass. I'd write on a little piece of paper all the right answers, and hand them off.

   At first I felt like I was making money, kind of a nice job. I wasn't thinking about

how it could hurt all of us. After a while I realized I shouldn't do that anymore, because

I wasn't really helping them. They weren't learning anything, and it would only get harder

down the road. Cheating certainly wasn't helping me.

   It takes courage to be honest when people all around you are getting away with cheating

on tests, lying to their parents, and stealing at work. But, remember, every act of

honesty is a deposit into your PBA and will build strength.

1. Which of the following can best explain Judy Garland's words? [ ]

A. Be your true self rather than follow others.

B. Don't copy others or you can't be the first class.

C. Make efforts to be the first instead of the second.

D. Don't learn from others unless they're excellent.

2. What does the author expect to show by Jeff's story? [ ]

A. honesty can be of great help.

B. A bad thing can be turned into a good one.

C. Helping others cheat can do good to nobody.

D. One should realize the wrong in his bad deeds.

3. In the last paragraph the author mainly wants to express _____. [ ]

A. one must be brave to be honest

B. it's difficult to be honest when others are not

C. one should be honest when making a deposit

D. honesty in one's actions can help him in the future