针对程序段:IP(A||B||C.THEN W=W/X,对于(A,B,C.的取值

练习题库2022-08-02  43

问题 针对程序段:IP(A||B||C.THEN W=W/X,对于(A,B,C.的取值,( )测试用例能够满足MCDC(修正条件逻辑判定)的要求。A.(F,T,T)(T,F,T)(T,F,F.(T,T,F.B.(T,F,F.(T,T,F.(F,T,T)(F,F,F.C.(T,F,F.(T,T,F.(F,T,T)(F,F,T)D.(T,F,F.(F,T,F.(F,F,T)(F,F,F.

选项 A.(F,T,T)(T,F,T)(T,F,F.(T,T,F.
B.(T,F,F.(T,T,F.(F,T,T)(F,F,F.
C.(T,F,F.(T,T,F.(F,T,T)(F,F,T)
D.(T,F,F.(F,T,F.(F,F,T)(F,F,F.

答案 D

解析 本题考查MCDC用例设计,其要满足条件与判定覆盖,并且需要确定每个条件能够影响到包含的判定的结果。
转载请注明原文地址:https://tihaiku.com/congyezige/2415944.html

最新回复(0)