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

CSE :: Object Oriented Programming Using C++

  1. Sending a copy of data to a program module is called _______

  2. A.
    passing a value
    B.
    making a reference
    C.
    recursion
    D.
    setting a condition

  3. Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program

  4. A.
    reference, pointer
    B.
    array, location
    C.
    array, pointer
    D.
    None of the above

  5. To use either an input or output file, the program must include the _____ header file

  6. A.
    filestream.h
    B.
    fstream.h
    C.
    instream.h
    D.
    inoutstream.h
    E.
    iostream.h

  7. A widget is to the blueprint for a widget as an object is to

  8. A.
    a member function
    B.
    a class
    C.
    an operator
    D.
    a data item

  9. C++ allows you to define the same functions more than once in the same program _____

  10. A.
    if the definitions are identical
    B.
    if the definitions are included in two separate #include files
    C.
    if the definitions are located in a single #include file that is included more than once
    D.
    C++ does not allow you to define the same functions more than once in the same program

  11. Which of the following assigns the number 5 to the area variable?

  12. A.
    area 1 = 5
    B.
    area = 5
    C.
    area == 5
    D.
    area --> 5
    E.
    area < > 5

  13. A base class may also be called a

  14. A.
    child class
    B.
    subclass
    C.
    derived class
    D.
    parent class

  15. The _____ mode tells C++ to open a file for input

  16. A.
    add::ios
    B.
    in::file
    C.
    ios::app
    D.
    ios::in
    E.
    ios::out

  17. Using the wardrobe structure within the ShopList structure is an example of a good programming principle, known as _____

  18. A.
    reusability
    B.
    polymorphism
    C.
    redundancy
    D.
    recursion