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

CSE :: Object Oriented Programming Using C++

  1. In C++, the address operator is the following symbol _____

  2. A.
    >>
    B.
    &
    C.
    *
    D.
    !

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. Which of the following is false?

  4. A.
    A pointer variable contains the address of a variable in memory
    B.
    You should both declare and initialize a pointer before you use it
    C.
    Pointers are typically initialized to the empty string ("")
    D.
    A pointer's datatype must match the datatype of the variable to which it points
    E.
    A pointer variable is typically referred to simply as a pointer

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The function that takes arguments to set the bits of cout is _____

  6. A.
    setf()
    B.
    bitset()
    C.
    ios()
    D.
    flat()

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. When you declare a pointer, you must give it a _____

  8. A.
    type
    B.
    type and name
    C.
    type, name, and value
    D.
    name and value

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. You typically initialize Short Integer, Integer, and Long Integer variables to

  10. A.
    a space enclosed in double quotes
    B.
    a space enclosed in single quotes
    C.
    the letter O
    D.
    the number 0
    E.
    the value false

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Assume that a variable will need to store only integers in the range of 1 through 20000. The most efficient data type for the variable is _____

  12. A.
    character
    B.
    float
    C.
    integer
    D.
    long integer
    E.
    short integer

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. Which of the following is true?

  14. A.
    iostream is derived from istream
    B.
    iostream is derived from ostream
    C.
    ostream is derived from iostream
    D.
    ostream is derived from istream

    View Answer

    Workspace

    Discuss Discuss in Forum