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

CSE :: Object Oriented Programming Using C++

  1. When all of the operations in a function contribute to the performance of only one task, a function has

  2. A.
    singular cohesion
    B.
    tight cohesion
    C.
    functional cohesion
    D.
    sequential cohesion

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A function that uses variable types is called __________

  4. A.
    overloaded
    B.
    a template function
    C.
    a variable function
    D.
    a virtual function

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Having more than one function with the same name is called

  6. A.
    overloading
    B.
    defaulting
    C.
    casting
    D.
    referencing

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. An object is _____

  8. A.
    a category of classes
    B.
    a name given to a class
    C.
    an instance of a class
    D.
    the same as a class

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Two access specifers in C++ are

  10. A.
    public and private
    B.
    int and double
    C.
    formal and informal
    D.
    void and free

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. A data member holds a 1 or 0 depending on whether taxes have been paid. The best identifier for this member is _____

  12. A.
    taxes
    B.
    paidTaxes
    C.
    taxesArePaid
    D.
    code

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Assume a class Derv that is privately derived from class Base. An object of class Derv located in main() can access

  14. A.
    public members of Base
    B.
    protected members of Base
    C.
    private members of Base
    D.
    public members of Derv

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following is an access specifier?

  16. A.
    particular
    B.
    shielded
    C.
    protected
    D.
    safe

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Machine code is _____

  18. A.
    edited code
    B.
    source code
    C.
    the 0s and 1s that the computer can understand
    D.
    both (b) and (c)

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. The contents of two pointers that point to adjacent of type float differ by

  20. A.
    one bytes
    B.
    two bytes
    C.
    three bytes
    D.
    four bytes

    View Answer

    Workspace

    Discuss Discuss in Forum