logo

CuriousTab

CuriousTab

Discussion


Home Computer Science Object Oriented Programming Using C++ Comments

  • Question
  • A default catch block catches


  • Options
  • A. all thrown objects
  • B. no thrown objects
  • C. any thrown object that has not been caught by an earlier catch block
  • D. all thrown objects that have been caught by an earlier catch block

  • Correct Answer
  • any thrown object that has not been caught by an earlier catch block 


  • Object Oriented Programming Using C++ problems


    Search Results


    • 1. Which of the following statements is false?

    • Options
    • A. A function is a block of code that performs a specific task
    • B. Functions allow programmers to break large and complex problems into small and manageable tasks
    • C. Functions allow programmers to use existing code to perform common tasks
    • D. Functions can be called, or invoked, only once in a program
    • E. Programmer-defined functions can be either value-returning or void
    • Discuss
    • 2. The generic type in a template function

    • Options
    • A. must be T
    • B. can be T
    • C. cannot be T for functions you create, but may be for C++'s built-in functions
    • D. cannot be T
    • Discuss
    • 3. Of the three ways to pass arguments to functions, only passing by _____ and passing by _____ allow the function to modify the argument in the calling program

    • Options
    • A. reference, pointer
    • B. array, location
    • C. array, pointer
    • D. None of the above
    • Discuss
    • 4. A base class may also be called a

    • Options
    • A. child class
    • B. subclass
    • C. derived class
    • D. parent class
    • Discuss
    • 5. Redirection redirects

    • Options
    • A. a stream from a file to the screen
    • B. a file from a device to a stream
    • C. a device from the screen to a file
    • D. the screen from a device to a stream
    • Discuss
    • 6. Using the wardrobe structure within the ShopList structure is an example of a good programming principle, known as _____

    • Options
    • A. reusability
    • B. polymorphism
    • C. redundancy
    • D. recursion
    • Discuss
    • 7. A function that changes the state of the cout object is called a(n) _____

    • Options
    • A. member
    • B. adjuster
    • C. manipulator
    • D. operator
    • Discuss
    • 8. The _____ mode tells C++ to open a file for input

    • Options
    • A. add::ios
    • B. in::file
    • C. ios::app
    • D. ios::in
    • E. ios::out
    • Discuss
    • 9. The #ifndef directive tests to see whether ________

    • Options
    • A. a class has been defined
    • B. a variable has been given a value
    • C. a class has no variable definitions
    • D. any objects of the class have been instantiated
    • Discuss
    • 10. To be called object-oriented, a programming language must allow

    • Options
    • A. functions that return only a single value
    • B. #include files
    • C. inheritance
    • D. All of the above
    • Discuss


    Comments

    There are no comments.

Enter a new Comment