2017年上半年软件设计师考试上午真题(参考答案)

如果您发现本试卷没有包含本套题的全部小题,请尝试在页面顶部本站内搜索框搜索相关题目,一般都能找到。
1

以下路由策略中,依据网络信息经常更新路由的是( )。

  • A.静态路由
  • B.洪泛式
  • C.随机路由
  • D.自适应路由
2

The beauty of software is in its function,in its internal structure,and in the way in which it is created by a team. To a user,a program with just the right features presented through an intuitive and( )interface is beautiful.To a software designer,an internal structure that is partitioned in a simple and intuitive manner,and that minimizes internal coupling is beautiful.To developers and managers ,a motivated team of developers making significant progress every week,and producing defect-free code,is beautiful.There is beauty on all these levels.

our world needs software--lots of software. Fifty years ago software was something that ran in a few big and expensive machines. Thirty years ago it was something that ran in most companies and industrial settings. Now there is software running in our cell phones,watches,appliances,automobiles,toys,and tools. And need for new and better software never( ).As our civilization grows and expands,as developing nations build their infrastructures,as developed nations strive to achieve ever greater efficiencies,the need for more and more Software( )to increase. It would be a great shame if,in all that software,there was no beauty.

We know that software can be ugly. We know that it can be hard to use,unreliable ,and carelessly structured. We know that there are software systems whose tangled and careless internal structures make them expensive and difficult to change. We know that there are software systems that present their features through an awkward and cumbersome interface. We know that there are software systems that crash and misbehave. These are( )systems. Unfortunately,as a profession,software developers tend to create more ugly systems than beautiful ones.

There is a secret that the best software developers know. Beauty is cheaper than ugliness. Beauty is faster than ugliness. A beautiful software system can be built and maintained in less time,and for less money ,than an ugly one. Novice software developers don't. understand this. They think that they have to do everything fast and quick. They think that beauty is( ) .No! By doing things fast and quick,they make messes that make the software stiff,and hard to understand,Beautiful systems e flexible and easy to understand. Building them and maintaining them is a joy. It is ugliness that is impractical.Ugliness will slow you down and make your software expensive and brittle. Beautiful systems cost the least build and maintain,and are delivered soonest.

  • A. Simple
  • B. Hard
  • C. Complex
  • D. duplicated
  • A.happens
  • B.exists
  • C.stops
  • D.starts
  • A. starts
  • B.continues
4

下面关于Linux目录的描述中,正确的是( )。

  • A.Linux只有一个根目录,用 " /root "表示
  • B. Linux中有多个根目录,用"/"加相应目录名称表示
  • C. Linux中只有一个根目录,用"/"表示
  • D. Linux 中有多个根目录,用相应目录名称表示
5

以下关于TCP/IP 协议栈中协议和层次的对应关系正确的是( )。

  • A.<img alt="" src="//img1.yqda.net/question-name/4c/6f873423931feff68dc3b3967f1dbc.png" />
  • B.<img alt="" src="//img1.yqda.net/question-name/4c/6f873423931feff68dc3b3967f1dbc.png" />
  • C.<img alt="" src="//img1.yqda.net/question-name/12/c354f9418f776f78ba464b64f03729.png" />
  • D.<img alt="" src="//img1.yqda.net/question-name/59/bd1adbbf8563ae3e061a23c60fe4e4.png" />
12

以下关于字符串的叙述中,正确的是( )。

  • A.包含任意个空格字符的字符串称为空串
  • B. 字符串不是线性数据结构
  • C. 字符串的长度是指串中所含字符的个数
  • D. 字符串的长度是指串中所含非空格字符的个数
15

若事务T1对数据 D1加了共享锁,事务 T2、T3分别对数据D2、D3加了排它锁,则事务T1对数据( );事务T2对数据( )。

  • A. D<sub>2</sub>、D<sub>3</sub>加排它锁都成功
  • B. D<sub>2</sub>、D<sub>3</sub>加共享锁都成功
  • C. D<sub>2</sub>加共享锁成功 ,D<sub>3</sub>加排它锁失败
  • D. D<sub>2</sub>、D<sub>3</sub>加排它锁和共享锁都失败
  • A. D<sub>1</sub>、D<sub>3</sub>加共享锁都失败
  • B. D<sub>1</sub>、D<sub>3</sub>加共享锁都成功
  • C. D<sub>1</sub>加共享锁成功 ,D<sub>3</sub>如排它锁失败
  • D. D<sub>1</sub>加排它锁成功 ,D<sub>3</sub>加共享锁失败
16

下图为一个表达式的语法树,该表达式的后缀形式为( )。

  • A. x 5 y+ * a / b -
  • B. x 5 y +a b* /-
  • C. -/ * x 5 y+ a b
  • D. x 5 * y+ a/b-
20

  • A.序列图
  • B.状态图
  • C.通信图
  • D.活动图
  • A.类
  • B.对象
  • C.流名称
  • D.消息
  • A.类
  • B.对象
21

在面向对象方法中,多态指的是( )。

  • A.客户类无需知道所调用方法的特定子类的实现
  • B. 对象动态地修改类
  • C.一个对象对应多张数据库表
  • D. 子类只能够覆盖父类中非抽象的方法
22

下图所示为观察者(Obserrver)模式的抽象示意图,其中( )知道其观察者,可以有任何多个观察者观察同一个目标;提供住处和删除观察者对象的接口。此模式体现的最主要的特征是( )。

  • A.Subject
  • B.Observer
  • C.ConcreteSubject
  • D.ConcreteObserver
  • A.类应该对扩展开放,对修改关闭
  • B. 使所要交互的对象尽量松耦合
  • C. 组合优先于继承使用
  • D. 仅与直接关联类交互
27

在设计软件的模块结构时,( )不能改进设计质量。

  • A.尽量减少高扇出结构
  • B.模块的大小适中
  • C.将具有相似功能的模块合并
  • D.完善模块的功能
28

以下关于极限编程(XP) 中结对编程的叙述中,不正确的是( )。

  • A. 支持共同代码拥有和共同对系统负责
  • B. 承担了非正式的代码审查过程
  • C. 代码质量更高
  • D. 编码速度更快
29

以下关于C/S (客户机/服务器)体系结构的优点的叙述中,不正确的是( )。

  • A.允许合理地划分三层的功能,使之在逻辑上保持相对独立性
  • B.允许各层灵活地选用平台和软件
  • C. 各层可以选择不同的开发语言进行并行开发
  • D. 系统安装、修改和维护均只在服务器端进行
31

以下关于螺旋模型的叙述中,不正确的是( )。

  • A.它是风险驱动的,要求开发人员必须具有丰富的风险评估知识和经验
  • B.它可以降低过多测试或测试不足带来的风险
  • C.它包含维护周期,因此维护和开发之间没有本质区别
  • D.它不适用于大型软件开发
40

在采用结构化开发方法进行软件开发时,设计阶段接口设计主要依据需求分析阶段的( )。接口设计的任务主要是( )。

  • A.数据流图
  • B.E-R图
  • C.状态-迁移图
  • D.加工规格说明
  • A.定义软件的主要结构元素及其之间的关系
  • B.确定软件涉及的文件系统的结构及数据库的表结构
  • C.描述软件与外部环境之间的交互关系,软件内模块之间的调用关系
  • D.确定软件各个模块内部的算法和数据结构
42

甲、乙两人在同一天就同样的发明创造提交了专利申请,专利局将分别向各申请人通报有关情况,并提出多种可能采用的解决办法。下列说法中,不可能采用( )。

  • A.甲、乙作为共同申请人
  • B.甲或乙一方放弃权利并从另一方得到适当的补偿
  • C. 甲、乙都不授予专利权
  • D. 甲、乙都授予专利权
43

数字语音的采样频率定义为 8kHz,这是因为( )。

  • A.语音信号定义的频率最高值为4kHz
  • B.语音信号定义的频率最高值为8kHz
  • C.数字语音转输线路的带宽只有8kHz
  • D.一般声卡的采样频率最高为每秒8k次
45

假定用户A、B 分别在I1和I2两个 CA 处取得了各自的证书,下面( )是 A、B 互信的必要条件。

  • A.A、B互换私钥
  • B.A、B互换公钥
  • C.I<sub>1</sub>、I<sub>2</sub>互换私钥
  • D.I<sub>1</sub>、I<sub>2</sub>互换公钥
46

根据我国商标法,下列商品中必须使用注册商标的是( )。

  • A.医疗仪器
  • B.墙壁涂料
  • C.无糖食品
  • D.烟草制品
49

某系统由下图所示的冗余部件构成。若每个部件的千小时可靠度都为 R ,则该系 统的千小时可靠度为( )。

  • A.(1-R<sup>3</sup>)(1-R<sup>2</sup>)
  • B.(1-(1-R)<sup>3</sup>)(1-(1-R)<sup>2</sup>)
  • C.(1-R<sup>3</sup>)+(1-R<sup>2</sup>)
  • D.(1-(1-R)<sup>3</sup>)+(1-(1-R)<sup>2</sup>)
51

以下关于Cache (高速缓冲存储器)的叙述中,不正确的是( )。

  • A. Cache 的设置扩大了主存的容量
  • B. Cache 的内容是主存部分内容的拷贝
  • C. Cache 的命中率并不随其容量增大线性地提高
  • D. Cache 位于主存与 CPU 之间
53

要判断字长为 16 位的整数 a 的低四位是否全为 0,则( )。

  • A. 将 a 与0x000F进行"逻辑与"运算,然后判断运算结果是否等于0
  • B. 将 a 与0x000F进行"逻辑或"运算,然后判断运算结果是否等于F
  • C. 将 a 与0x000F进行"逻辑异或"运算,然后判断运算结果是否等于0
  • D. 将 a 与 0x000F 进行"逻辑与"运算,然后判断运算结果是否等于F
  • B.
  • C.
  • D.
54

CPU执行算术运算或者逻辑运算时,常将源操作数和结果暂存在( )中。

  • A. 程序计数器 (PC)
  • B. 累加器 (AC)
  • C. 指令寄存器 (IR)
  • D. 地址寄存器 (AR)