题目内容

一个简化的高铁售票系统的规格说明如下: ●乘客未使用系统前系统处于“等待”状态,屏幕显示沿线各车站的站名。 ●乘客选择了到达站并按下[购票]键之后,系统进入“待付款”状态,屏幕显示票价,等待乘客付款。 ●如果乘客在限时之内付款,系统进入“出票”状态,打印并吐出相应车票,同时找回余额,然后系统重置回到“等待”状态。 ●如果乘客在限时之内未付款之前按下[取消]键取消购票,系统进入“等待”状态。 ●如果乘客在限时之内没有付款,系统进入“超时”状态,显示“超时”“取消购票”等信息,然后系统重置回到“等待”状态。 ●如果乘客在拿到车票后要求退票,在“等待”状态下按下[退票]键,系统进入“查证”状态。 ●如果查证成功,系统进入“退票”状态。回收车票,退回票款,然后系统重置回到“等待”状态;如果查证不成功,系统进入“警告”状态,屏幕显示“车票无效”信息,然后系统重置回到“等待”状态。 计算该状态转换图的圈复杂度并给出基本测试路径。

查看答案
更多问题

Amongst the most popular books written today are those which are usually classified as science fiction. Hundreds of titles are (1) every year and are read by all kinds of people. (2) , some of the most successful films of recent years have been (3) on science fiction stories.It is often thought that science fiction is a fairly new (4) in literature, but its ancestors can be (5) in books written hundreds of years ago. These books were often concerned (6) the presentation of some form of ideal society, a (7) which is still often found in modern stories.Most of the classics of science fiction, (8) , have been written within the last one hundred years. Books by writers such as Jules Verne and H. G. Wells, to (9) just two well-known authors, have been translated into many languages.Modern science fiction writers don’t write about men from Mars or space adventure stories. They are more interested in (10) the results of technical developments on society and the human mind; or in (11) future worlds which are a reflection of the world which we live in now. (12) this, their writing has obvious (13) implications.In an age where scientific fact frequently (14) science fiction, the writers may find it difficult to keep (15) scientific advances. Those who are (16) clear-sighted to see the way we are going, however, may provide a valuable (17) on how to deal with the problems which society will (18) face as it tries to (19) its new technology and come to terms with a continually (20) view of the world. 19()

A. realize
B. master
C. control
D. accomplish

有红、蓝、黄、白、紫五种颜色的皮球,分别装在五个盒子里。甲、乙、丙、丁、戊五人猜测盒子里皮球的颜色。甲:第二盒是紫的,第三盒是黄的。乙:第二盒是蓝的,第四盒是红的。丙:第一盒是红的,第五盒是白的。丁:第三盒是蓝的,第四盒是白的。戊:第二盒是黄的,第五盒是紫的。猜完之后打开盒子发现,每人都只猜对了一种,并且每盒都有一个人猜对。 由此可以推测( )。

A. 第一个盒子内的皮球是蓝色的
B. 第三个盒子内的皮球不是黄色的
C. 第四个盒子内的皮球是白色的
D. 第五个盒子内的皮球是红色的

试述我国《电子签名法》的主要特点。

继续犯:又称持续犯,指犯罪行为与该行为引起的不法状态在一定时间内处于继续状态的犯罪。 根据上述定义,下列行为属于继续犯的是( )。

A. 有夫之妇张某与孙某存在不正当男女关系,被张某丈夫发现后,张某与孙某断绝了关系,孙某怀恨在心,两天之内先后将张某及其丈夫杀害
B. 李某举报某派出所所长王某徇私舞弊,王某为报复李某,借执法之名,将李某非法拘禁3日
C. 张某非法行医3年多,导致1人死亡,2人身体残疾
D. 王某在走私毒品的过程中,遇到边防人员的检查,王某以暴力方法抗拒检查

答案查题题库