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

CSE :: Object Oriented Programming Using C++

  1. To send output to a file, you need to include the _____ header file in your program

  2. A.
    file.h
    B.
    fstream.h
    C.
    iomanip.h
    D.
    iostream.h
    E.
    of stream.h

  3. A C++ _____ is a program that runs in a DOS window

  4. A.
    algorithm
    B.
    cast application
    C.
    console application
    D.
    source application

  5. A difference, between reference variables and pointers is that

  6. A.
    reference variables are easier to use
    B.
    pointers are easier to use
    C.
    reference variables are more flexible
    D.
    no difference exists between reference variables and pointers

  7. A 'C function does not contain

  8. A.
    a function header
    B.
    argument declarations
    C.
    other 'C' functions
    D.
    function body
    E.
    None of the above

  9. _____ variables remain in memory until the program ends

  10. A.
    Area
    B.
    Global
    C.
    Local
    D.
    Reference
    E.
    Value

  11. The outline or the definition of a function is called its

  12. A.
    beta test
    B.
    forerunner
    C.
    outline
    D.
    prototype

  13. Which of the following is false?

  14. A.
    Data stored in an array can be accessed faster than data stored in a disk file
    B.
    Data stored in an array needs to be entered only once, typically at the beginning of the program
    C.
    Arrays allow the programmer to store information in the computer's internal memory
    D.
    When using arrays, you will have fewer variable names to remember
    E.
    None of the preceding statements are false

  15. A function stub typically contains

  16. A.
    the function header
    B.
    the function braces
    C.
    the return statement, if it's value- returning function
    D.
    a display message
    E.
    All of the above

  17. A variable's _____ indicates which portions of the program can use the variable

  18. A.
    area
    B.
    extent
    C.
    lifetime
    D.
    reach
    E.
    scope

  19. If an integer object is thrown with a throw statement, then a subsequent catch block has a usable match if the type of the catch argument is _____

  20. A.
    const int &
    B.
    int &
    C.
    either (a) or (b)
    D.
    neither (a) nor (b)