问题 单项选择题

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

A.Ⅰ和Ⅱ

B.Ⅱ和Ⅲ

C.Ⅲ和Ⅳ

D.Ⅰ和Ⅳ

答案

参考答案:C

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

填空题
单项选择题

Scientists around the world are racing to learn how to rapidly diagnose, treat and stop the spread of a new, deadly disease. SARS — Severe Acute Respiratory Syndrome — was (1) for the first time in February 2003 in Hanoi, (2) since then has infected more than 1,600 people in 15 countries, killing 63. At this (3) , there are more questions than answers surrounding the disease.

Symptoms start (4) a fever over 100.4 degrees F, chills, headache or body (5) . Within a week, the patient has a dry cough, which might (6) to shortness of breath. In 10% to 200% of cases, patients require (7) ventilation to breathe. About 3.5% die from the disease. Symptoms (8) begin in two to seven days, but some reports suggest it (9) take as long as 10 days. Scientists are close to (10) a lab test to diagnose SARS. In the meantime, it is diagnosed by its symptoms. There is no evidence (11) antibiotics or anti-viral medicines help, (12) doctors can offer only supportive care. Patients with SARS are kept in isolation to reduce the risk of (13) . Scientists aren’t sure yet, but some researchers think it’s a (14) discovered coronavirus, the family of viruses that cause some common colds.

Most cases appear to have been passed (15) droplets expelled when infected patients cough or sneeze. Family members of infected people and medical workers who care for them have been most likely to (16) the illness. But recent developments in Hong Kong suggest that the (17) might spread through air, or that the virus might (18) for two to three hours on doorknobs or other (19) Health experts say it is (20) , though, that sharing an elevator briefly with an infected person would be enough to pass the virus.

2()

A.but

B.and

C.or

D.yet