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

CSE :: Object Oriented Programming Using C++

  1. The items listed in the function header are called _____

  2. A.
    actual arguments
    B.
    formal parameters
    C.
    passed parameters
    D.
    sent arguments

    View Answer

    Workspace

    Discuss Discuss in Forum


  3. A translator that notes whether you have used a language correctly may be called a _____

  4. A.
    theasurus
    B.
    compiler
    C.
    coder
    D.
    decoder

    View Answer

    Workspace

    Discuss Discuss in Forum


  5. The feature in object-oriented programming that allows the same operation to be carried out differently, depending on the object, is_____

  6. A.
    inheritance
    B.
    polymorphism
    C.
    overfunctioning
    D.
    overriding

    View Answer

    Workspace

    Discuss Discuss in Forum


  7. When an argument is passed by reference,

  8. A.
    a variable is created in the function to hold the argument's value
    B.
    the function cannot access the argument's value
    C.
    a temporary variable is created in the calling program to hold the argument's value
    D.
    the function accesses the argument's original value in the calling program
    E.
    None of the above

    View Answer

    Workspace

    Discuss Discuss in Forum


  9. The process of extracting the relevant attributes of an object is known as

  10. A.
    polymorphism
    B.
    inheritance
    C.
    abstraction
    D.
    data hiding

    View Answer

    Workspace

    Discuss Discuss in Forum


  11. Which of the following statements uses the computer's clock to initialize the random number generator?

  12. A.
    srand(time);
    B.
    srand(time(NULL));
    C.
    time(srand);
    D.
    time(srand(NULL));

    View Answer

    Workspace

    Discuss Discuss in Forum


  13. A static data member is given a value

  14. A.
    within the class definition
    B.
    outside the class definition
    C.
    when the program is executed
    D.
    never

    View Answer

    Workspace

    Discuss Discuss in Forum


  15. You must provide a constructor for a derived class

  16. A.
    always
    B.
    if the base class constructor required arguments
    C.
    if the base class constructor does not required arguments
    D.
    never

    View Answer

    Workspace

    Discuss Discuss in Forum


  17. If you want to override constructor default values for an object you are instantiating, you must also override

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

    View Answer

    Workspace

    Discuss Discuss in Forum


  19. To use one of the C++ built-in mathematical functions, you must include the _____ header file in your program

  20. A.
    calculation.h
    B.
    compute.h
    C.
    expression.h
    D.
    math.h
    E.
    mathematical.h

    View Answer

    Workspace

    Discuss Discuss in Forum