Exam 16: Exceptions, Templates, and the Standard Template Library STL
Exam 1: Introduction to Computers and Programming44 Questions
Exam 2: Introduction to C++56 Questions
Exam 3: Expressions and Interactivity44 Questions
Exam 4: Making Decisions53 Questions
Exam 5: Loops and Files62 Questions
Exam 6: Functions49 Questions
Exam 7: Arrays53 Questions
Exam 8: Searching and Sorting Arrays20 Questions
Exam 10: Characters, C++-Strings, and More About the String Class42 Questions
Exam 11: Structured Data43 Questions
Exam 11: Structured Data50 Questions
Exam 12: Advanced File Operations38 Questions
Exam 13: Introduction to Classes46 Questions
Exam 14: More About Classes40 Questions
Exam 15: Inheritance, Polymorphism, and Virtual Functions38 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL39 Questions
Exam 17: Linked Lists40 Questions
Exam 18: Stacks and Queues46 Questions
Exam 19: Recursion21 Questions
Exam 20: Binary Trees38 Questions
Select questions type
The line containing a throw statement is known as the throw point.
Free
(True/False)
4.8/5
(36)
Correct Answer:
True
To handle an exception that has been thrown, a program must have a(n) _________________.
Free
(Multiple Choice)
4.7/5
(36)
Correct Answer:
B
A program may not contain both a "regular" version of a function and a template version of the function.
Free
(True/False)
4.8/5
(30)
Correct Answer:
False
The three sequence container objects provided by the STL are:
(Multiple Choice)
5.0/5
(32)
The Standard Template Library (STL) contains templates for useful algorithms and data structures.
(True/False)
4.8/5
(30)
The algorithms provided by the STL are implemented as _____________, and perform various operations on elements of containers.
(Multiple Choice)
5.0/5
(38)
A(n)__________ is a class that stores data and organizes it in some fashion.
(Multiple Choice)
4.8/5
(30)
If an exception is thrown by a member function of a class object, then the class __________ is called.
(Multiple Choice)
4.8/5
(35)
In the following statement template < class T >
What does T represent?
(Multiple Choice)
4.9/5
(38)
This is a "generic" function that can work with any data type.
(Multiple Choice)
4.9/5
(38)
In a function template, the programmer substitutes _________ for __________.
(Multiple Choice)
4.8/5
(39)
The most important data structures in the STL are _______ and _________.
(Multiple Choice)
4.9/5
(50)
The try/catch/throw construct is able to handle only one type of exception in a try block.
(True/False)
4.9/5
(38)
There is no difference between declaring an object of an ordinary class and an object of a template class.
(True/False)
4.9/5
(30)
Showing 1 - 20 of 39
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)