#include &lt;iostream&gt;    #include &lt;deque&gt;    using namespace std;    int main &#40;&#41;    &#123;        unsigned int i;        deque&lt;int&gt; a &#40;3,100&#41;;        deque&lt;int&gt; b &#40;5,200&#41;;        a.swap&#40;b&#41;;        cout &lt;&lt; &quot;a contains:&quot;;        for &#40;deque&lt;int&gt;::iterator it = a.begin&#40;&#41;; it != a.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        cout &lt;&lt; &quot;b contains:&quot;;        for &#40;deque&lt;int&gt;::iterator it = b.begin&#40;&#41;; it != b.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. a contains: 200 200 200 200 200b contains: 100 100 100
B. a contains: 100 100 100 100 100b contains: 200 200 200
C. a contains: 200 200 200 200 200b contains: 200 200 200
D. None of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;deque&gt;    using namespace std;    int main &#40;&#41;    &#123;        unsigned int i;        deque&lt;int&gt; a &#40;3,100&#41;;        deque&lt;int&gt; b &#40;5,200&#41;;        a.swap&#40;b&#41;;        cout &lt;&lt; &quot;a contains:&quot;;        for &#40;deque&lt;int&gt;::iterator it = a.begin&#40;&#41;; it != a.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        cout &lt;&lt; &quot;b contains:&quot;;        for &#40;deque&lt;int&gt;::iterator it = b.begin&#40;&#41;; it != b.end&#40;&#41;; ++it&#41;            cout &lt;&lt; ' ' &lt;&lt; *it;        return 0;    &#125;
A. a contains: 200 200 200 200 200b contains: 100 100 100 B. a contains: 100 100 100 100 100b contains: 200 200 200 C. a contains: 200 200 200 200 200b contains: 200 200 200 D. None of the mentioned
Explanation:In this program, We swapped the values of both dequeues and printing the dequeues.