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

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

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

  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

  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

  9. A constructor initialization list produces similar results to

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

  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

  13. 6.5 is a _____ constant

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

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

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

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

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

  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