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

CSE :: Object Oriented Programming Using C++

  1. If the description of function is "input the quantity, validate that the quantity is greater than 1, subtract 1 from the quantity, and print the quantity," the function is

  2. A.
    sequentially cohesive
    B.
    logically cohesive
    C.
    communicationally cohesive
    D.
    functionally cohesive

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A function that changes an object's state belongs to the category of

  4. A.
    inspector functions
    B.
    mutator functions
    C.
    auxiliary functions
    D.
    manager functions

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following pairs of identifier name(s) are(is) considered to be identical?

  6. A.
    name, names
    B.
    smith, johnsmith
    C.
    identifier 1, identifier_2
    D.
    charl, char_l
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. When you create a derived class and instantiate on object

  8. A.
    the parent class object must be constructed first
    B.
    the child class object must be constructed first
    C.
    the parent class object must not be constructed
    D.
    the child class object must not be constructed

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The int type of constants are whole numbers in the range

  10. A.
    - 23677 to 23678
    B.
    - 32768 to 32767
    C.
    - 32767 to 32768
    D.
    - 32864 to 32865
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. When the function char someFunction(int x) is executed,

  12. A.
    it will throw nothing
    B.
    it will throw an integer
    C.
    it will throw a character
    D.
    it may or may not throw anything

    View Answer

    Workspace

    Discuss Discuss in Forum


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

  14. A.
    a structure may have members of more than one type
    B.
    a structure must have members that are all the same type
    C.
    an 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


  15. Variables that hold memory addresses are called _____

  16. A.
    subscripts
    B.
    holders
    C.
    pointers
    D.
    indicators

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The general form of do-while statement is

  18. A.
    do expression while statement;
    B.
    do while expression;
    C.
    do statement while (expression);
    D.
    do statement while statement;
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The measure of how well the operations in a function relate to one another is _____

  20. A.
    coupling
    B.
    cohesion
    C.
    adhesion
    D.
    conversion

    View Answer

    Workspace

    Discuss Discuss in Forum