【简答题】听力原文:What kind of vacation do you enjoy most? Maybe you are thinking about spas, camping, a romantic night on the beach, or you prefer those extreme sports like bungee jumping. Whatever forms of vacat...
【单选题】//下面关于异步机制的代码,执行结果为 void myTask(){ print("this is my task"); } void main() { print("main start"); new Future((){ print("this is my task"); }); new Future.microtask((){ print("this is microtask"); ...
A.
main start this is microtask this is my task main stop
B.
main start main stop this is microtask this is my task
C.
main start this is my task this is microtask main stop
D.
main start main stop this is my task this is microtask
【单选题】//下面关于异步延迟的代码,执行结果为 void main() { print("main start"); new Future.delayed(new Duration(seconds:1),(){ print('task 1'); }); new Future((){ print("task 2"); }); print("main stop"); }
A.
main start task 2 task 1 main end
B.
main start main end task 2 task 1
C.
main start main end task 1 task 2
D.
main start task 1 task 2 main end
【单选题】以下关于白盒测试和黑盒测试的理解 , 正确是 ( )
A.
白盒测试通过对程序内部结构的分析、 检测来寻找问题
B.
白盒测试通过一些表征性的现象、 事件、 标志来判断内部的运行状态
C.
单元测试可采用白盒测试方法,集成测试则采用黑盒测试方法
【单选题】以下关于白盒测试和黑盒测试的理解,正确的是()。
A.
白盒测试通过对程序内部结构的分析、检测来寻找问题
B.
白盒测试通过一些表征性的现象、事件、标志来判断内部的运行状态
C.
单元测试可应用白盒测试方法,集成测试则采用黑盒测试方法
【单选题】//下面关于Future的代码,执行结果为 void main() { print("main start"); new Future((){ print("async task"); }); new Future.sync((){ print("sync task"); }); print("main stop"); }
A.
main start main stop sync task async task
B.
main start sync task main stop async task
C.
main start sync task async task main stop
D.
main start async task sync task main stop