#include &lt;iostream&gt;    using namespace std;    int main&#40;&#41;    &#123;        int x = -1;        try         &#123;            if &#40;x &lt; 0&#41;            &#123;                throw x;            &#125;            else            &#123;                cout&lt;&lt;x;            &#125;        &#125;        catch &#40;int x &#41;        &#123;            cout &lt;&lt; &quot;Exception occurred: Thrown value is &quot; &lt;&lt; x &lt;&lt; endl;        &#125;        return 0;    &#125;
A. -1
B. 0
C. Exception occurred: Thrown value is -1
D. error
Answer:A
#include &lt;iostream&gt;    using namespace std;    int main&#40;&#41;    &#123;        int x = -1;        try         &#123;            if &#40;x &lt; 0&#41;            &#123;                throw x;            &#125;            else            &#123;                cout&lt;&lt;x;            &#125;        &#125;        catch &#40;int x &#41;        &#123;            cout &lt;&lt; &quot;Exception occurred: Thrown value is &quot; &lt;&lt; x &lt;&lt; endl;        &#125;        return 0;    &#125;
A. -1 B. 0 C. Exception occurred: Thrown value is -1 D. error
Explanation:As the given value is -1 and according to the condition, We are arising an exception.