一起答
单选

●编制一个好的程序首先要确保它的正确性和可靠性,除此以外,通常更注重源程序的 (9) 。还应强调良好的编程风格,例如,选择标识符的名字时应考虑 (10) ;在书写语句时应考虑 (11) ;在书写功能性注解时应考虑 (12) 。

源程序中应包含一些内部文档,以帮助阅读和理解源程序,源程序的内部文档通常包括选择合适的标识符、注解和 (13) 。

 (9)

  • A.易理解性、易测试性和易修改性    &n
  • bsp;  B.易使用性、易维护性和易移植性    
  • C.易使用性、易维护性和效率    
  • D.易理解性、安全性和效率    (10) A.名字长度越短越好,以减少源程序的输入量
  • B.尽量消除语句,关键字等之间的空格,来缩短源程序语句
  • C.尽量用关键字作名字,以使名字标准化
  • D.选择含义明确的名字,以正确提示所代表的实体    (11) A.把多个短的语句写在同一行中,以减少源程序的行数
  • B.尽量使用标准文本以外的有特殊功效的语句,以提高程序的功效
  • C.尽量消除表达式中的括号,以简化表达式
  • D.避免使用测试条件"非",以提高程序的可读性    (12) A.为每个语句作注解
  • B.仅为每个模块作注解
  • C.为程序段作注解
  • D.仅为整个程序作注解    (13) A.程序的视觉组织
  • B.简洁的变量名
  • C.检查输入数据的有效性
  • D.分段程序块
参考答案
查看试卷详情
相关试题
  1. ●Comp

    • arisons were drawn
    • between the development of television in the 20th
    • century an
    • d the diffusion of printing in the 15th and 16th centuries.Yet much had happened between.As was discussed before,it was not until the 19th century that the newspaper became the dominant preelectronic mediam,following in the wake of the pamphlet and the bo
    • It is generally recognized,however,that the introduction of the computer in the early 20th century,followed by the invention of the integrated circuit during the 1960s,radically changed the process,although its impact on the media was not immediately appa
    • It was within the computer age that the term "information society" began to be widely used to describe the(72)within which we now live.The communications revolution has (73)both work and leisure and how we think and feel both about place and time,but ther
  2. ●有多种设备可以实现不同网段或网络之间的互连,互连设备通常可按工作在OSI模型中的层次来划分。在物理层实现互连的称为 (61) ;在数据链路层实现互连的称为 (62) ;在网络层实现互连的称为 (63) ;在运输层及以上高实现互连的设备称为网关或 (64) 。 (65) 也是一种用来构造局域网的常用设备,通常可以用双绞线把服务器与PC客户机等连入 (65) 。

    (61) ~(63)

    • A.网桥    &n
    • bsp;  B.路由器    
    • C.网关    
    • D.转发器    (64) ,(65) A.集线器
    • B.协议转换器
    • C.网桥
    • D.路由器
  3. ●Comp

    • arisons were drawn
    • between the development of television in the 20th
    • century an
    • d the diffusion of printing in the 15th and 16th centuries.Yet much had happened between.As was discussed before,it was not until the 19th century that the newspaper became the dominant preelectronic mediam,following in the wake of the pamphlet and the bo
    • It is generally recognized,however,that the introduction of the computer in the early 20th century,(66) by the invention of the integrated circuit during the 1960s,radically changed the process,although its impact on the media was not immediately(67).As t
    • It was within the computer age that the term "information society" began to be widely used to describe thecontext within which we now live.The communications revolution has influenced both work and leisure and how we think and feel both about place and ti
  4. ●在头指针为he

    • ad且表长大于1的单循环链表中,指针p指向表中某个结点,若p→*next→*next=head,则&n
    • bsp;(55) 。    (55) A.p指向头结点
    • B.p指向尾结点    
    • C.*p的直接后继是头结点    
    • D.*p的直接后继是尾结点
  5. ●视频卡的种类很多,主要包括 (57) 。以P

    • AL制25帧/秒为例,已知一帧彩色静态图像(RG
    • B)的分辨率为256×256,每一种颜色用16bit表示,则该视频每秒钟的数据量为 (58) 。全电视信号主要由 (59) 组成。在视频信号实时处理技术中,如果电视扫描的正程时间为52.2ms,分辨率为512×512,实时意味着处理每个像素的时间近似为 (60) 。    (57) A.视频捕获卡
    • B.视频捕获卡、电影卡    
    • C.视频捕获卡、电影卡、电视卡    
    • D.视频捕获卡、电影卡、电视卡、视频转换卡    (58) A.256×256 ×3 ×16×25bps
    • B.512×512 ×3×8×25bps
    • C.256×256 ×3×8×25bps
    • D.512×512 ×3×16×25 bps    (59) A.图像信号、同步信号、消隐信号
    • B.图像信号、亮度信号、色度信号
    • C.图像信号、复合同步信号、复合消隐信号
  6. ●判定"带头结点的链队列为空"的条件是 (56) 。

    (56)

    • A.Q.front==NULL    &n
    • bsp;  B.Q.rear==NULL    
    • C.Q.front==Q.rear    
    • D.Q.front!=Q.rear
  7. ●在具有n个结点的有序单链表中插入一个新结点并使链表仍然有序的时间复杂度是 (53) 。

    (53)

    • A.O(1)    &n
    • bsp;  B.O(n)    
    • C.O(nlogn)    
    • D.O(n2)
  8. ●队和栈的主要区别是 (54) 。

    (54)

    • A.逻辑结构不同    &n
    • bsp;  B.存储结构不同    
    • C.所包含的运算个数不同    
    • D.限定插入和删除的位置不同
  9. ●用来辅助软件开发、运行、维护、管理、支持等过程中的活动的软件称为软件开发工具,通常也称为 (45) 工具。

    使用软件开发工具有助于提高软件的开发、维护和管理的效率。集成型软件开发环境通常由工具集和环境集成机制组成。这种环境应具有 (46) 。环境集成机制有数据集成机制、控制集成机制和界面集成机制。

    数据集成机制为环境中的工具提供统一的 (47) ;控制集成机制为 (48) 提供支持。界面集成机制使得环境中的所有工具具有 (49) 。

    (45)

    • A.CAD    &n
    • bsp;  B.
    • CAI
    • C.CAM    
    • D.CASE    (46) A.开放性和可剪裁性
    • B.开放性和不可剪裁性
    • C.封闭性和可剪裁性
    • D.封闭性和不可剪裁性    (47) A.数据类型
    • B.数据模式
    • C.数据接口规范
  10. ●由n个实数构成的哈夫曼树,共有 (50) 个结点,有 (51) 个叶结点,有 (52) 个二度结点。

     (50) ~(52)

    • A.n    &n
    • bsp;  B.n-1    
    • C.2n-1    
    • D.2n