一起答
单选

以下关于状态(State)模式和策略(Strategy)模式的叙述中,说法错误的是(48)。

  • A.对于客户程序而言,State模式比Strategy模式更透明
  • B.Strategy模式用来处理算法变化,State模式用来处理状态变化
  • C.State模式的对象变化频率比Strategy模式的对象高
  • D.State模式的“状态”是在对象外部,Strategy模式的“策略”是在对象内部
参考答案
查看试卷详情
相关试题
  1. (85)

    • A.contained
    • B.competing
    • C.connecting
    • D. completing
  2. (84)

    • A.address
    • B.characteristics .
    • C.page
    • D.links
  3. (82)

    • A.text
    • B.database
    • C.document
    • D. graphic
  4. (83)

    • A.objects
    • B.event
    • C.table
    • D.function
  5. Microsoft's COM is a software(71) that allows applications to be built from binary software components. COM is the underlying architecture that forms the foundation for higher-level software services, like those provided by OLE. COM defines a binary standard for function calling between components, a way for components to dynamically discover the interfaces implemented by other components, and a mechanism to identify components and their interfaces uniquely.

     OLE is a compound(72) standard developed by Microsoft. OLE makes it possible to create(73) with one application and link or embed them in a second application. Embedded objects retain their original format and(74) to the application that created them. Support for OLE is built into the Windows and MacOS Operating Systems. A(75) compound document standard developed mainly by Apple and IBM is called OpenDoc.

    • A.structure
    • B.procedure
    • C.protocol
    • D.architecture
  6. (80)

    • A.修改表5-4的结构,在表5-4中增加一个员工号
    • B.修改表5-5的结构,在表5-5中增加一个部门号
    • C.修改表5-5的结构,在表5-5中增加一个员工号
    • D.修改表5-6的结构,在表5-6中增加一个部门号
  7. 某商场的部门、员工和商品3个实体之间的关系如图5-7所示。假设每个部门有若干名员工,每种商品只能由一个部门负责销售。如果用户要求得到如表5-7所示的结果,则需要(52),并增加关系模式(53)。如果要求查询某部门负责销售的商品,则需要(54)。

    • A.修改表5-4的结构,在表5-4中增加一个员工号
    • B.修改表5-5的结构,在表5-5中增加一个员工号
    • C.修改表5-5的结构,在表5-5中增加一个部门号
    • D.修改表5-6的结构,在表5-6中增加一个部门号
  8. (79)

    • A.Sale_record(员工号,名称,数量)
    • B.Sale_record(员工号,名称,商品号,数量)
    • C.Sale_record(员工号,部门号,数量)
    • D.Sale_record(员工号,部门号,商品号,数量)
  9. (77)

    • A.类O、P和Q的对象都可以访问方法F3
    • B.类O、P和Q的对象都不可以访问方法F3
    • C.类O和Q的对象都可以访问方法F3,但类P的对象不能访问方法F3
    • D.类P和Q的对象都可以访问方法F3,但类Q的对象不能访问方法F3
  10. (76)

    • A.类O、P和Q的对象都可以访问方法F2
    • B.类P和Q的对象都可以访问方法F2
    • C.类O和Q的对象都可以访问方法F2
    • D.只有在类P内才能访问方法F2