logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • When the compiler cannot differentiate between two overloaded constructors, they are called


  • Options
  • A. overloaded
  • B. destructed
  • C. ambiguous
  • D. dubious

  • Correct Answer
  • ambiguous 


  • Object Oriented Programming Using C++ problems


    Search Results


    • 1. When you pass a variable _____, C++ passes only the contents of the variable to the receiving function

    • Options
    • A. by reference
    • B. by value
    • C. globally
    • D. locally
    • Discuss
    • 2. A function that is called automatically each time an object is destroyed is a

    • Options
    • A. constructor
    • B. destructor
    • C. destroyer
    • D. terminator
    • Discuss
    • 3. If container classes are carefully constructed, then these tools are available to work with structures that are not ______

    • Options
    • A. valid without container classes
    • B. programmer-defined
    • C. type-specific
    • D. public
    • Discuss
    • 4. You can use C++ as a procedural, as well as an object-oriented, language

    • Options
    • A. True
    • B. False
    • Discuss
    • 5. Adding a derived class to a base class requires fundamental changes to the base class

    • Options
    • A. True
    • B. False
    • Discuss
    • 6. If you create an instantiation of a class template with an int, and then create a second instantiation with a double, then

    • Options
    • A. you must precede each function call with the word int or double
    • B. once a function is used as one type, it becomes unavailable for use with the other type
    • C. there is no difference in the procedure to call a member function
    • D. you cannot perform this operation in C++
    • Discuss
    • 7. The best form of coupling is _____

    • Options
    • A. complete
    • B. tight
    • C. loose
    • D. free
    • Discuss
    • 8. Sending a copy of data to a program module is called _______

    • Options
    • A. passing a value
    • B. making a reference
    • C. recursion
    • D. setting a condition
    • Discuss
    • 9. Which of the following are valid characters for a numeric literal constant?

    • Options
    • A. a comma
    • B. a dollar sign ($)
    • C. a percent sign (%)
    • D. a space
    • E. None of the above
    • Discuss
    • 10. Which of the following is(are) invalid string constant(s)?

    • Options
    • A. '7.15 pm'
    • B. "i like e"
    • C. "7.3el2"
    • D. "1234el2"
    • E. None of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment