Exam 24: C++11 Additional Features
Exam 1: Introduction to Computers and C++32 Questions
Exam 2: Introduction to C Programming; Inputoutput and Operators22 Questions
Exam 3: Introduction to Classes, Objects and Strings33 Questions
Exam 4: Control Statements, Assignment, and Operators29 Questions
Exam 5: Control Statements, Logical Operators31 Questions
Exam 6: Functions and an Introduction to Recursion48 Questions
Exam 7: Class Templates Array and Vector; Catching Exceptions18 Questions
Exam 8: Pointers and Pointer-Based Strings32 Questions
Exam 9: Classes: a Deeper Look; Throwing Exceptions35 Questions
Exam 10: Operator Overloading; String and Array Objects34 Questions
Exam 11: Object-Oriented Programming: Inheritance17 Questions
Exam 12: Object-Oriented Programming: Polymorphism27 Questions
Exam 13: Stream Inputoutput: a Deeper Look34 Questions
Exam 14: File Processing19 Questions
Exam 15: Standard Library Containers and Iterators33 Questions
Exam 16: Standard Library Algorithms27 Questions
Exam 17: Exception Handling: a Deeper Look20 Questions
Exam 18: Introduction to Custom Templates9 Questions
Exam 19: Custom Templatized Data Structures17 Questions
Exam 20: Searching and Sorting10 Questions
Exam 21: Class String and String Stream Processing28 Questions
Exam 22: Bits, Characters, C Strings and Structs30 Questions
Exam 23: Other Topics22 Questions
Exam 24: C++11 Additional Features56 Questions
Select questions type
Which of the following statements creates a tuple containing two strings, an int and a double?
Free
(Multiple Choice)
4.9/5
(35)
Correct Answer:
D
In the following function int square(int value)
{
Return value * value;
}
The noexcept keyword indicates that this function ________.
Free
(Multiple Choice)
4.9/5
(27)
Correct Answer:
B
The ________ multithreading header contains class templates, a function template and enums that enable you specify functions to execute in separate threads and to receive the results of those functions when the threads complete.
Free
(Multiple Choice)
4.8/5
(31)
Correct Answer:
D
In a regular expression, the dot character "." matches any single character. When the dot character is followed by a(n) ________, the regular expression matches any number of unspecified characters.
(Multiple Choice)
4.8/5
(31)
Which of the following initializes a vector<int> with a list initializer:
(Multiple Choice)
4.7/5
(35)
A tuple is a fixed-size collection of values that can be of ________.
(Multiple Choice)
4.8/5
(35)
Which of the following statements about regular expresions is false.
(Multiple Choice)
4.9/5
(36)
A tuple's ________ moves a tuple's elements into a new tuple of the same type.
(Multiple Choice)
4.9/5
(35)
The ________ multithreading header contains class thread for manually creating and starting threads, and functions yield, get_id, sleep_for and sleep_until.
(Multiple Choice)
4.8/5
(36)
As of C++11, C++ now supports raw string literals that have the format R"optionalDelimiter(characters)optionalDelimiter"
Which of the following statements is false:
(Multiple Choice)
4.8/5
(45)
If a program throws an exception before delete has been called on a pointer, it creates a memory leak. After an exception is thrown, a(n) ________ destructor will still be called, which calls delete on the pointer for you.
(Multiple Choice)
4.7/5
(43)
An rvalue reference is used to implement move semantics-instead of being ________, the object's state (i.e., its content) is ________, leaving the original in a state that can be properly destructed.
(Multiple Choice)
4.8/5
(30)
Each time a new shared_ptr to the resource is created, the reference count ________, and each time one is destroyed, the reference count ________.
(Multiple Choice)
4.8/5
(34)
There are many cases in which the object being copied is about to be destroyed, such as a temporary object that was returned from a function by value or a local object that's going out of scope. In such cases, it's better to move the contents of the object that's about to be destroyed into the destination object, thus avoiding ________.
(Multiple Choice)
4.8/5
(33)
The ________ multithreading header contains classes and class templates for ensuring mutually exlusive access to resources shared among threads in an application.
(Multiple Choice)
4.8/5
(35)
Which of the following statements is true when a class contains both a copy constructor and a move constructor.
(Multiple Choice)
4.9/5
(43)
Though multithreading has been around for decades, interest in it is rising quickly due to the proliferation of ________ systems.
(Multiple Choice)
4.8/5
(31)
When the reference count reaches zero, the ________ is deleted and the memory is released.
(Multiple Choice)
4.7/5
(28)
Showing 1 - 20 of 56
Filters
- Essay(0)
- Multiple Choice(0)
- Short Answer(0)
- True False(0)
- Matching(0)