Book Image

Learning Boost C++ Libraries

By : Arindam Mukherjee
Book Image

Learning Boost C++ Libraries

By: Arindam Mukherjee

Overview of this book

Table of Contents (19 chapters)
Learning Boost C++ Libraries
About the Author
About the Reviewers

Self-test questions

For multiple choice questions, choose all options that apply:

  1. What are the Abraham's Exception Safety Guarantees?

    a. Basic, weak, and strong

    b. Basic, strong, and no-throw

    c. Weak, strong, and no-throw

    d. None, basic, and strong

  2. What are the main differences between boost::scoped_ptr and std::unique_ptr?

    a. boost::scoped_ptr does not support move semantics

    b. std::scoped_ptr has no partial specialization for arrays

    c. std::unique_ptr can be stored in STL containers

    d. std::unique_ptr supports custom deleters

  3. Why is boost::shared_ptr heavier than other smart pointers?

    a. It uses a shared reference counter

    b. It supports both copy and move semantics

    c. It uses two allocations per encapsulated object

    d. It is not heavier than other smart pointers

  4. What is the disadvantage of using boost::make_shared to create a shared_ptr?

    a. It is slower than directly instantiating boost::shared_ptr

    b. It is not thread safe

    c. It does not release object memory until all weak_ptr referents expire

    d. It is not...