Exam 16: Exceptions, Templates, and the Standard Template Library Stl
Exam 1: Introduction to Computers and Programming50 Questions
Exam 2: Introduction to C Plus Plus60 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files63 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays58 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 9: Pointers45 Questions
Exam 10: Characters, C-Strings, and More About the String Class45 Questions
Exam 11: Structured Data53 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes47 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions40 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library Stl39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues47 Questions
Exam 19: Recursion22 Questions
Exam 20: Binary Trees38 Questions
Select questions type
A(n)________ is a value or an object that signals an error.
Free
(Multiple Choice)
5.0/5
(39)
Correct Answer:
D
If an exception is thrown by a member function of a class object, then the class ________ is called.
Free
(Multiple Choice)
4.8/5
(29)
Correct Answer:
B
Using a function template requires less code than overloading a function.
Free
(True/False)
4.8/5
(33)
Correct Answer:
True
To handle an exception that has been thrown, a program must have a(n)________.
(Multiple Choice)
4.9/5
(36)
The try/catch/throw construct is able to handle only one type of exception in a try block.
(True/False)
4.8/5
(44)
The algorithms provided by the STL are implemented as ________, and perform various operations on elements of containers.
(Multiple Choice)
4.9/5
(38)
The try block is immediately followed by one or more ________.
(Multiple Choice)
4.7/5
(43)
The three sequence container objects provided by the STL are:
(Multiple Choice)
4.9/5
(37)
The ________ starts with the key word try, and is followed by a block of code executing any statements that might cause an exception to be thrown.
(Multiple Choice)
4.8/5
(46)
There is no difference between declaring an object of an ordinary class and an object of a template class.
(True/False)
5.0/5
(34)
A sequence container organizes data in a sequential fashion, similar to an array.
(True/False)
4.9/5
(31)
When you declare an iterator to work with a container, the compiler automatically chooses the right type.
(True/False)
4.9/5
(36)
A function template's prefix contains ________ enclosed in angled brackets.
(Multiple Choice)
4.9/5
(33)
Function templates allow you to write a single function definition that works with many different data types.
(True/False)
4.8/5
(43)
Showing 1 - 20 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)