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

  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

  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

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

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

  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

  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

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

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

  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

  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