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

CSE :: Object Oriented Programming Using C++

  1. The most common operation used in constructors is _____

  2. A.
    addition
    B.
    overloading
    C.
    assignment
    D.
    polymorphism

  3. When a function performs tasks based on a decision, it has _____

  4. A.
    functional cohesion
    B.
    coincidental cohesion
    C.
    logical cohesion
    D.
    no cohesion

  5. To create a template class, you begin with _________

  6. A.
    the template definition
    B.
    the keyword class
    C.
    the function definitions
    D.
    the keyword definition

  7. Which of the following is a C++ object?

  8. A.
    >>
    B.
    read()
    C.
    cin
    D.
    iostream

  9. A variable is _____

  10. A.
    an item of data
    B.
    a memory location whose value can change while the program is running
    C.
    a memory location whose value cannot change while the program is running

  11. A function can

  12. A.
    return a value
    B.
    perform a task
    C.
    change value of actual arguments in call by reference
    D.
    a, b, c above are all true
    E.
    None of the above

  13. The statement float values[]={3.14, -7.86, 36.96, 4.87};

  14. A.
    assigns 36.96 to values[2]
    B.
    assigns -7.86 to values[2]
    C.
    gives an error message
    D.
    assign 14 to values[2]

  15. A constructor initialization list is preceded by _____

  16. A.
    a semicolon
    B.
    a colon
    C.
    two colons
    D.
    a space

  17. When the compiler places a copy of a small function's statements directly into a program, the function is said to be _____

  18. A.
    overloaded
    B.
    mangled
    C.
    inline
    D.
    redundant

  19. A group of related fields that contain all of the data about a specific person, place, or thing is called a

  20. A.
    data file
    B.
    field file
    C.
    program file
    D.
    record