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

  3. A function that uses variable types is called __________

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

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

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

  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

  9. Two access specifers in C++ are

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

  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

  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

  15. Which of the following is an access specifier?

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

  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)

  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