![](https://lstatic.shangxueba.com/sxbzda/h5/images/m_q_title.png)
针对下列程序段,对于(A,B)的取值,以下哪个选项 _______ 测试用例组合能够满足条件覆盖的要求。 if ((A-10)=20 and (B+20) >= 10) then C=0 if ((A- 30) < 10 and (B- 30) <= 0) then b="30" (1) a="50" ; (2) (3) (4) . a. b. c. (1)(4) d.>
B、B
C、C
D、D
![](https://lstatic.shangxueba.com/sxbzda/h5/images/tips_org.png)
B、B
C、C
D、D
第1题
A.(2,30,1)
B.(-20,0,30)
C.(30,20,30)
D.(2,20,3)
第2题
①A=50 B=-10
②A=40 B=40
③A=30 B=10
④A=30 B=30
A.①②
B.③④
C.①④
D.②④
第3题
B.A=40B=40
C.A=30B=10
D.A=30B=30
第4题
A) (30,15),(40,10)
B) (3,0),(30,30)
C) (5,25),(10,20)
D) (20,10),(1,100)
A.
B.
C.
D.
第5题
while ( MaxNum-- > 0 )
{
if ( 10 == Type )
x = y * 2;
else
if ( 100 == Type )
x = y + 10;
else
x = y - 20;
}
(62)A.5 B. 4 C. 3 D. 2
第6题
int MathMine( int x )
{
int m = 0;
int i;
for( i = x-1; i <= x + 1; i++ )
{
if ( i < 0 ) continue;
if ( i >31 ) break;
if ( sta[i] == -1 ) m++;
}
return m;
}
(56)
A.3
B.4
C.5
D.6
第7题
int MathMine(int x)
{
int m=0;
int i;
for(i=x-1; i<=x+1; i++)
{
if (i<0) continue;
if (i>31) break;
if (sta[i]=-1) m++;
}
return m;
}
A.3
B.4
C.5
D.6
A.
B.
C.
D.
第8题
Whjle(MaxNum-->0)
{
If(10==Type)x=y * 2;
Else if(100==Type)x=y+20;
}
A) 5
B) 4
C) 3
D) 2
A.
B.
C.
D.
第9题
Switch(value)
{
Case 0:
ther=30;
Break;
Case 1:
ther=50;
Break;
Case 2:
ther=300;
Case 3:
ther=other/value;
Break;
Default;
ther=other*value;
}
A) 2
B) 3
C) 4
D) 5
A.
B.
C.
D.
第10题
Switch(value)
{
Case 0:
0ther=30;
Break;
Case 1:
ther=50;
Break;
Case 2:
ther=300;
Case 3:
ther=other/value;
Break;
Default:
ther=other * value;
}
A) 2
B) 3
C) 4
D) 5
A.
B.
C.
D.
为了保护您的账号安全,请在“上学吧”公众号进行验证,点击“官网服务”-“账号验证”后输入验证码“”完成验证,验证成功后方可继续查看答案!