问题 单项选择题

某软件开发公司承接了一个语音和模式识别方面的嵌入式应用软件的开发工作。该公司的架构师决定采用成熟的架构风格指导整个软件的设计,以下______架构风格,最适合该嵌入式应用软件。

A.事件驱动
B.管道/过滤器
C.黑板结构
D.分层结构

答案

参考答案:C

解析: 知识库架构风格采用两种不同的构件:中央数据结构构件说明当前状态,独立构件在中央数据存储上执行,中央数据构件与独立的外部构件间的相互作用是系统中的主要问题。知识库模式有两种不同的控制策略:如果输入流触发进程执行的选择,则为基于传统数据库型的知识库模式;如果中央数据结构的当前状态触发进程执行的选择,则为基于黑板结构的知识库模式。黑板结构主要由知识源、黑板数据结构和控制等3部分组成。黑板结构架构风格的典型应用是信号处理领域,例如语音和模式识别。
事件驱动架构风格的基本思想是,构件并不直接调用过程,而是触发一个或多个事件。系统中的其他构件可以注册相关的事件,触发一个事件时,系统会自动调用注册了该事件的构件过程,即触发事件会导致另一构件中过程的调用。
在管道/过滤器架构风格中,每个构件(即过滤器)都有一组输入/输出,构件读取输入的数据流,经过内部处理后,产生输出数据流,该过程主要完成输入流的变换及增量计算。
分层结构架构风格采用层次化的组织方式,每一层都是为上一层提供服务,并使用下一层提供的功能。层次模式中的每一层最多只影响两层,只要给相邻层提供相同的接口,就允许每层用不同的方法实现,可以充分支持软件复用。分层模式的典型应用是分层通信协议,例如ISO/OSI参考模型、TCP/IP协议族等。

填空题
完形填空

III、完型填空(共30分,每小题1.5分)

阅读短文,根据内容,从第36-55小题所给的A、B、C、D四个选项中,选择最佳选项。

Sam backed his car out of the garage and drove two blocks to the highway. It 36 from the suburbs into Central City. Immediately he joined the steam of early-morning 37 that was flowing towards town. As he drove, he 38 Leon Poole. Poole was an odd man, clever in some ways, very stupid in 39. Poole had been a respectable 40 in a town near Central City. He had arranged with another man to 41 the bank at a time when an unusually large amount of cash was being held there. The other man had walked into the bank, waved a 42 at Poole, who was on duty, and taken the 43 . Only three men had known when the money would be there, so it was 44 that someone inside the bank must have 45 the robbery. Sam, the detective in 46 of the case, questioned Poole and the others, and released them, but had them all 47 closely. Two days later Poole, thinking he was 48 under suspicion(怀疑), arranged a meeting with the actual robber, who was a known criminal. The 49 arrested the robber and got a confession(坦白) from him. He 50 Poole as the man who had planned the whole thing.

The three officers who went to 51 the fat, soft, bank clerk didn’t expect trouble. 52 Leon Poole turned out to have a gun, and 53 it when they knocked at his door. His 54 hit one of the officers in the arm. 55 they had gone in after him, shooting.

36.A. led B. escaped      C. jumped      D. suffered

37.A. airline   B. traffic C. exercise      D. train

38.A. dealt with     B. talked with C. thought of  D. met with

39.A. rest       B. mind   C. action D. others

40.A. salesman       B. shop assistant     C. bank clerk  D. sales manager

41.A. defend   B. protect       C. rob     D. damaged

42.A. pole      B. finger C. stick   D. gun

43.A. money   B. interest       C. counter      D. car

44.A. doubtful       B.obvious       C. uncertain    D. important

45.A. planned B. prevented   C. hidden       D. blamed

46.A. place     B. possession  C. charge D. search

47.A. followed       B. watched     C. stood  D. communicated

48.A. no longer      B. on earth     C. once again  D. all the time

49.A. clerk     B. army   C. police D. firefighter

50.A. owned   B. named C. directed      D. grasped

51.A. visit      B. frighten      C. invite  D. arrest

52.A. Since    B. Meanwhile C. But     D. Although

53.A. threw    B. fired   C. stole   D. hid

54.A. sound    B. strength      C. anger  D. bullet

55.A. Basically      B. Naturally    C. Namely      D. Comfortably