Answer the following questions true (T) or false (F)

1. When an exception is thrown, the function finishes its execution, its value is returned, then control is transferred to the catch block.

2. The model for the iterator in the STL was the pointer.

1. False
Explanation: When an exception is thrown in a function the throw statement throws an exception object, control and the exception object are transferred to a catch block some place up the call chain. The rest of the function is skipped. There is no return value. The exception is handled there.
2. True
Explanation: For the most powerful iterator, the random access iterator, the behavior is identical to that of a pointer. Less powerful iterators omit some of the behavior of pointers.

Computer Science & Information Technology

You might also like to view...

A drop cap is inserted ________ a paragraph

A) at the beginning of B) at the end of C) above D) below

Computer Science & Information Technology

When you wrap text around a grouped object that includes a text frame, the text in the object disappears. How do you fix it?

What will be an ideal response?

Computer Science & Information Technology