开-闭原则(Open-Closed Principle, OCP)是面向对象的可复用设计的基石。开-闭原则是指一个软件实体应当对 (37) 开放,对 (38) 关闭;里氏代换原则(Liskov Substitution Principle, LSP)是指任何 (39) 可以出现的地方, (40) 一定可以出现。依赖倒转原则(Dependence Inversion Principle, DIP)就是要依赖于 (41) ,而不依赖于(42) ,或者说要针对接口编程,不要针对实现编程。 (42)处填()。
A. 程序设计语言
B. 建模语言
C. 实现
D. 抽象
查看答案
公钥体系中,私钥用于 (66) ,公钥用于 (67)。 (67)处填()。
A. 解密和签名
B. 加密和签名
C. 解密和认证
D. 加密和认证
(43) 是一种很强的“拥有”关系,“部分”和“整体”的生命周期通常一样。整体对象完全支配其组成部分,包括它们的创建和销毁等; (44) 同样表示“拥有”关系,但有时候“部分”对象可以在不同的“整体”对象之间共享,并且“部分”对象的生命周期也可以与“整体”对象不同,甚至“部分”对象可以脱离“整体”对象而单独存在。上述两种关系都是 (45) 关系的特殊种类。 (45)处填()。
A. 聚合
B. 组合
C. 继承
D. 关联
Questions 53 to 57 are based on the following passage: The Internet can make the news more democratic, giving the public a chance to ask questions and seek out facts behind stories and candidates, according to the head of the largest US on-line service. ’But the greatest potential for public participation is still in the future,’ Steven Case, chairman of America On-line, told a recent meeting on Journalism and the Internet sponsored by The Freedom Forum, though some other speakers say the new technology of computers is changing the face of journalism, giving reporters access to more information and their readers a chance to ask questions and turn to different sources. ’You don’t have to buy a newspaper and be confined to the four comers of that paper anymore.’ Sam Meddis, on-line technology editor at USA Today, observed about the variety of information available to computer users. But the speakers noted the easy access to the internet also means anyone can post information for others to see.’Anyone can say anything they want, whether it’s right or wrong.’ said Case. Readers have to determine for themselves who to trust. ’In a world of almost infinite voices, respected journalists and respected brand names will probably become more important, not less,’ Case said. ’The internet today is about where radio was 80 years ago, or television 50 years ago or cable 25 years ago, ’he said. But it is growing rapidly because it provides people fast access to news and a chance to comment on it. It can be inferred from this passage that may NOT be regarded as the advantages of the internet.()
A. the news can be made more democratic
B. anything can be posted on the internet for others to see
C. the public can turn to different sources
D. the public can get a chance to ask questions
开-闭原则(Open-Closed Principle, OCP)是面向对象的可复用设计的基石。开-闭原则是指一个软件实体应当对 (37) 开放,对 (38) 关闭;里氏代换原则(Liskov Substitution Principle, LSP)是指任何 (39) 可以出现的地方, (40) 一定可以出现。依赖倒转原则(Dependence Inversion Principle, DIP)就是要依赖于 (41) ,而不依赖于(42) ,或者说要针对接口编程,不要针对实现编程。 (38)处填()。
A. 修改
B. 扩展
C. 分析
D. 设计