Exam 16: Exceptions, Templates, and the Standard Template Library STL
Exam 1: Introduction to Computers and Programming40 Questions
Exam 2: Introduction to C++40 Questions
Exam 3: Expressions and Interactivity40 Questions
Exam 4: Making Decisions37 Questions
Exam 5: Looping38 Questions
Exam 6: Functions40 Questions
Exam 7: Introduction to Classes and Objects40 Questions
Exam 8: Arrays37 Questions
Exam 9: Searching, Sorting, and Algorithm Analysis36 Questions
Exam 10: Pointers50 Questions
Exam 11: More About Classes and Object-Oriented Programming64 Questions
Exam 12: More on C-Strings and the String Class38 Questions
Exam 13: Advanced File and Io Operations38 Questions
Exam 14: Recursion20 Questions
Exam 15: Polymorphism and Virtual Functions20 Questions
Exam 16: Exceptions, Templates, and the Standard Template Library STL40 Questions
Exam 17: Linked Lists38 Questions
Exam 18: Stacks and Queues36 Questions
Exam 19: Binary Trees37 Questions
Select questions type
In the statement template <class T>, what does T represent?
Free
(Multiple Choice)
4.9/5
(31)
Correct Answer:
C
The most important data structures in the STL are _ _ and .
Free
(Multiple Choice)
4.8/5
(35)
Correct Answer:
C
The C++ mechanism for exception handling encloses code that might throw an exception in a try block and puts exception handling code in catch blocks attached to the try block.
(True/False)
4.9/5
(46)
The STL vector and list classes are examples of sequential containers.
(True/False)
4.8/5
(32)
In the statement template <class T>, what does the word class indicate?
(Multiple Choice)
4.9/5
(38)
A(n)_ is a class that stores data and organizes it in some fashion.
(Multiple Choice)
4.9/5
(36)
An exception is a condition that can be caused by a syntax error in the program.
(True/False)
4.8/5
(36)
A(n)is used in a function template to specify a generic data type.
(Multiple Choice)
4.8/5
(34)
Function templates allow you to write a single function definition that works with many different data types.
(True/False)
4.8/5
(36)
A(n)is like a pointer. It is used to access the individual data elements in a container.
(Multiple Choice)
4.7/5
(43)
The line containing a throw statement is known as the throw point.
(True/False)
4.8/5
(32)
A thrown exception for which there is no matching catch block will cause the execution of the program to abort.
(True/False)
4.8/5
(44)
An associative container uses to access values stored in it.
(Multiple Choice)
4.8/5
(38)
A function template's prefix contains _ in angled brackets.
(Multiple Choice)
4.8/5
(38)
All type parameters defined in a function template must appear at least once in the
(Multiple Choice)
4.9/5
(33)
Showing 1 - 20 of 40
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)