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

CSE :: Object Oriented Programming Using C++

  1. The logical NOT operator represented by is a

  2. A.
    unary operator
    B.
    binary operator
    C.
    ternary operator
    D.
    octal operator
    E.
    None of the above

  3. When variables refer to attributes of an entity (such as name, address, and phone number of a person), those attributes form a _____

  4. A.
    file
    B.
    record
    C.
    field
    D.
    program

  5. A derived class _____ override attributes of a parent class

  6. A.
    may
    B.
    may if the two classes have the same name
    C.
    must
    D.
    must not

  7. Which of the following is false?

  8. A.
    You enclose a function's statements in a set of braces
    B.
    The function header is considered a C++ statement, so it must end in a semicolon.
    C.
    The keyword void tells the C++ compiler that the function does not return a value
    D.
    A function can receive information that you send (pass) to it
    E.
    An empty set of parentheses after the function's name in the function header tells you that the function does not receive any information

  9. A function's single most important role is to

  10. A.
    give a name to a block of code
    B.
    reduce program size
    C.
    accept arguments and provide a return value
    D.
    help organize a program into conceptual units
    E.
    None of the above

  11. The delete operator returns ______ to the operating system

  12. A.
    memory that is no longer needed
    B.
    void
    C.
    recycle bin
    D.
    None of the above

  13. The major advantage of data hiding is that _____

  14. A.
    your programs can include more data
    B.
    you no longer need functions
    C.
    no one can ever use your data
    D.
    your data will be used correctly

  15. The letter V is a _____

  16. A.
    character literal constant
    B.
    numeric literal constant
    C.
    string literal constant
    D.
    variable

  17. Separating parts of a program into units that remain unaffected by other parts of a program is the concept known as _____

  18. A.
    intrusion
    B.
    volatility
    C.
    encapsulation
    D.
    protection