logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • You can use C++ as a procedural, as well as an object-oriented, language


  • Options
  • A. True
  • B. False

  • Correct Answer
  • True 


  • Object Oriented Programming Using C++ problems


    Search Results


    • 1. Adding a derived class to a base class requires fundamental changes to the base class

    • Options
    • A. True
    • B. False
    • Discuss
    • 2. Format flags may be combined using

    • Options
    • A. the bitwise OR operator (|)
    • B. the logical OR operator (||)
    • C. the bitwise AND operator (&)
    • D. the logical AND operator (&&)
    • Discuss
    • 3. An array name is a _____

    • Options
    • A. subscript
    • B. formal parameter
    • C. memory address
    • D. prototype
    • Discuss
    • 4. To expose a data member to the program, you must declare the data member in the _____ section of the class

    • Options
    • A. common
    • B. exposed
    • C. public
    • D. unrestricted
    • E. user
    • Discuss
    • 5. To use either an input or output file, the program must include the _____ header file

    • Options
    • A. filestream.h
    • B. fstream.h
    • C. instream.h
    • D. inoutstream.h
    • E. iostream.h
    • Discuss
    • 6. 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
    • 7. A function that is called automatically each time an object is destroyed is a

    • Options
    • A. constructor
    • B. destructor
    • C. destroyer
    • D. terminator
    • Discuss
    • 8. 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
    • 9. When the compiler cannot differentiate between two overloaded constructors, they are called

    • Options
    • A. overloaded
    • B. destructed
    • C. ambiguous
    • D. dubious
    • Discuss
    • 10. 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


    Comments

    There are no comments.

Enter a new Comment