#include &lt;iostream&gt;    using namespace std;    void func&#40;int a, bool flag = true&#41;    &#123;        if &#40;flag == true &#41; &#123;            cout &lt;&lt; &quot;Flag is true. a = &quot; &lt;&lt; a;        &#125;        else &#123;            cout &lt;&lt; &quot;Flag is false. a = &quot; &lt;&lt; a;        &#125;    &#125;    int main&#40;&#41;    &#123;        func&#40;200, false&#41;;        return 0;    &#125;
A. Flag is true. a = 200
B. Flag is false. a = 100
C. Flag is false. a = 200
D. Flag is true. a = 100
Answer:A
#include &lt;iostream&gt;    using namespace std;    void func&#40;int a, bool flag = true&#41;    &#123;        if &#40;flag == true &#41; &#123;            cout &lt;&lt; &quot;Flag is true. a = &quot; &lt;&lt; a;        &#125;        else &#123;            cout &lt;&lt; &quot;Flag is false. a = &quot; &lt;&lt; a;        &#125;    &#125;    int main&#40;&#41;    &#123;        func&#40;200, false&#41;;        return 0;    &#125;
A. Flag is true. a = 200 B. Flag is false. a = 100 C. Flag is false. a = 200 D. Flag is true. a = 100
Explanation:In this program, we are passing the value, as it evaluates to false, it produces the output as following.