皮皮学,免费搜题
登录
搜题
【简答题】
测试计算下一天日期的函数 nextDate() 【任务描述】 1 .编制使用黑盒测试方法测试 nextDate() 函数的测试计划 2 .绘制使用白盒测试方法测试 nextDate() 函数的测试计划 3 .使用等价类划分法对函数 nextDate() 进行测试 4 .使用边界值分析法对函数 nextDate() 进行测试 5 .使用决策表法对函数 nextDate() 进行测试 【计算下一天日期】按钮的 Click 事件过程的代码 序号 程序代码 01 02 03 04 05 06 07 08 09 10 11 12 13 14 15 16 private void btnCal_Click(object sender, EventArgs e ) { string strDate; int monthStart,dayStart; int year, month, day; int monthLength, dayLength; strDate = dateTimePicker1.Text; monthStart = strDate.LastIndexOf('年') + 1; dayStart = strDate.LastIndexOf('月') + 1; monthLength = strDate.LastIndexOf('月') - monthStart; dayLength = strDate.LastIndexOf('日') - dayStart; year = int.Parse(strDate.Substring(0, 4)); month = int.Parse(strDate.Substring(monthStart, monthLength)); day = int.Parse(strDate.Substring(dayStart, dayLength)); lblNextDate.Text = nextDate(year, month, day); } 【测试提示】 ( 1 )函数 nextDate() 的等价类划分。 ( 2 )函数 nextDate() 的输入变量按照边界值取值方法取值。 ( 3 )建立函数 nextDate() 的决策表。 ( 4 )方法 nextDate() 的参考源代码。
拍照语音搜题,微信中搜索"皮皮学"使用
参考答案:
参考解析:
知识点:
.
..
皮皮学刷刷变学霸
举一反三
【单选题】有负载时变压器的主磁通是由()产生。
A.
一次绕组电流
B.
二次绕组电流
C.
一次绕组电流与二次绕组电流共同
D.
【单选题】I am wondering when Tom is going to ___ and get married.
A.
stress out
B.
run through
C.
meet up
D.
settle down
【单选题】I am wondering when Tom is going to _________ and get married.
A.
stress out
B.
save up
C.
meet up
D.
settle down
【单选题】I am wondering when Tom is going to _________ and get married.
A.
venture
B.
linger
C.
settle down
【单选题】由PowerPoint2010产生的( )类型的文件,可以在Windows环境下双击而直接放映。
A.
pptx
B.
ppsx
C.
potx
D.
ppax
【单选题】I am wondering when Tom is going to and get married.
A.
settle down
B.
for once
C.
run through
【简答题】I am wondering when Tom is going to () and get married.
【单选题】有负载时变压器的主磁通是由( )产生。
A.
一次绕组的电流I1
B.
二次绕组的电流I2
C.
一次绕组的电流I1与二次绕组的电流I2共同
【单选题】I am wondering when Tom is going to ___________ and get married.
A.
settle down
B.
ran through
C.
settle in
D.
run out
【单选题】有负载时变压器的主磁通是由________产生的。
A.
原边绕组的电流I1与副边绕组的电流I2共同
B.
原边绕组的电流I1
C.
副边绕组的电流I2
D.
B或C
相关题目: