Exam 24: C++11 Additional Features

arrow
  • Select Tags
search iconSearch Question
flashcardsStudy Flashcards
  • Select Tags

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:
Verified

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:
Verified

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:
Verified

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)

Which statement is false?

(Multiple Choice)
4.8/5
(34)

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)

Tuples that contain the same number of members ________.

(Multiple Choice)
4.9/5
(31)

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
close modal

Filters

  • Essay(0)
  • Multiple Choice(0)
  • Short Answer(0)
  • True False(0)
  • Matching(0)