一起答
单选

● 开-闭原则(Open-Closed Principle, OCP)是面向对象的可复用设计的基石。开-闭原则是指一个软件实体应当对 (37) 开放,对 (38) 关闭;里氏代换原则(Liskov Substitution Principle, LSP)是指任何 (39) 可以出现的地方, (40) 一定可以出现。依赖倒转原则(Dependence Inversion Principle, DIP)就是要依赖于 (41) ,而不依赖于 (42) ,或者说要针对接口编程,不要针对实现编程。

(37)

  • A. 修改      
  • B. 扩展       
  • C. 分析    
  • D. 设计    (38)
  • A. 修改      
  • B. 扩展       
  • C. 分析    
  • D. 设计    (39)
  • A. 变量      
  • B. 常量       
  • C. 基类对象  
  • D. 子类对象    (40)
  • A. 变量      
  • B. 常量       
  • C. 基类对象  
  • D. 子类对象    (41)
  • A. 程序设计语言 
  • B. 建模语言  
  • C. 实现    
  • D. 抽象    (42)
  • A. 程序设计语言 
  • B. 建模语言  
  • C. 实现    
  • D. 抽象
参考答案
查看试卷详情
相关试题
  1. ●        People are indulging in an illusion whenever they find themselves explaining at a cocktail(鸡尾酒) party, say, that they are "in computers," or "in telecommunications," or "in electronic funds transfer". The implication is that they are part of the high-tech world. Just between us, they usually aren't. The researchers who made fundamental breakthroughs in those areas are in a high-tech business. The rest of us are (71)  of their work. We use computers and other new technology components to develop our products or to organize our affairs. Because we go about this work in teams and projects and other tightly knit working groups(紧密联系在一起的工作小组), we are mostly in the human communication business. Our successes stem from good human interactions by all participants in the effort, and our failures stem from poor human interactions. 

              The main reason we tend to focus on the (72) rather than the human side of the work is not because it's more (73) , but because it's easier to do. Getting the new disk drive installed is positively trivial compared to figuring out why Horace is in a blue funk(恐惧) or why Susan is dissatisfied with the company after only a few months. Human interactions are complicated and never very crisp(干脆的,干净利落的) and clean in their effects, but they matter more than any other aspect of the work. 

              If you find yourself concentrating on the (74) rather than the (75), you're like the vaudeville character(杂耍人物) who loses his keys on a dark street and looks for them on the adjacent street  because, as he explains, "The light is better there!".

    (71)

    • A. creators            
    • B. innovators
    • C. appliers            
    • D. inventors    (72)
    • A. technical            
    • B. classical
    • C. social             
    • D. societal    (73)
    • A. trivial               
    • B. crucial
  2. ● HTML文档中

    标记的align属性用于定义 (70) 。

    (70)

    • A. 对齐方式             
    • B. 背景颜色   
    • C. 边线粗细             
    • D. 单元格边距
  3. ● 帧中继作为一种远程接入方式有许多优点,下面的选项中错误的是 (69) 。

    (69)

    • A. 帧中继比X.25的通信开销少,传输速度更快
    • B. 帧中继与DDN相比,能以更灵活的方式支持突发式通信
    • C. 帧中继比异步传输模式能提供更高的数据速率  
    • D. 租用帧中继虚电路比租用DDN 专线的费用低 
  4. ● HTTP协议中,用于读取一个网页的操作方法为 (68) 。

    (68)

    • A. READ     
    • B. GET        
    • C. HEAD       
    • D. POST
  5. ● 公钥体系中,私钥用于 (66) ,公钥用于 (67) 。

    (66)

    • A. 解密和签名  
    • B. 加密和签名 
    • C. 解密和认证 
    • D. 加密和认证    (67)
    • A. 解密和签名  
    • B. 加密和签名 
    • C. 解密和认证 
    • D. 加密和认证
  6. ● 下面C程序段中count++语句执行的次数为 (64) 。

    for(int i = 1;i<= 11;i *= 2)

       for(int j = 1; j<= i;j++)

         count++;     

    (64)

    • A. 15    
    • B. 16     
    • C. 31     
    • D. 32  
  7. ● 已知一棵度为 3 的树(一个结点的度是指其子树的数目,树的度是指该树中所有结点的度的最大值)中有 5 个度为 1 的结点,4 个度为 2 的结点,2 个度为 3 的结点,那么,该树中的叶子结点数目为 (61) 。

    (61)

    • A.  10          
    • B.  9     
    • C.  8     
    • D.  7
  8. ●  (59) 是右图的合法拓扑序列。

    (59)

    • A.  6 5 4 3 2 1 
    • B.  1 2 3 4 5 6 
    • C.   5 6 3 4 2 1
    • D.  5 6 4 2 1 3