Home / CSE / Object Oriented Programming Using C++ :: Section 5

CSE :: Object Oriented Programming Using C++

  1. The variables declared in a statement block or listed in a function header's parameterlist are considered _____ variables

  2. A.
    area
    B.
    global
    C.
    local
    D.
    reference
    E.
    value

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. An expression

  4. A.
    is a collection of data objects and operators that can be evaluated to a single value
    B.
    is a name that substitutes for a sequence of characters
    C.
    causes the computer to carry out some action
    D.
    All of the above
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. In the C language, the character type of constant is delimited by using

  6. A.
    single quotes
    B.
    double quotes
    C.
    parenthesis
    D.
    #
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. One way in which a structure differs from an array is that _____

  8. A.
    a structure may have members of more than one type
    B.
    a structure must have members that; are all the same type
    C.
    art array may have members of more than one type
    D.
    there is no difference between a structure and an array

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A default constructor _____

  10. A.
    takes no arguments
    B.
    has default values for all its arguments
    C.
    either (a) or (b)
    D.
    neither (a) nor (b).

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. The number 125.35 is a _____

  12. A.
    character literal constant
    B.
    numeric literal constant
    C.
    string literal constant
    D.
    variable

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. When a class serves as a base class to others, _____

  14. A.
    all of its members are inherited
    B.
    all of its members are inherited, except for any private members
    C.
    all of its members are inherited, except for any protected members
    D.
    None of its members is inherited unless specifically "listed

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Storing a class definition in a separate file is an example of

  16. A.
    polymorphism
    B.
    name mangling
    C.
    implementation hiding
    D.
    inheritance

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which is true?

  18. A.
    Sequential cohesion is slightly weaker than functional cohesion
    B.
    Sequential cohesion is slightly stronger than functional cohesion
    C.
    Sequential cohesion is much stronger than functional cohesion
    D.
    Neither sequential cohesion nor functional cohesion is stronger than the other

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. A class named student must have a constructor whose name is

  20. A.
    student
    B.
    ~student
    C.
    constructor
    D.
    any legal C++ name.

    View Answer

    Workspace

    Discuss Discuss in Forum