Question 2 (5) ============== Which of the following statements about the program below are true? .. list-table:: :align: left :header-rows: 1 * * Statement * True * * The output of the following program run is empty, and the exit status is 0. .. code-block:: console $ ./example2 0 $ echo $? 0 * .. list-table:: :align: left :header-rows: 1 * * Statement * True * * Output and exit status are: .. code-block:: console $ ./example2 1 Foo() bar() ~Foo() $ echo $? 0 * .. list-table:: :align: left :header-rows: 1 * * Statement * True * * Output and exit status are: .. code-block:: console $ ./example2 need one parameter $ echo $? 0 * .. list-table:: :align: left :header-rows: 1 * * Statement * True * * The program has a memory leak * .. list-table:: :align: left :header-rows: 1 * * Statement * True * * The program's behavior is undefined * *Note*: ``std::stoi()`` converts its parameter to ``int``, or raises an exception if that is not convertible (e.g. ``"xxx"``) .. literalinclude:: code/example2.cpp :language: c++ :caption: :download:`code/example2.cpp`