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

CSE :: Object Oriented Programming Using C++

  1. A major advantage of inheritance is

  2. A.
    reducing the time it takes to create new objects
    B.
    not having to think about how objects will be used
    C.
    reducing the amount of memory required to execute a progrma
    D.
    enabling people who have not studied programming to create useful applications

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. When a variable exists or is accessible, it is said to be _____

  4. A.
    immediate
    B.
    in the path
    C.
    available
    D.
    in scope

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The feature that allows the same operations to be carried out differently depending on the object is _____

  6. A.
    polymorphism
    B.
    polygamy
    C.
    inheritane
    D.
    multitasking

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Which of the following is a C++ class?

  8. A.
    >>
    B.
    read()
    C.
    cin
    D.
    iostream

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Precedence determines which operator

  10. A.
    is evaluated first
    B.
    is most important
    C.
    is fastest
    D.
    operates on the largest number
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. When using the standard files that come with the C++ compiler, you should surround the header file name with _____

  12. A.
    square brackets
    B.
    angle brackets
    C.
    parentheses
    D.
    quotes

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. The loop condition in a flowchart is represented by a(n) _____

  14. A.
    diamond
    B.
    oval
    C.
    parallelogram
    D.
    rectangle

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Which of the following, if any, are invalid names for a variable?

  16. A.
    bankAccountNumber
    B.
    first_Name
    C.
    doubleNumber
    D.
    operator
    E.
    All of the above are valid names for variables

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Inheritance is the principle that

  18. A.
    classes with the same name must be derived from one another
    B.
    knowledge of a general category can be applied to more specific objects
    C.
    C++ functions may be used only if they have logical predecessors
    D.
    one function name may invoke different methods

    View Answer

    Workspace

    Discuss Discuss in Forum