zoukankan      html  css  js  c++  java
  • View Assessment Result: MultipleChoice Quiz 2


    UML class diagrams can describe which of the following?

       1. The internal structure of classes
       2. Relationships between classes
    (a) I only
    (b) I and II
    (c) None
    (d) II only
    Correct answer is     (b)

    In a UML class diagram's representation of a class, the top, middle, and lower rectangular compartments respectively describe the _____ of the class.
    (a) attributes, methods, and name
    (b) name, attributes, and methods
    (c) attributes, methods, and constants
    (d) name, methods, and constants

    Correct answer is     (b)

    A relationship that exists between two specific instances of an object is known as a(n)
    (a) aggregation
    (b) link
    (c) association
    (d) specialization

    Correct answer is     (b)

    A binary association is said to exist between two classes when
    (a) one class belongs to the same package as the other class
    (b) one class is a subtype of the other class
    (c) an object of one class is instantiated in the same method as an object of the other class
    (d) an object of one class requires an object of the other class

    Correct answer is     (d)

    Consider the following UML class diagram.
     
    The diagram describes a
    (a) class without methods
    (b) self-containing class
    (c) one-to-one relationship
    (d) relationship between a subclass and a superclass

    Correct answer is     (b)

    Consider the following UML class diagram.
     
    According to the diagram, which of the following statements is (are) true?

       1. ClassB is a specialization of ClassA.
       2. ClassA is a generalization of ClassC.
       3. ClassC is involved in a self-containment loop.
    (a) I, II, and III
    (b) I and II only
    (c) I and III only
    (d) II and III only
    Correct answer is (a)

    A collection typically models a _____ relationship.
    (a) zero-to-one
    (b) many-to-many
    (c) one-to-one
    (d) one-to-many

    Correct answer is     (d)

    If a class has an association with itself, then the class contains
    (a) a method that calls itself
    (b) a method that calls another method within the same class
    (c) an attribute that references an object of the same class
    (d) its own superclass

    Correct answer is     (c)

    When using noun-phrase analysis to model a software system, which of the following should typically be eliminated from the list of potential classes?

       1. References to the software system itself
       2. Nouns that imply roles between objects
       3. Synonyms to other nouns in the list
    (a) III only
    (b) II and III only
    (c) I and III only
    (d) I, II, and III

    Correct answer is     (d)

    An object model describes which of the following?

       1. Attributes of classes
       2. Methods of classes
       3. Relationships between classes
    (a) I and II only
    (b) I, II, and III
    (c) I and III only
    (d) II and III only

    Correct answer is     (b)

  • 相关阅读:
    PHP实现手机号码中间四位用星号(*)隐藏的自定义函数分享
    PHP提取字符串中的手机号正则表达式怎么写
    关于PHP如何用实现防止用户在浏览器上使用后退功能重复提交输入
    php解析url并得到url中的参数
    Linux25_安装CentOS服务器并配置
    Linux24_编译安装软件
    Android16_Binder连接池
    Android15_IPC方式之Bundle及文件共享
    Android14_IPC方式之Socket
    Android13_IPC方式之ContentProvider
  • 原文地址:https://www.cnblogs.com/vivizhyy/p/3394925.html
Copyright © 2011-2022 走看看