Quiz: Essential Utilities

Quiz yourself on essential utilities.

1

What is the purpose of std::optional?

A)

It is a container that can hold multiple values of the same type.

B)

It is a wrapper for any type that can either be initialized or uninitialized.

C)

It is a replacement for pointers and can hold any type of object.

D)

It is a data type used to define functions that always return a value.

Question 1 of 100 attempted

Get hands-on with 1200+ tech skills courses.