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

CSE :: Object Oriented Programming Using C++

  1. Which of the following calls a function named displayName, passing it no actual arguments?

  2. A.
    call displayName;
    B.
    call displayName ();
    C.
    displayName;
    D.
    displayName();

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. The feature that allows you to use the same function name for separate functions that have different argument lists is called _____

  4. A.
    overriding
    B.
    overloading
    C.
    constructing
    D.
    destructing

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. Which of the following are valid characters constants?

  6. A.
    '\n'
    B.
    '\\'
    C.
    '\0'
    D.
    All of the above
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. With a template class, _____ type is generic

  8. A.
    no
    B.
    exactly one
    C.
    at least one
    D.
    at most one

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. If you want to use a class to define objects in many different programs, you should define the class in a C++ _____ file

  10. A.
    header
    B.
    program
    C.
    source
    D.
    text

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Functions that returns information about an object's state can be classified as ________

  12. A.
    inspector functions
    B.
    mutator functions
    C.
    auxiliary functions
    D.
    manager functions

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. An auxiliary function _____

  14. A.
    return information about data members
    B.
    changes the state of data members
    C.
    performs an action or service
    D.
    creates and destroys objects

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. To create and execute a C++ program, you need to have access to

  16. A.
    a C++ compiler
    B.
    a C++ translator
    C.
    an object code editor
    D.
    a text editor
    E.
    both (a) and (d)

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. If you omit any constructor argument when you instantiate an object, you must use default values______

  18. A.
    for all parameters to the constructor
    B.
    for all parameters to the right of the argument
    C.
    for all parameters to the left of the argument
    D.
    for no other parameters

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. Many programmers separate a class into two files: _____

  20. A.
    one for the declarations and one for the implementations
    B.
    one for the void functions and one for the other functions
    C.
    one for the public data and one for the private data
    D.
    one for the primary functions and one for the auxiliary functions

    View Answer

    Workspace

    Discuss Discuss in Forum