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

CSE :: Object Oriented Programming Using C++

  1. A program will have one function prototype for each function defined in the programmer-defined section of the program. (Assume that the programmer-defined section is located below the main function.)

  2. A.
    true
    B.
    false

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The standard input stream, which refers to the keyboard, is called

  4. A.
    cin
    B.
    cout
    C.
    stin
    D.
    stout
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. If the code and fee arrays are parallel, the fee that corresponds to the code stored in the code[3] element is located in the _____ element

  6. A.
    code[2]
    B.
    code[3]
    C.
    fee[2]
    D.
    fee[3]

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. Access specifiers are followed by

  8. A.
    a comma
    B.
    a semicolon
    C.
    a colon
    D.
    two colons

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. Elements in an array are identified by a unique _____

  10. A.
    data type
    B.
    order
    C.
    subscript
    D.
    symbol

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. To include the double quotes as part of the control string we use the symbol

  12. A.
    %"
    B.
    ""
    C.
    \"
    D.
    #
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. A C++ statement must end in a

  14. A.
    : (column)
    B.
    , (comma)
    C.
    . (period)
    D.
    ; (semicolon)

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. Student senior(); is a(n)_________

  16. A.
    constructor call with no arguments
    B.
    object instantiation
    C.
    constructor call with all default arguments
    D.
    prototype for a function that returns a student object

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. The statement int n[4] = {11, -13, 17, 105};

  18. A.
    assigns the value -13 to [2]
    B.
    assigns the value 17 to n[2]
    C.
    is wrong; it gives an error message
    D.
    assigns the value 18 to n[2]

    View Answer

    Workspace

    Discuss Discuss in Forum