试题详情

试题内容

下图所示为(1)设计模式,属于(2)设计模式,适用于(3)。



(1)A.代理
B.生成器
C.组合
D.观察者
(2)A.创建型
B.结构型
C.行为
D.结构型和行为
(3)A.表示对象的部分-整体层次结构时
B.当一个对象必须通知其它对象,而它又不能假定其他对象是谁时
C.当创建复杂对象的算法应该独立于该对象的组成部分及其装配方式时
D.在需要比较通用和复杂的对象指针代替简单的指针时

查看答案

软题库参考答案:C、B、A(仅供参考)

软题库解析:正在加载....

你可能感兴趣的试题

56题:One is that of a software engineer and the other is a DevOps engineer. The biggest different is in their (1). Software engineers focus on how well the computer software fts the needs of the client while a DevOps engineer has a broader focus that includes software development, how the software is deployed and providing (2) support through the cloud while the software is continually (3).
A software engineer creates computer programs for people to use based upon their security and function al
56题:

对于n个元素的关键字序列{k1 , k 2 ,..., k n } ,当且仅当满足关系
称其为小根堆,反之则为大根堆。以下序列中,( ) 不符合堆的定义。
A、(4,10,15,72,39,23,18)
B、(58,27,36,12,8,23,9)
C、(4,10,18,72,39,23,15)
D、(58,36,27,12,8,23,9)

39题:

以下关于Singleton(单例)模式的描述中,正确的是()。
A.它描述了只有一个方法的类的集合
B.它描述了只有一个属性的类的集合
C.它能够保证一个类的方法只能被一个唯一的类调用
D.它能够保证一个类只产生唯一的一个实例

7题:

若一棵哈夫曼(Huffman)树共有9个顶点,则其叶子结点的个数为( )。
A、4 
B、5 
C、6 
D、7 

54题:页面的标记中( )用于表示网页代码的起始和终止。
A、< html >< /html >
B、< head >< /head >
C、< body >< /body >
D、< meta >< /meta >
22题:

某文件管理系统在磁盘上建立了位示图(bitmap),记录磁盘的使用情况。若系统的字长为32位,磁盘上的物理块依次编号为0、1、2、…,那么4096号物理块的使用情况在位示图中的第(1)个字中描述;若磁盘的容量为200GB,物理块的大小为1MB,那么位示图的大小为(2)个字。
(1)A.129
B.257
C.513
D.1025
(2)A.600
B.1200
C.3200
D.6400