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

CSE :: Object Oriented Programming Using C++

  1. Library header files usually contain

  2. A.
    complete functions
    B.
    parts of functions
    C.
    function prototypes for functions stored in other files
    D.
    function bodies, but not function headers

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A C++ term meaning "generic" is

  4. A.
    argument
    B.
    parameterized
    C.
    universal
    D.
    global

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Before object-oriented exception handling was practiced, _____

  6. A.
    no run-time errors occurred
    B.
    programmers could not deal with run-time errors
    C.
    the most popular error-handling method was to terminate the program
    D.
    the most popular error-handling method was to throw an exception

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. The preprocessor directive always ends with

  8. A.
    a comma
    B.
    a semicolon
    C.
    neither a semicolon nor a comma
    D.
    "/"
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. A constructor initialization list produces similar results to

  10. A.
    overriding
    B.
    assignment
    C.
    redeclaring
    D.
    output

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following stream manipulators advances the cursor to the next line on the computer screen?

  12. A.
    adin
    B.
    advin
    C.
    edlin
    D.
    endl
    E.
    lineadv

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. 6.5 is a _____ constant

  14. A.
    character literal
    B.
    named literal
    C.
    numeric literal
    D.
    string literal

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. The time and memory involved in calling a function represent the function's _____

  16. A.
    prototype
    B.
    overhead
    C.
    cost
    D.
    burden

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. Which function is most likely to have procedural cohesion?

  18. A.
    main()
    B.
    findSquareRoot()
    C.
    getSaleSubtractDiscountAddTax()
    D.
    openFiles()

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. A pointer is

  20. A.
    the address of a variable
    B.
    an indication of the variable to be accessed next
    C.
    a variable for storing addresses
    D.
    the data type of an address variable

    View Answer

    Workspace

    Discuss Discuss in Forum