{"id":117380,"date":"2026-01-13T08:01:20","date_gmt":"2026-01-13T08:01:20","guid":{"rendered":"https:\/\/www.dumpsbase.com\/freedumps\/?p=117380"},"modified":"2026-01-13T08:01:20","modified_gmt":"2026-01-13T08:01:20","slug":"master-cpp-22-02-in-2026-with-the-latest-dumps-v8-02-free-c-certified-professional-programmer-cpp-22-02-free-dumps-part-2-q41-q85","status":"publish","type":"post","link":"https:\/\/www.dumpsbase.com\/freedumps\/master-cpp-22-02-in-2026-with-the-latest-dumps-v8-02-free-c-certified-professional-programmer-cpp-22-02-free-dumps-part-2-q41-q85.html","title":{"rendered":"Master CPP-22-02 in 2026 with the Latest Dumps (V8.02) + Free C++ Certified Professional Programmer CPP-22-02 Free Dumps (Part 2, Q41-Q85)"},"content":{"rendered":"<p>Effective CPP &#8211; C++ Certified Professional Programmer exam preparation starts with DumpsBase\u2019s CPP-22-02 dumps (V8.02) today. All the CPP-22-02 exam questions in V8.02 are created and reviewed by certified experts, ensuring accuracy and relevance to the current exam format. We have previously shared the <a href=\"https:\/\/www.dumpsbase.com\/freedumps\/pass-cpp-22-02-exam-in-2026-comprehensive-c-certified-professional-programmer-cpp-22-02-dumps-v8-02-free-dumps-part-1-q1-q40.html\"><em><strong>CPP-22-02 free dumps (Part 1, Q1-Q40) of V8.02<\/strong><\/em><\/a>, so you can trust that our dumps provide a structured learning experience, helping you focus on the areas that matter most\u2014from STL containers and algorithms to smart pointers, templates, and modern C++ features. With these CPP-22-02 dumps featuring 228 practice questions, you can track your progress, identify weak areas, and strengthen your understanding through continuous practice. So choose DumpsBase now. This not only helps you earn the C++ Certified Professional Programmer certification but also positions you ahead in the competitive programming industry.<\/p>\n<h2>Today, we will continue to share the <span style=\"background-color: #00ff00;\"><em>CPP-22-02 free dumps (Part 2, Q41-Q85) of V8.02 online<\/em><\/span>:<\/h2>\n<script>\n\t  window.fbAsyncInit = function() {\n\t    FB.init({\n\t      appId            : '622169541470367',\n\t      autoLogAppEvents : true,\n\t      xfbml            : true,\n\t      version          : 'v3.1'\n\t    });\n\t  };\n\t\n\t  (function(d, s, id){\n\t     var js, fjs = d.getElementsByTagName(s)[0];\n\t     if (d.getElementById(id)) {return;}\n\t     js = d.createElement(s); js.id = id;\n\t     js.src = \"https:\/\/connect.facebook.net\/en_US\/sdk.js\";\n\t     fjs.parentNode.insertBefore(js, fjs);\n\t   }(document, 'script', 'facebook-jssdk'));\n\t<\/script><script type=\"text\/javascript\" >\ndocument.addEventListener(\"DOMContentLoaded\", function(event) { \nif(!window.jQuery) alert(\"The important jQuery library is not properly loaded in your site. Your WordPress theme is probably missing the essential wp_head() call. You can switch to another theme and you will see that the plugin works fine and this notice disappears. If you are still not sure what to do you can contact us for help.\");\n});\n<\/script>  \n  \n<div  id=\"watupro_quiz\" class=\"quiz-area single-page-quiz\">\n<p id=\"submittingExam11405\" style=\"display:none;text-align:center;\"><img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/img\/loading.gif\" width=\"16\" height=\"16\"><\/p>\n\n<div class=\"watupro-exam-description\" id=\"description-quiz-11405\"><\/div>\n\n<form action=\"\" method=\"post\" class=\"quiz-form\" id=\"quiz-11405\"  enctype=\"multipart\/form-data\" >\n<div class='watu-question ' id='question-1' style=';'><div id='questionWrap-1'  class='   watupro-question-id-448238'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>1. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;deque&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>void myfunction(int i) { <br \/>\r<br>cout &lt;&lt; &quot; &quot; &lt;&lt; i; <br \/>\r<br>} <br \/>\r<br>int main() { <br \/>\r<br>int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 }; <br \/>\r<br>vector&lt;int&gt; v1(t, t + 10); <br \/>\r<br>deque&lt;int&gt; d1(t, t + 10); <br \/>\r<br>set&lt;int&gt; s1(t, t + 10); <br \/>\r<br>for_each(v1.begin(), v1.end(), myfunction); \/\/ Line I <br \/>\r<br>for_each(d1.begin(), d1.end(), myfunction); \/\/ Line II <br \/>\r<br>for_each(s1.begin(), s1.end(), myfunction); \/\/ Line III <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_1' value='448238' \/><input type='hidden' id='answerType448238' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448238[]' id='answer-id-1734253' class='answer   answerof-448238 ' value='1734253'   \/><label for='answer-id-1734253' id='answer-label-1734253' class=' answer'><span>program outputs: 10 5 9 6 2 4 7 8 3 1 10 5 9 6 2 4 7 8 3 1 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448238[]' id='answer-id-1734254' class='answer   answerof-448238 ' value='1734254'   \/><label for='answer-id-1734254' id='answer-label-1734254' class=' answer'><span>program outputs: 10 5 9 6 2 4 7 8 3 1 10 5 9 6 2 4 7 8 3 1 10 5 9 6 2 4 7 8 3 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448238[]' id='answer-id-1734255' class='answer   answerof-448238 ' value='1734255'   \/><label for='answer-id-1734255' id='answer-label-1734255' class=' answer'><span>program outputs: 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448238[]' id='answer-id-1734256' class='answer   answerof-448238 ' value='1734256'   \/><label for='answer-id-1734256' id='answer-label-1734256' class=' answer'><span>compilation error in line I<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448238[]' id='answer-id-1734257' class='answer   answerof-448238 ' value='1734257'   \/><label for='answer-id-1734257' id='answer-label-1734257' class=' answer'><span>compilation error in line III<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-2' style=';'><div id='questionWrap-2'  class='   watupro-question-id-448239'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>2. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} bool operator &gt; (const B &amp; v) const { return val&gt;v.val;} }; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>B t[]={3,2,4,1,5,10,9,7,8,6}; <br \/>\r<br>vector&lt;B&gt; v1(t,t+10); <br \/>\r<br>sort(v1.begin(), v1.end(), greater&lt;B&gt;()); <br \/>\r<br>cout&lt;&lt;*min_element(v1.begin(), v1.end()); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_2' value='448239' \/><input type='hidden' id='answerType448239' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448239[]' id='answer-id-1734258' class='answer   answerof-448239 ' value='1734258'   \/><label for='answer-id-1734258' id='answer-label-1734258' class=' answer'><span>3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448239[]' id='answer-id-1734259' class='answer   answerof-448239 ' value='1734259'   \/><label for='answer-id-1734259' id='answer-label-1734259' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448239[]' id='answer-id-1734260' class='answer   answerof-448239 ' value='1734260'   \/><label for='answer-id-1734260' id='answer-label-1734260' class=' answer'><span>6<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448239[]' id='answer-id-1734261' class='answer   answerof-448239 ' value='1734261'   \/><label for='answer-id-1734261' id='answer-label-1734261' class=' answer'><span>10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448239[]' id='answer-id-1734262' class='answer   answerof-448239 ' value='1734262'   \/><label for='answer-id-1734262' id='answer-label-1734262' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-3' style=';'><div id='questionWrap-3'  class='   watupro-question-id-448240'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>3. <\/span>What will happen when you attempt to compile and run the code below, assuming that file test.in <br \/>\r<br>contains the following sequence: 1 2 3? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;fstream&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>#include &lt;list&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) {out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main () { <br \/>\r<br>ifstream f(&quot;test.in&quot;); <br \/>\r<br>list&lt;int&gt; l; <br \/>\r<br>for( ; !f.fail() ; ) { <br \/>\r<br>int i; <br \/>\r<br>f&gt;&gt;i; <br \/>\r<br>l.push_back(i); <br \/>\r<br>} <br \/>\r<br>f.close(); <br \/>\r<br>for_each(l.begin(), l.end(), Out&lt;int&gt;(cout)); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Programwill output:<\/div><input type='hidden' name='question_id[]' id='qID_3' value='448240' \/><input type='hidden' id='answerType448240' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448240[]' id='answer-id-1734263' class='answer   answerof-448240 ' value='1734263'   \/><label for='answer-id-1734263' id='answer-label-1734263' class=' answer'><span>1 2 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448240[]' id='answer-id-1734264' class='answer   answerof-448240 ' value='1734264'   \/><label for='answer-id-1734264' id='answer-label-1734264' class=' answer'><span>1 2 3 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448240[]' id='answer-id-1734265' class='answer   answerof-448240 ' value='1734265'   \/><label for='answer-id-1734265' id='answer-label-1734265' class=' answer'><span>no output<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448240[]' id='answer-id-1734266' class='answer   answerof-448240 ' value='1734266'   \/><label for='answer-id-1734266' id='answer-label-1734266' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448240[]' id='answer-id-1734267' class='answer   answerof-448240 ' value='1734267'   \/><label for='answer-id-1734267' id='answer-label-1734267' class=' answer'><span>program runs forever without output<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-4' style=';'><div id='questionWrap-4'  class='   watupro-question-id-448241'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>4. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;deque&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} bool operator &lt; (const B &amp; v) const { return val&lt;v.val;} }; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3}; <br \/>\r<br>deque&lt;B&gt; d1(t, t+10); <br \/>\r<br>sort(d1.begin(), d1.end()); <br \/>\r<br>deque&lt;B&gt;::iterator it = upper_bound(d1.begin(), d1.end(), B(4), greater&lt;B&gt;()); <br \/>\r<br>for_each(it, d1.end(), Out&lt;B&gt;(cout)); cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_4' value='448241' \/><input type='hidden' id='answerType448241' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448241[]' id='answer-id-1734268' class='answer   answerof-448241 ' value='1734268'   \/><label for='answer-id-1734268' id='answer-label-1734268' class=' answer'><span>5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448241[]' id='answer-id-1734269' class='answer   answerof-448241 ' value='1734269'   \/><label for='answer-id-1734269' id='answer-label-1734269' class=' answer'><span>4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448241[]' id='answer-id-1734270' class='answer   answerof-448241 ' value='1734270'   \/><label for='answer-id-1734270' id='answer-label-1734270' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448241[]' id='answer-id-1734271' class='answer   answerof-448241 ' value='1734271'   \/><label for='answer-id-1734271' id='answer-label-1734271' class=' answer'><span>1 2 3 4 5<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448241[]' id='answer-id-1734272' class='answer   answerof-448241 ' value='1734272'   \/><label for='answer-id-1734272' id='answer-label-1734272' class=' answer'><span>1 2 3 4<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-5' style=';'><div id='questionWrap-5'  class='   watupro-question-id-448242'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>5. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main () { <br \/>\r<br>int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5}; <br \/>\r<br>vector&lt;int&gt; v (t,t+15); <br \/>\r<br>vector&lt;int&gt;::iterator it = search_n(v.begin(), v.end(), 4, 2); <br \/>\r<br>cout&lt;&lt; it?v.begin()&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_5' value='448242' \/><input type='hidden' id='answerType448242' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448242[]' id='answer-id-1734273' class='answer   answerof-448242 ' value='1734273'   \/><label for='answer-id-1734273' id='answer-label-1734273' class=' answer'><span>10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448242[]' id='answer-id-1734274' class='answer   answerof-448242 ' value='1734274'   \/><label for='answer-id-1734274' id='answer-label-1734274' class=' answer'><span>3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448242[]' id='answer-id-1734275' class='answer   answerof-448242 ' value='1734275'   \/><label for='answer-id-1734275' id='answer-label-1734275' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448242[]' id='answer-id-1734276' class='answer   answerof-448242 ' value='1734276'   \/><label for='answer-id-1734276' id='answer-label-1734276' class=' answer'><span>15<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448242[]' id='answer-id-1734277' class='answer   answerof-448242 ' value='1734277'   \/><label for='answer-id-1734277' id='answer-label-1734277' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-6' style=';'><div id='questionWrap-6'  class='   watupro-question-id-448243'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>6. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class A { <br \/>\r<br>int a; <br \/>\r<br>public: <br \/>\r<br>A(int a) : a(a) {} <br \/>\r<br>int getA() const { return a; } void setA(int a) { this?&gt;a = a; } <br \/>\r<br>operator int() const {return a;} <br \/>\r<br>}; <br \/>\r<br>int main () { <br \/>\r<br>int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5}; <br \/>\r<br>set&lt;A&gt; s (t,t+15); <br \/>\r<br>cout&lt;&lt;equal(s.begin(), s.end(), t)&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_6' value='448243' \/><input type='hidden' id='answerType448243' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448243[]' id='answer-id-1734278' class='answer   answerof-448243 ' value='1734278'   \/><label for='answer-id-1734278' id='answer-label-1734278' class=' answer'><span>true<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448243[]' id='answer-id-1734279' class='answer   answerof-448243 ' value='1734279'   \/><label for='answer-id-1734279' id='answer-label-1734279' class=' answer'><span>false<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448243[]' id='answer-id-1734280' class='answer   answerof-448243 ' value='1734280'   \/><label for='answer-id-1734280' id='answer-label-1734280' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448243[]' id='answer-id-1734281' class='answer   answerof-448243 ' value='1734281'   \/><label for='answer-id-1734281' id='answer-label-1734281' class=' answer'><span>0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448243[]' id='answer-id-1734282' class='answer   answerof-448243 ' value='1734282'   \/><label for='answer-id-1734282' id='answer-label-1734282' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-7' style=';'><div id='questionWrap-7'  class='   watupro-question-id-448244'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>7. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt; void print(T start, T end) { <br \/>\r<br>while (start != end) { <br \/>\r<br>std::cout &lt;&lt; *start &lt;&lt; &quot; &quot;; start++; <br \/>\r<br>} <br \/>\r<br>} <br \/>\r<br>int main(){ <br \/>\r<br>vector&lt;int&gt;v; <br \/>\r<br>multiset&lt;int&gt; s; <br \/>\r<br>for(int i=10; i&gt;0; i??) { <br \/>\r<br>v.push_back(i); s.push_back(i); <br \/>\r<br>} <br \/>\r<br>print(v.begin(), v.end()); print(s.begin(), s.end());cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_7' value='448244' \/><input type='hidden' id='answerType448244' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448244[]' id='answer-id-1734283' class='answer   answerof-448244 ' value='1734283'   \/><label for='answer-id-1734283' id='answer-label-1734283' class=' answer'><span>program outputs: 10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448244[]' id='answer-id-1734284' class='answer   answerof-448244 ' value='1734284'   \/><label for='answer-id-1734284' id='answer-label-1734284' class=' answer'><span>program outputs: 10 9 8 7 6 5 4 3 2 1 10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448244[]' id='answer-id-1734285' class='answer   answerof-448244 ' value='1734285'   \/><label for='answer-id-1734285' id='answer-label-1734285' class=' answer'><span>program outputs: 10 9 8 7 6 5 4 3 2 1 and unpredictable sequence of numbers range 1 to 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448244[]' id='answer-id-1734286' class='answer   answerof-448244 ' value='1734286'   \/><label for='answer-id-1734286' id='answer-label-1734286' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-8' style=';'><div id='questionWrap-8'  class='   watupro-question-id-448245'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>8. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;deque&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>struct Sequence { int start; <br \/>\r<br>Sequence(int start):start(start){} <br \/>\r<br>int operator()() {return 10*(1+(start++ %3));} <br \/>\r<br>}; <br \/>\r<br>int main() { <br \/>\r<br>deque&lt;int&gt; d1(10); <br \/>\r<br>generate(d1.begin(), d1.end(), Sequence(1)); <br \/>\r<br>sort(d1.begin(), d1.end()); <br \/>\r<br>pair&lt;deque&lt;int&gt;::iterator, deque&lt;int&gt;::iterator &gt; result = equal_range(d1.begin(), d1.end(), 20); <br \/>\r<br>for_each(result.first, result.second, Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_8' value='448245' \/><input type='hidden' id='answerType448245' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448245[]' id='answer-id-1734287' class='answer   answerof-448245 ' value='1734287'   \/><label for='answer-id-1734287' id='answer-label-1734287' class=' answer'><span>10 10 10 20 20 20 20 30 30 30<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448245[]' id='answer-id-1734288' class='answer   answerof-448245 ' value='1734288'   \/><label for='answer-id-1734288' id='answer-label-1734288' class=' answer'><span>20 20 20 20<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448245[]' id='answer-id-1734289' class='answer   answerof-448245 ' value='1734289'   \/><label for='answer-id-1734289' id='answer-label-1734289' class=' answer'><span>10 20 20 20 20<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448245[]' id='answer-id-1734290' class='answer   answerof-448245 ' value='1734290'   \/><label for='answer-id-1734290' id='answer-label-1734290' class=' answer'><span>20 20 20 20 30<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448245[]' id='answer-id-1734291' class='answer   answerof-448245 ' value='1734291'   \/><label for='answer-id-1734291' id='answer-label-1734291' class=' answer'><span>10 20 20 20 20 30<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-9' style=';'><div id='questionWrap-9'  class='   watupro-question-id-448246'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>9. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>void myfunction(int i) { <br \/>\r<br>cout &lt;&lt; &quot; &quot; &lt;&lt; i; <br \/>\r<br>} <br \/>\r<br>bool classifier(int v) { <br \/>\r<br>return v%2==0; <br \/>\r<br>} <br \/>\r<br>int main() { <br \/>\r<br>int t[] = { 1, 5, 2, 5, 2, 4, 4, 3, 3, 1 }; <br \/>\r<br>vector&lt;int&gt; v1(t, t+10); <br \/>\r<br>set&lt;int&gt; s1(t, t+10); <br \/>\r<br>replace(v1.begin(), v1.end(),classifier, 10); <br \/>\r<br>for_each(v1.begin(), v1.end(), myfunction); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_9' value='448246' \/><input type='hidden' id='answerType448246' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448246[]' id='answer-id-1734292' class='answer   answerof-448246 ' value='1734292'   \/><label for='answer-id-1734292' id='answer-label-1734292' class=' answer'><span>1 5 10 5 10 10 10 3 3 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448246[]' id='answer-id-1734293' class='answer   answerof-448246 ' value='1734293'   \/><label for='answer-id-1734293' id='answer-label-1734293' class=' answer'><span>1 5 2 5 2 4 4 3 3 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448246[]' id='answer-id-1734294' class='answer   answerof-448246 ' value='1734294'   \/><label for='answer-id-1734294' id='answer-label-1734294' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448246[]' id='answer-id-1734295' class='answer   answerof-448246 ' value='1734295'   \/><label for='answer-id-1734295' id='answer-label-1734295' class=' answer'><span>10 10 2 10 2 4 4 10 10 10<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-10' style=';'><div id='questionWrap-10'  class='   watupro-question-id-448247'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>10. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>void print(int v) { cout&lt;&lt;v&lt;&lt;&quot; &quot;; } <br \/>\r<br>struct Sequence { <br \/>\r<br>int start; <br \/>\r<br>Sequence(int start):start(start){} <br \/>\r<br>int operator()() { return start++; } <br \/>\r<br>}; <br \/>\r<br>bool predicate(int v) { return v%2==0; } <br \/>\r<br>int main() { <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>generate_n(v1.begin(), 10, Sequence(1)); <br \/>\r<br>set&lt;int&gt; s1(v1.begin(), v1.end()); <br \/>\r<br>remove_if(s1.begin(), s1.end(), predicate); <br \/>\r<br>for_each(s1.begin(), s1.end(), print);cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_10' value='448247' \/><input type='hidden' id='answerType448247' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448247[]' id='answer-id-1734296' class='answer   answerof-448247 ' value='1734296'   \/><label for='answer-id-1734296' id='answer-label-1734296' class=' answer'><span>1 3 5 7 9 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448247[]' id='answer-id-1734297' class='answer   answerof-448247 ' value='1734297'   \/><label for='answer-id-1734297' id='answer-label-1734297' class=' answer'><span>1 3 5 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448247[]' id='answer-id-1734298' class='answer   answerof-448247 ' value='1734298'   \/><label for='answer-id-1734298' id='answer-label-1734298' class=' answer'><span>2 4 6 8 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448247[]' id='answer-id-1734299' class='answer   answerof-448247 ' value='1734299'   \/><label for='answer-id-1734299' id='answer-label-1734299' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-11' style=';'><div id='questionWrap-11'  class='   watupro-question-id-448248'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>11. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} bool operator &lt; (const B &amp; v) const { return val&gt;v.val;} }; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>B t1[]={3,2,4,1,5}; <br \/>\r<br>B t2[]={5,6,8,2,1}; <br \/>\r<br>vector&lt;B&gt; v1(10,0); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>set_intersection(t1,t1+5,t2,t2+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;B&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_11' value='448248' \/><input type='hidden' id='answerType448248' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448248[]' id='answer-id-1734300' class='answer   answerof-448248 ' value='1734300'   \/><label for='answer-id-1734300' id='answer-label-1734300' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448248[]' id='answer-id-1734301' class='answer   answerof-448248 ' value='1734301'   \/><label for='answer-id-1734301' id='answer-label-1734301' class=' answer'><span>1 2 3 4 5 6 8 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448248[]' id='answer-id-1734302' class='answer   answerof-448248 ' value='1734302'   \/><label for='answer-id-1734302' id='answer-label-1734302' class=' answer'><span>1 2 3 4 5 6 8 2 1 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448248[]' id='answer-id-1734303' class='answer   answerof-448248 ' value='1734303'   \/><label for='answer-id-1734303' id='answer-label-1734303' class=' answer'><span>5 2 1 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448248[]' id='answer-id-1734304' class='answer   answerof-448248 ' value='1734304'   \/><label for='answer-id-1734304' id='answer-label-1734304' class=' answer'><span>1 2 5 0 0 0 0 0 0 0<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-12' style=';'><div id='questionWrap-12'  class='   watupro-question-id-448249'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>12. <\/span>Which method added to class B at the marked spot will allow the code below to compile? Choose <br \/>\r<br>all possible solutions. <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} <br \/>\r<br>\/* Insert Code Here *\/ <br \/>\r<br>}; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3}; <br \/>\r<br>vector&lt;B&gt; v1(t, t+10); <br \/>\r<br>sort(v1.begin(), v1.end(), greater&lt;B&gt;()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;B&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_12' value='448249' \/><input type='hidden' id='answerType448249' value='checkbox'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448249[]' id='answer-id-1734305' class='answer   answerof-448249 ' value='1734305'   \/><label for='answer-id-1734305' id='answer-label-1734305' class=' answer'><span>bool operator &lt; (const B &amp; v) const { return val&lt;v.val;}<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448249[]' id='answer-id-1734306' class='answer   answerof-448249 ' value='1734306'   \/><label for='answer-id-1734306' id='answer-label-1734306' class=' answer'><span>bool operator &gt; (const B &amp; v) const { return val&lt;v.val;}<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448249[]' id='answer-id-1734307' class='answer   answerof-448249 ' value='1734307'   \/><label for='answer-id-1734307' id='answer-label-1734307' class=' answer'><span>bool operator &gt; (const B &amp; v) const { return val&gt;v.val;}<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448249[]' id='answer-id-1734308' class='answer   answerof-448249 ' value='1734308'   \/><label for='answer-id-1734308' id='answer-label-1734308' class=' answer'><span>bool operator == (const B &amp; v) const { return val==v.val;}<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448249[]' id='answer-id-1734309' class='answer   answerof-448249 ' value='1734309'   \/><label for='answer-id-1734309' id='answer-label-1734309' class=' answer'><span>operator int () const { return val; }<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-13' style=';'><div id='questionWrap-13'  class='   watupro-question-id-448250'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>13. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class A { <br \/>\r<br>int a; <br \/>\r<br>public: <br \/>\r<br>A(int a) : a(a) {} <br \/>\r<br>int getA() const { return a; } void setA(int a) { this?&gt;a = a; } <br \/>\r<br>bool operator &lt; (const A &amp; b) const { return a&lt;b.a;} <br \/>\r<br>}; <br \/>\r<br>struct Compare { <br \/>\r<br>bool operator ()(A &amp; a) { <br \/>\r<br>if (a.getA() &lt; 5) return true; <br \/>\r<br>return false; <br \/>\r<br>} <br \/>\r<br>}; <br \/>\r<br>int main () { <br \/>\r<br>int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5}; <br \/>\r<br>set&lt;A&gt; d (t,t+15); <br \/>\r<br>int number = count_if(d.begin(), d.end(), Compare()); <br \/>\r<br>cout&lt;&lt; number&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_13' value='448250' \/><input type='hidden' id='answerType448250' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448250[]' id='answer-id-1734310' class='answer   answerof-448250 ' value='1734310'   \/><label for='answer-id-1734310' id='answer-label-1734310' class=' answer'><span>12<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448250[]' id='answer-id-1734311' class='answer   answerof-448250 ' value='1734311'   \/><label for='answer-id-1734311' id='answer-label-1734311' class=' answer'><span>4<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448250[]' id='answer-id-1734312' class='answer   answerof-448250 ' value='1734312'   \/><label for='answer-id-1734312' id='answer-label-1734312' class=' answer'><span>2<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448250[]' id='answer-id-1734313' class='answer   answerof-448250 ' value='1734313'   \/><label for='answer-id-1734313' id='answer-label-1734313' class=' answer'><span>0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448250[]' id='answer-id-1734314' class='answer   answerof-448250 ' value='1734314'   \/><label for='answer-id-1734314' id='answer-label-1734314' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-14' style=';'><div id='questionWrap-14'  class='   watupro-question-id-448251'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>14. <\/span>What will happen when you attempt to compile and run the code below, assuming that you enter <br \/>\r<br>the following sequence: 1.1 2.2 3.3&lt;enter&gt;? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main () <br \/>\r<br>{ <br \/>\r<br>int a,b,c; <br \/>\r<br>cin&gt;&gt;a&gt;&gt;b&gt;&gt;c; <br \/>\r<br>cout&lt;&lt;a&lt;&lt;b&lt;&lt;c&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program will output:<\/div><input type='hidden' name='question_id[]' id='qID_14' value='448251' \/><input type='hidden' id='answerType448251' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448251[]' id='answer-id-1734315' class='answer   answerof-448251 ' value='1734315'   \/><label for='answer-id-1734315' id='answer-label-1734315' class=' answer'><span>123<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448251[]' id='answer-id-1734316' class='answer   answerof-448251 ' value='1734316'   \/><label for='answer-id-1734316' id='answer-label-1734316' class=' answer'><span>1 2 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448251[]' id='answer-id-1734317' class='answer   answerof-448251 ' value='1734317'   \/><label for='answer-id-1734317' id='answer-label-1734317' class=' answer'><span>1.12.23.3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448251[]' id='answer-id-1734318' class='answer   answerof-448251 ' value='1734318'   \/><label for='answer-id-1734318' id='answer-label-1734318' class=' answer'><span>1.1 2.2 3.3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448251[]' id='answer-id-1734319' class='answer   answerof-448251 ' value='1734319'   \/><label for='answer-id-1734319' id='answer-label-1734319' class=' answer'><span>none of these<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-15' style=';'><div id='questionWrap-15'  class='   watupro-question-id-448252'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>15. <\/span>What will happen when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template &lt;class T&gt; <br \/>\r<br>class A { <br \/>\r<br>T_v; <br \/>\r<br>public: <br \/>\r<br>A(T v); <br \/>\r<br>}; <br \/>\r<br>template&lt;class T&gt;<\/div><input type='hidden' name='question_id[]' id='qID_15' value='448252' \/><input type='hidden' id='answerType448252' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448252[]' id='answer-id-1734320' class='answer   answerof-448252 ' value='1734320'   \/><label for='answer-id-1734320' id='answer-label-1734320' class=' answer'><span>:A(T v):_v(v) {} \r\nint main() \r\n{ \r\nA&lt;int&gt; a(2); \r\ncout&lt;&lt;1&lt;&lt;endl; \r\nreturn 0; \r\n}<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448252[]' id='answer-id-1734321' class='answer   answerof-448252 ' value='1734321'   \/><label for='answer-id-1734321' id='answer-label-1734321' class=' answer'><span>program will display: 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448252[]' id='answer-id-1734322' class='answer   answerof-448252 ' value='1734322'   \/><label for='answer-id-1734322' id='answer-label-1734322' class=' answer'><span>program will not compile<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448252[]' id='answer-id-1734323' class='answer   answerof-448252 ' value='1734323'   \/><label for='answer-id-1734323' id='answer-label-1734323' class=' answer'><span>program will compile<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448252[]' id='answer-id-1734324' class='answer   answerof-448252 ' value='1734324'   \/><label for='answer-id-1734324' id='answer-label-1734324' class=' answer'><span>program will cause runtime exception<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-16' style=';'><div id='questionWrap-16'  class='   watupro-question-id-448253'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>16. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator()(const T &amp; val ) { <br \/>\r<br>out&lt;&lt;val&lt;&lt;&quot; &quot;; }}; <br \/>\r<br>struct Sequence { <br \/>\r<br>int start; <br \/>\r<br>Sequence(int start):start(start){} <br \/>\r<br>int operator()() { <br \/>\r<br>return start++; } }; <br \/>\r<br>int main() { <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>vector&lt;int&gt; v2(10); <br \/>\r<br>generate(v1.begin(), v1.end(), Sequence(1)); <br \/>\r<br>reverse_copy(v1.begin(),v1.end(), v2.rbegin()); <br \/>\r<br>sort(v2.begin(), v2.end(), less_equal&lt;int&gt;()); <br \/>\r<br>for_each(v2.begin(), v2.end(), Out&lt;int&gt;(cout) );cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_16' value='448253' \/><input type='hidden' id='answerType448253' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448253[]' id='answer-id-1734325' class='answer   answerof-448253 ' value='1734325'   \/><label for='answer-id-1734325' id='answer-label-1734325' class=' answer'><span>1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448253[]' id='answer-id-1734326' class='answer   answerof-448253 ' value='1734326'   \/><label for='answer-id-1734326' id='answer-label-1734326' class=' answer'><span>10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448253[]' id='answer-id-1734327' class='answer   answerof-448253 ' value='1734327'   \/><label for='answer-id-1734327' id='answer-label-1734327' class=' answer'><span>no output<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448253[]' id='answer-id-1734328' class='answer   answerof-448253 ' value='1734328'   \/><label for='answer-id-1734328' id='answer-label-1734328' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-17' style=';'><div id='questionWrap-17'  class='   watupro-question-id-448254'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>17. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>void g(int a) <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;a?1&lt;&lt;endl; <br \/>\r<br>} <br \/>\r<br>template&lt;class A&gt; <br \/>\r<br>void g(A a) <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;a+1&lt;&lt;endl; <br \/>\r<br>} <br \/>\r<br>int main() <br \/>\r<br>{ <br \/>\r<br>int a = 1; <br \/>\r<br>g(a); <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_17' value='448254' \/><input type='hidden' id='answerType448254' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448254[]' id='answer-id-1734329' class='answer   answerof-448254 ' value='1734329'   \/><label for='answer-id-1734329' id='answer-label-1734329' class=' answer'><span>program displays: 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448254[]' id='answer-id-1734330' class='answer   answerof-448254 ' value='1734330'   \/><label for='answer-id-1734330' id='answer-label-1734330' class=' answer'><span>program displays: 2<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448254[]' id='answer-id-1734331' class='answer   answerof-448254 ' value='1734331'   \/><label for='answer-id-1734331' id='answer-label-1734331' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448254[]' id='answer-id-1734332' class='answer   answerof-448254 ' value='1734332'   \/><label for='answer-id-1734332' id='answer-label-1734332' class=' answer'><span>runtime exception<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-18' style=';'><div id='questionWrap-18'  class='   watupro-question-id-448255'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>18. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;deque&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } <br \/>\r<br>}; <br \/>\r<br>bool Compare(char a, char b) { return tolower(a) &lt; tolower(b);} <br \/>\r<br>int main() { <br \/>\r<br>char s[]={&quot;qwerty&quot;}; <br \/>\r<br>char t1[]={&quot;ert&quot;}; <br \/>\r<br>char t2[]={&quot;ERT&quot;}; <br \/>\r<br>sort(s, s+6); <br \/>\r<br>cout&lt;&lt;includes(s,s+6, t1,t1+3, Compare)&lt;&lt;&quot; &quot;&lt;&lt;includes(s,s+6, t2,t2+3, Compare)&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_18' value='448255' \/><input type='hidden' id='answerType448255' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448255[]' id='answer-id-1734333' class='answer   answerof-448255 ' value='1734333'   \/><label for='answer-id-1734333' id='answer-label-1734333' class=' answer'><span>0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448255[]' id='answer-id-1734334' class='answer   answerof-448255 ' value='1734334'   \/><label for='answer-id-1734334' id='answer-label-1734334' class=' answer'><span>0 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448255[]' id='answer-id-1734335' class='answer   answerof-448255 ' value='1734335'   \/><label for='answer-id-1734335' id='answer-label-1734335' class=' answer'><span>1 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448255[]' id='answer-id-1734336' class='answer   answerof-448255 ' value='1734336'   \/><label for='answer-id-1734336' id='answer-label-1734336' class=' answer'><span>1 1<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-19' style=';'><div id='questionWrap-19'  class='   watupro-question-id-448256'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>19. <\/span>1.What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main(){ <br \/>\r<br>int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 }; <br \/>\r<br>vector&lt;int&gt;v(t, t+10); <br \/>\r<br>multiset&lt;int&gt; s1(v.begin(),v.end()); <br \/>\r<br>s1.insert(v.begin(),v.end()); <br \/>\r<br>pair&lt;multiset&lt;int&gt;::iterator,multiset&lt;int&gt;::iterator&gt; range; <br \/>\r<br>range = s1.equal_range(6); <br \/>\r<br>while (range.first != range.second) { <br \/>\r<br>cout&lt;&lt;*range.first&lt;&lt;&quot; &quot;; range.first++; <br \/>\r<br>} <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_19' value='448256' \/><input type='hidden' id='answerType448256' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448256[]' id='answer-id-1734337' class='answer   answerof-448256 ' value='1734337'   \/><label for='answer-id-1734337' id='answer-label-1734337' class=' answer'><span>program outputs: 6 6<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448256[]' id='answer-id-1734338' class='answer   answerof-448256 ' value='1734338'   \/><label for='answer-id-1734338' id='answer-label-1734338' class=' answer'><span>program outputs: 5 7<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448256[]' id='answer-id-1734339' class='answer   answerof-448256 ' value='1734339'   \/><label for='answer-id-1734339' id='answer-label-1734339' class=' answer'><span>program outputs: 5 5 6 6 7 7<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448256[]' id='answer-id-1734340' class='answer   answerof-448256 ' value='1734340'   \/><label for='answer-id-1734340' id='answer-label-1734340' class=' answer'><span>program outputs: 5 5 7 7<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448256[]' id='answer-id-1734341' class='answer   answerof-448256 ' value='1734341'   \/><label for='answer-id-1734341' id='answer-label-1734341' class=' answer'><span>program outputs: 1 1 6 6 5 5<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-20' style=';'><div id='questionWrap-20'  class='   watupro-question-id-448257'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>20. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>#include &lt;list&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt; void print(T start, T end) { <br \/>\r<br>while (start != end) { <br \/>\r<br>std::cout &lt;&lt; *start &lt;&lt; &quot; &quot;; start++; <br \/>\r<br>} <br \/>\r<br>} <br \/>\r<br>int main() { <br \/>\r<br>string t1[] ={ &quot;1&quot;, &quot;2&quot;, &quot;3&quot;, &quot;4&quot;, &quot;5&quot;, &quot;6&quot;, &quot;7&quot;, &quot;8&quot;, &quot;9&quot;, &quot;10&quot;}; <br \/>\r<br>list&lt;string&gt; l1(t1, t1 + 10); <br \/>\r<br>list&lt;string&gt; l2(l1); <br \/>\r<br>l2.reverse(); l1.splice(l1.end(),l2); <br \/>\r<br>l1.unique(); <br \/>\r<br>print(l1.begin(), l1.end()); cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_20' value='448257' \/><input type='hidden' id='answerType448257' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448257[]' id='answer-id-1734342' class='answer   answerof-448257 ' value='1734342'   \/><label for='answer-id-1734342' id='answer-label-1734342' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448257[]' id='answer-id-1734343' class='answer   answerof-448257 ' value='1734343'   \/><label for='answer-id-1734343' id='answer-label-1734343' class=' answer'><span>program outputs: 1 2 3 4 5 6 7 8 9 10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448257[]' id='answer-id-1734344' class='answer   answerof-448257 ' value='1734344'   \/><label for='answer-id-1734344' id='answer-label-1734344' class=' answer'><span>program outputs: 1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448257[]' id='answer-id-1734345' class='answer   answerof-448257 ' value='1734345'   \/><label for='answer-id-1734345' id='answer-label-1734345' class=' answer'><span>program outputs: 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-21' style=';'><div id='questionWrap-21'  class='   watupro-question-id-448258'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>21. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>void myfunction(int i) { <br \/>\r<br>cout &lt;&lt; &quot; &quot; &lt;&lt; i; <br \/>\r<br>} <br \/>\r<br>int main() { <br \/>\r<br>int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 }; <br \/>\r<br>set&lt;int&gt; s1(t, t+10); <br \/>\r<br>vector&lt;int&gt; v1(s1.rbegin(), s1.rend()); <br \/>\r<br>swap_ranges(s1.begin(), s1.end(), v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), myfunction); <br \/>\r<br>for_each(s1.begin(), s1.end(), myfunction); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_21' value='448258' \/><input type='hidden' id='answerType448258' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448258[]' id='answer-id-1734346' class='answer   answerof-448258 ' value='1734346'   \/><label for='answer-id-1734346' id='answer-label-1734346' class=' answer'><span>10 9 8 7 6 5 4 3 2 1 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448258[]' id='answer-id-1734347' class='answer   answerof-448258 ' value='1734347'   \/><label for='answer-id-1734347' id='answer-label-1734347' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448258[]' id='answer-id-1734348' class='answer   answerof-448258 ' value='1734348'   \/><label for='answer-id-1734348' id='answer-label-1734348' class=' answer'><span>1 2 3 4 5 6 7 8 9 10 1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448258[]' id='answer-id-1734349' class='answer   answerof-448258 ' value='1734349'   \/><label for='answer-id-1734349' id='answer-label-1734349' class=' answer'><span>1 2 3 4 5 6 7 8 9 10 10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448258[]' id='answer-id-1734350' class='answer   answerof-448258 ' value='1734350'   \/><label for='answer-id-1734350' id='answer-label-1734350' class=' answer'><span>10 9 8 7 6 5 4 3 2 1 10 9 8 7 6 5 4 3 2 1<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-22' style=';'><div id='questionWrap-22'  class='   watupro-question-id-448259'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>22. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;deque&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={8, 10, 5, 1, 4, 6, 2, 7, 9, 3}; <br \/>\r<br>deque&lt;int&gt; d1(t, t+10); <br \/>\r<br>deque&lt;int&gt;::iterator it = lower_bound(d1.begin(), d1.end(), 4); <br \/>\r<br>for_each(it, d1.end(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_22' value='448259' \/><input type='hidden' id='answerType448259' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448259[]' id='answer-id-1734351' class='answer   answerof-448259 ' value='1734351'   \/><label for='answer-id-1734351' id='answer-label-1734351' class=' answer'><span>8 10 5 1 4 6 2 7 9 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448259[]' id='answer-id-1734352' class='answer   answerof-448259 ' value='1734352'   \/><label for='answer-id-1734352' id='answer-label-1734352' class=' answer'><span>4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448259[]' id='answer-id-1734353' class='answer   answerof-448259 ' value='1734353'   \/><label for='answer-id-1734353' id='answer-label-1734353' class=' answer'><span>1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448259[]' id='answer-id-1734354' class='answer   answerof-448259 ' value='1734354'   \/><label for='answer-id-1734354' id='answer-label-1734354' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448259[]' id='answer-id-1734355' class='answer   answerof-448259 ' value='1734355'   \/><label for='answer-id-1734355' id='answer-label-1734355' class=' answer'><span>1 2 3 4<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-23' style=';'><div id='questionWrap-23'  class='   watupro-question-id-448260'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>23. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class A&gt; <br \/>\r<br>void f(A a) <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;1&lt;&lt;endl; <br \/>\r<br>} <br \/>\r<br>void f(int a) <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;2&lt;&lt;endl; <br \/>\r<br>} <br \/>\r<br>int main() <br \/>\r<br>{ <br \/>\r<br>int a = 1; <br \/>\r<br>f&lt;float&gt;(a); <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_23' value='448260' \/><input type='hidden' id='answerType448260' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448260[]' id='answer-id-1734356' class='answer   answerof-448260 ' value='1734356'   \/><label for='answer-id-1734356' id='answer-label-1734356' class=' answer'><span>program displays: 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448260[]' id='answer-id-1734357' class='answer   answerof-448260 ' value='1734357'   \/><label for='answer-id-1734357' id='answer-label-1734357' class=' answer'><span>program displays: 2<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448260[]' id='answer-id-1734358' class='answer   answerof-448260 ' value='1734358'   \/><label for='answer-id-1734358' id='answer-label-1734358' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448260[]' id='answer-id-1734359' class='answer   answerof-448260 ' value='1734359'   \/><label for='answer-id-1734359' id='answer-label-1734359' class=' answer'><span>runtime exception<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-24' style=';'><div id='questionWrap-24'  class='   watupro-question-id-448261'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>24. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>int main () <br \/>\r<br>{ <br \/>\r<br>std::vector&lt;int&gt;v1; <br \/>\r<br>for(int i = 10; i&gt;0; i??) <br \/>\r<br>{ <br \/>\r<br>v1.push_back(i); <br \/>\r<br>} <br \/>\r<br>std::vector&lt;int&gt;::iterator it = v1.begin(); <br \/>\r<br>int sum = 0; <br \/>\r<br>while(it != v1.end()) <br \/>\r<br>{ <br \/>\r<br>sum+=it++; <br \/>\r<br>} <br \/>\r<br>std::cout&lt;&lt;*v1.erase(v1.begin(),v1.end()?3)&lt;&lt;&quot; &quot;&lt;&lt;sum &lt;&lt;std::endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_24' value='448261' \/><input type='hidden' id='answerType448261' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448261[]' id='answer-id-1734360' class='answer   answerof-448261 ' value='1734360'   \/><label for='answer-id-1734360' id='answer-label-1734360' class=' answer'><span>program outputs 3 55<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448261[]' id='answer-id-1734361' class='answer   answerof-448261 ' value='1734361'   \/><label for='answer-id-1734361' id='answer-label-1734361' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448261[]' id='answer-id-1734362' class='answer   answerof-448261 ' value='1734362'   \/><label for='answer-id-1734362' id='answer-label-1734362' class=' answer'><span>program outputs 3 45<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448261[]' id='answer-id-1734363' class='answer   answerof-448261 ' value='1734363'   \/><label for='answer-id-1734363' id='answer-label-1734363' class=' answer'><span>program outputs 7 55<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-25' style=';'><div id='questionWrap-25'  class='   watupro-question-id-448262'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>25. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={3,2,4,1,5,10,9,7,8,6}; <br \/>\r<br>vector&lt;int&gt; v1(t,t+10); <br \/>\r<br>sort(v1.begin(), v1.end(), greater&lt;int&gt;()); <br \/>\r<br>cout&lt;&lt;min_element(v1.begin(), v1.end()); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_25' value='448262' \/><input type='hidden' id='answerType448262' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448262[]' id='answer-id-1734364' class='answer   answerof-448262 ' value='1734364'   \/><label for='answer-id-1734364' id='answer-label-1734364' class=' answer'><span>3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448262[]' id='answer-id-1734365' class='answer   answerof-448262 ' value='1734365'   \/><label for='answer-id-1734365' id='answer-label-1734365' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448262[]' id='answer-id-1734366' class='answer   answerof-448262 ' value='1734366'   \/><label for='answer-id-1734366' id='answer-label-1734366' class=' answer'><span>6<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448262[]' id='answer-id-1734367' class='answer   answerof-448262 ' value='1734367'   \/><label for='answer-id-1734367' id='answer-label-1734367' class=' answer'><span>10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448262[]' id='answer-id-1734368' class='answer   answerof-448262 ' value='1734368'   \/><label for='answer-id-1734368' id='answer-label-1734368' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-26' style=';'><div id='questionWrap-26'  class='   watupro-question-id-448263'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>26. <\/span>Which changes introduced independently will allow the code to compile and display \u201cone\u201d \u201ceight\u201d <br \/>\r<br>\u201cnine\u201d \u201cten\u201d? Choose all that apply. <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;map&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class A { <br \/>\r<br>int a; <br \/>\r<br>public: <br \/>\r<br>A(int a):a(a){} <br \/>\r<br>int getA() const { return a;} <br \/>\r<br>\/* Insert Code Here 1 *\/ <br \/>\r<br>}; <br \/>\r<br>\/* Insert Code Here 2 *\/ <br \/>\r<br>int main(){ <br \/>\r<br>int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 10 }; <br \/>\r<br>string s[] = {&quot;three&quot;, &quot;four&quot;, &quot;two&quot;, &quot;one&quot;, &quot;six&quot;,&quot;five&quot;, &quot;seven&quot;, &quot;nine&quot;,&quot;eight&quot;,&quot;ten&quot;}; <br \/>\r<br>multimap&lt;A,string&gt; m;\/* Replace Code Here 3 *\/ <br \/>\r<br>for(int i=0; i&lt;10; i++) { <br \/>\r<br>m.insert(pair&lt;A,string&gt;(A(t[i]),s[i])); <br \/>\r<br>} <br \/>\r<br>m.erase(m.lower_bound(2),m.upper_bound(7)); <br \/>\r<br>multimap&lt;A, string&gt;::iterator i=m.begin();\/* Replace Code Here 4 *\/ <br \/>\r<br>for( ; i!= m.end(); i++) { <br \/>\r<br>cout&lt;&lt;i?&gt;second&lt;&lt;&quot; &quot;; <br \/>\r<br>} <br \/>\r<br>cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_26' value='448263' \/><input type='hidden' id='answerType448263' value='checkbox'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448263[]' id='answer-id-1734369' class='answer   answerof-448263 ' value='1734369'   \/><label for='answer-id-1734369' id='answer-label-1734369' class=' answer'><span>operator int() const { return a;} inserted at Place 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448263[]' id='answer-id-1734370' class='answer   answerof-448263 ' value='1734370'   \/><label for='answer-id-1734370' id='answer-label-1734370' class=' answer'><span>bool operator &lt; (const A &amp; b) const { return a&lt;b.a;} inserted at Place 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448263[]' id='answer-id-1734371' class='answer   answerof-448263 ' value='1734371'   \/><label for='answer-id-1734371' id='answer-label-1734371' class=' answer'><span>bool operator &lt; (const A &amp; b) const { return b.a&lt;a;} inserted at Place 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='checkbox' name='answer-448263[]' id='answer-id-1734372' class='answer   answerof-448263 ' value='1734372'   \/><label for='answer-id-1734372' id='answer-label-1734372' class=' answer'><span>struct R { bool operator ()(const A &amp; a, const A &amp; b) { return a.getA()&lt;b.getA();} }; inserted at \r\nPlace 2 \r\nreplacing line marked 3 with multimap&lt;A, string, R&gt; m; \r\nreplacong line marked 4 with multimap&lt;A, string, R&gt;::iterator i=m.begin();<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-27' style=';'><div id='questionWrap-27'  class='   watupro-question-id-448264'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>27. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;functional&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t1[]={1,2,3,4,5,6,7,8,9,10}; <br \/>\r<br>int t2[]={1,2,3,4,5,6,7,8,9,10}; <br \/>\r<br>vector&lt;int&gt; v1(t1, t1+10); <br \/>\r<br>vector&lt;int&gt; v2(t2, t2+10); <br \/>\r<br>vector&lt;int&gt; v3(10); <br \/>\r<br>transform(v1.begin(), v1.end(), v2.rbegin(), v3.begin(), minus&lt;int&gt;()); <br \/>\r<br>for_each(v3.rbegin(), v3.rend(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_27' value='448264' \/><input type='hidden' id='answerType448264' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448264[]' id='answer-id-1734373' class='answer   answerof-448264 ' value='1734373'   \/><label for='answer-id-1734373' id='answer-label-1734373' class=' answer'><span>9 7 5 3 1 ?1 ?3 ?5 ?7 ?9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448264[]' id='answer-id-1734374' class='answer   answerof-448264 ' value='1734374'   \/><label for='answer-id-1734374' id='answer-label-1734374' class=' answer'><span>?1 ?3 ?5 ?7 ?9 9 7 5 3 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448264[]' id='answer-id-1734375' class='answer   answerof-448264 ' value='1734375'   \/><label for='answer-id-1734375' id='answer-label-1734375' class=' answer'><span>1 3 5 7 9 ?1 ?3 ?5 ?7 ?9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448264[]' id='answer-id-1734376' class='answer   answerof-448264 ' value='1734376'   \/><label for='answer-id-1734376' id='answer-label-1734376' class=' answer'><span>1 3 5 7 9 ?1 ?3 ?5 ?7 ?9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448264[]' id='answer-id-1734377' class='answer   answerof-448264 ' value='1734377'   \/><label for='answer-id-1734377' id='answer-label-1734377' class=' answer'><span>?9 ?7 ?5 ?3 ?1 1 3 5 7 9<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-28' style=';'><div id='questionWrap-28'  class='   watupro-question-id-448265'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>28. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator()(const T &amp; val ) { <br \/>\r<br>out&lt;&lt;val&lt;&lt;&quot; &quot;; <br \/>\r<br>} <br \/>\r<br>}; <br \/>\r<br>struct Sequence { <br \/>\r<br>int start; <br \/>\r<br>Sequence(int start):start(start){} <br \/>\r<br>int operator()() { return 10*(1+(start++ %3)); } }; <br \/>\r<br>int main() { <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>vector&lt;int&gt; v2(10); <br \/>\r<br>generate(v1.begin(), v1.end(), Sequence(1)); <br \/>\r<br>sort(v1.rbegin(), v1.rend()); <br \/>\r<br>unique_copy(v1.begin(),v1.end(), v2.begin()); <br \/>\r<br>for_each(v2.begin(), v2.end(), Out&lt;int&gt;(cout) );cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_28' value='448265' \/><input type='hidden' id='answerType448265' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448265[]' id='answer-id-1734378' class='answer   answerof-448265 ' value='1734378'   \/><label for='answer-id-1734378' id='answer-label-1734378' class=' answer'><span>20 30 10 20 30 10 20 30 10 20<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448265[]' id='answer-id-1734379' class='answer   answerof-448265 ' value='1734379'   \/><label for='answer-id-1734379' id='answer-label-1734379' class=' answer'><span>30 20 10 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448265[]' id='answer-id-1734380' class='answer   answerof-448265 ' value='1734380'   \/><label for='answer-id-1734380' id='answer-label-1734380' class=' answer'><span>30 0 0 0 0 0 0 0 20 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448265[]' id='answer-id-1734381' class='answer   answerof-448265 ' value='1734381'   \/><label for='answer-id-1734381' id='answer-label-1734381' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-29' style=';'><div id='questionWrap-29'  class='   watupro-question-id-448266'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>29. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;map&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main() { <br \/>\r<br>int t[] = { 10, 5, 9, 6, 2, 4, 7, 8, 3, 1 }; <br \/>\r<br>map&lt;int, int&gt; m; <br \/>\r<br>for(int i=0; i &lt; 10; i++) { <br \/>\r<br>m[i]=t[i]; <br \/>\r<br>} <br \/>\r<br>map&lt;int, int&gt;::iterator it = find(m.begin(), m.end(), 5); <br \/>\r<br>cout&lt;&lt;it?&gt;first; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_29' value='448266' \/><input type='hidden' id='answerType448266' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448266[]' id='answer-id-1734382' class='answer   answerof-448266 ' value='1734382'   \/><label for='answer-id-1734382' id='answer-label-1734382' class=' answer'><span>5<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448266[]' id='answer-id-1734383' class='answer   answerof-448266 ' value='1734383'   \/><label for='answer-id-1734383' id='answer-label-1734383' class=' answer'><span>4<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448266[]' id='answer-id-1734384' class='answer   answerof-448266 ' value='1734384'   \/><label for='answer-id-1734384' id='answer-label-1734384' class=' answer'><span>10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448266[]' id='answer-id-1734385' class='answer   answerof-448266 ' value='1734385'   \/><label for='answer-id-1734385' id='answer-label-1734385' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-30' style=';'><div id='questionWrap-30'  class='   watupro-question-id-448267'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>30. <\/span>What will happen when you attempt to compile and run the code below, assuming that file test.in <br \/>\r<br>contains the following sequence: 1 2 3? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;fstream&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>#include &lt;list&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) {out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main () { <br \/>\r<br>ifstream f(&quot;test.in&quot;); <br \/>\r<br>list&lt;int&gt; l; <br \/>\r<br>for( ; f.good() ; ) { <br \/>\r<br>int i; <br \/>\r<br>f&gt;&gt;i; <br \/>\r<br>l.push_back(i); <br \/>\r<br>} <br \/>\r<br>f.close(); <br \/>\r<br>for_each(l.begin(), l.end(), Out&lt;int&gt;(cout)); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program will output:<\/div><input type='hidden' name='question_id[]' id='qID_30' value='448267' \/><input type='hidden' id='answerType448267' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448267[]' id='answer-id-1734386' class='answer   answerof-448267 ' value='1734386'   \/><label for='answer-id-1734386' id='answer-label-1734386' class=' answer'><span>1 2 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448267[]' id='answer-id-1734387' class='answer   answerof-448267 ' value='1734387'   \/><label for='answer-id-1734387' id='answer-label-1734387' class=' answer'><span>1 2 3 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448267[]' id='answer-id-1734388' class='answer   answerof-448267 ' value='1734388'   \/><label for='answer-id-1734388' id='answer-label-1734388' class=' answer'><span>no output<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448267[]' id='answer-id-1734389' class='answer   answerof-448267 ' value='1734389'   \/><label for='answer-id-1734389' id='answer-label-1734389' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448267[]' id='answer-id-1734390' class='answer   answerof-448267 ' value='1734390'   \/><label for='answer-id-1734390' id='answer-label-1734390' class=' answer'><span>program runs forever without output<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-31' style=';'><div id='questionWrap-31'  class='   watupro-question-id-448268'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>31. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t1[]={3,2,4,1,5}; <br \/>\r<br>int t2[]={5,6,8,2,1}; <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>set_union(t1,t1+5,t2,t2+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_31' value='448268' \/><input type='hidden' id='answerType448268' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448268[]' id='answer-id-1734391' class='answer   answerof-448268 ' value='1734391'   \/><label for='answer-id-1734391' id='answer-label-1734391' class=' answer'><span>3 2 4 1 5 6 8 2 1 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448268[]' id='answer-id-1734392' class='answer   answerof-448268 ' value='1734392'   \/><label for='answer-id-1734392' id='answer-label-1734392' class=' answer'><span>1 2 3 4 5 6 8 2 1 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448268[]' id='answer-id-1734393' class='answer   answerof-448268 ' value='1734393'   \/><label for='answer-id-1734393' id='answer-label-1734393' class=' answer'><span>1 1 2 2 3 4 5 5 6 8<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448268[]' id='answer-id-1734394' class='answer   answerof-448268 ' value='1734394'   \/><label for='answer-id-1734394' id='answer-label-1734394' class=' answer'><span>1 2 3 4 5 6 8 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448268[]' id='answer-id-1734395' class='answer   answerof-448268 ' value='1734395'   \/><label for='answer-id-1734395' id='answer-label-1734395' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-32' style=';'><div id='questionWrap-32'  class='   watupro-question-id-448269'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>32. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} bool operator &lt; (const B &amp; v) const { return val&lt;v.val;} }; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>B t1[]={3,2,4,1,5}; <br \/>\r<br>B t2[]={6,10,8,7,9}; <br \/>\r<br>vector&lt;B&gt; v1(10); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>merge(t1,t1+5,t2,t2+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;B&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_32' value='448269' \/><input type='hidden' id='answerType448269' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448269[]' id='answer-id-1734396' class='answer   answerof-448269 ' value='1734396'   \/><label for='answer-id-1734396' id='answer-label-1734396' class=' answer'><span>1 2 3 4 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448269[]' id='answer-id-1734397' class='answer   answerof-448269 ' value='1734397'   \/><label for='answer-id-1734397' id='answer-label-1734397' class=' answer'><span>3 2 4 1 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448269[]' id='answer-id-1734398' class='answer   answerof-448269 ' value='1734398'   \/><label for='answer-id-1734398' id='answer-label-1734398' class=' answer'><span>3 2 4 1 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448269[]' id='answer-id-1734399' class='answer   answerof-448269 ' value='1734399'   \/><label for='answer-id-1734399' id='answer-label-1734399' class=' answer'><span>1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448269[]' id='answer-id-1734400' class='answer   answerof-448269 ' value='1734400'   \/><label for='answer-id-1734400' id='answer-label-1734400' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-33' style=';'><div id='questionWrap-33'  class='   watupro-question-id-448270'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>33. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;functional&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={3,2,4,1,5,6,10,8,7,9}; <br \/>\r<br>vector&lt;int&gt; v1(t, t+10); <br \/>\r<br>for_each(v1.begin(), v1.end(), bind2nd(plus&lt;int&gt;(), 1)); <br \/>\r<br>for_each(v1.rbegin(), v1.rend(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_33' value='448270' \/><input type='hidden' id='answerType448270' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448270[]' id='answer-id-1734401' class='answer   answerof-448270 ' value='1734401'   \/><label for='answer-id-1734401' id='answer-label-1734401' class=' answer'><span>3 2 4 1 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448270[]' id='answer-id-1734402' class='answer   answerof-448270 ' value='1734402'   \/><label for='answer-id-1734402' id='answer-label-1734402' class=' answer'><span>4 3 5 2 6 7 11 9 8 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448270[]' id='answer-id-1734403' class='answer   answerof-448270 ' value='1734403'   \/><label for='answer-id-1734403' id='answer-label-1734403' class=' answer'><span>9 7 8 10 6 5 1 4 2 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448270[]' id='answer-id-1734404' class='answer   answerof-448270 ' value='1734404'   \/><label for='answer-id-1734404' id='answer-label-1734404' class=' answer'><span>10 8 9 11 7 6 2 5 3 4<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448270[]' id='answer-id-1734405' class='answer   answerof-448270 ' value='1734405'   \/><label for='answer-id-1734405' id='answer-label-1734405' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-34' style=';'><div id='questionWrap-34'  class='   watupro-question-id-448271'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>34. <\/span>What will happen when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main(){ <br \/>\r<br>int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 }; <br \/>\r<br>vector&lt;int&gt;v(t, t+10); <br \/>\r<br>set&lt;int&gt; s1(v.begin(),v.end()); <br \/>\r<br>s1.insert(v.begin(),v.end()); <br \/>\r<br>bool found = s1.find(7); <br \/>\r<br>if (found){ <br \/>\r<br>cout&lt;&lt;&quot;Element found!n&quot;; <br \/>\r<br>}else { <br \/>\r<br>cout&lt;&lt;&quot;Element not found!n&quot;; <br \/>\r<br>} <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_34' value='448271' \/><input type='hidden' id='answerType448271' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448271[]' id='answer-id-1734406' class='answer   answerof-448271 ' value='1734406'   \/><label for='answer-id-1734406' id='answer-label-1734406' class=' answer'><span>program will display &quot;Element found!&quot;<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448271[]' id='answer-id-1734407' class='answer   answerof-448271 ' value='1734407'   \/><label for='answer-id-1734407' id='answer-label-1734407' class=' answer'><span>program will display &quot;Element not found!<br>&quot;<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448271[]' id='answer-id-1734408' class='answer   answerof-448271 ' value='1734408'   \/><label for='answer-id-1734408' id='answer-label-1734408' class=' answer'><span>code will not compile<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448271[]' id='answer-id-1734409' class='answer   answerof-448271 ' value='1734409'   \/><label for='answer-id-1734409' id='answer-label-1734409' class=' answer'><span>changing type of variable found to int will make this code compile<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-35' style=';'><div id='questionWrap-35'  class='   watupro-question-id-448272'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>35. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>class B { int val; <br \/>\r<br>public: <br \/>\r<br>B(int v):val(v){} <br \/>\r<br>int getV() const {return val;} bool operator &lt; (const B &amp; v) const { return val&lt;v.val;} }; <br \/>\r<br>ostream &amp; operator &lt;&lt;(ostream &amp; out, const B &amp; v) { out&lt;&lt;v.getV(); return out;} <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>B t1[]={3,2,4,1,5}; <br \/>\r<br>B t2[]={5,6,8,2,1}; <br \/>\r<br>vector&lt;B&gt; v1(10,0); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>set_symmetric_difference(t2,t2+5,t1,t1+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;B&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_35' value='448272' \/><input type='hidden' id='answerType448272' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448272[]' id='answer-id-1734410' class='answer   answerof-448272 ' value='1734410'   \/><label for='answer-id-1734410' id='answer-label-1734410' class=' answer'><span>6 8 3 4 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448272[]' id='answer-id-1734411' class='answer   answerof-448272 ' value='1734411'   \/><label for='answer-id-1734411' id='answer-label-1734411' class=' answer'><span>3 4 0 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448272[]' id='answer-id-1734412' class='answer   answerof-448272 ' value='1734412'   \/><label for='answer-id-1734412' id='answer-label-1734412' class=' answer'><span>6 8 0 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448272[]' id='answer-id-1734413' class='answer   answerof-448272 ' value='1734413'   \/><label for='answer-id-1734413' id='answer-label-1734413' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448272[]' id='answer-id-1734414' class='answer   answerof-448272 ' value='1734414'   \/><label for='answer-id-1734414' id='answer-label-1734414' class=' answer'><span>3 4 6 8 0 0 0 0 0 0<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-36' style=';'><div id='questionWrap-36'  class='   watupro-question-id-448273'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>36. <\/span>What will happen when you attempt to compile and run the code below, assuming that you enter <br \/>\r<br>the following sequence: 1 2 3 end&lt;enter&gt;? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>#include &lt;list&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) {out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main () <br \/>\r<br>{ <br \/>\r<br>list&lt;int&gt; l; <br \/>\r<br>for( ; !cin.bad() ; ) <br \/>\r<br>{ <br \/>\r<br>int i; <br \/>\r<br>cin&gt;&gt;i; <br \/>\r<br>l.push_back(i); <br \/>\r<br>} <br \/>\r<br>for_each(l.begin(), l.end(), Out&lt;int&gt;(cout)); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program will output:<\/div><input type='hidden' name='question_id[]' id='qID_36' value='448273' \/><input type='hidden' id='answerType448273' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448273[]' id='answer-id-1734415' class='answer   answerof-448273 ' value='1734415'   \/><label for='answer-id-1734415' id='answer-label-1734415' class=' answer'><span>1 2 3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448273[]' id='answer-id-1734416' class='answer   answerof-448273 ' value='1734416'   \/><label for='answer-id-1734416' id='answer-label-1734416' class=' answer'><span>1 2 3 end<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448273[]' id='answer-id-1734417' class='answer   answerof-448273 ' value='1734417'   \/><label for='answer-id-1734417' id='answer-label-1734417' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448273[]' id='answer-id-1734418' class='answer   answerof-448273 ' value='1734418'   \/><label for='answer-id-1734418' id='answer-label-1734418' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448273[]' id='answer-id-1734419' class='answer   answerof-448273 ' value='1734419'   \/><label for='answer-id-1734419' id='answer-label-1734419' class=' answer'><span>program runs forever without output<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-37' style=';'><div id='questionWrap-37'  class='   watupro-question-id-448274'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>37. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t1[]={3,2,4,1,5}; <br \/>\r<br>int t2[]={5,6,8,2,1}; <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>set_difference(t1,t1+5,t2,t2+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_37' value='448274' \/><input type='hidden' id='answerType448274' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448274[]' id='answer-id-1734420' class='answer   answerof-448274 ' value='1734420'   \/><label for='answer-id-1734420' id='answer-label-1734420' class=' answer'><span>1 2 3 4 5 6 8 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448274[]' id='answer-id-1734421' class='answer   answerof-448274 ' value='1734421'   \/><label for='answer-id-1734421' id='answer-label-1734421' class=' answer'><span>3 4 0 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448274[]' id='answer-id-1734422' class='answer   answerof-448274 ' value='1734422'   \/><label for='answer-id-1734422' id='answer-label-1734422' class=' answer'><span>6 8 0 0 0 0 0 0 0 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448274[]' id='answer-id-1734423' class='answer   answerof-448274 ' value='1734423'   \/><label for='answer-id-1734423' id='answer-label-1734423' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448274[]' id='answer-id-1734424' class='answer   answerof-448274 ' value='1734424'   \/><label for='answer-id-1734424' id='answer-label-1734424' class=' answer'><span>1 2 5 0 0 0 0 0 0 0<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-38' style=';'><div id='questionWrap-38'  class='   watupro-question-id-448275'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>38. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main() <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;100&lt;&lt;&quot; &quot;; <br \/>\r<br>cout.setf(ios::hex); <br \/>\r<br>cout&lt;&lt;100&lt;&lt;&quot; &quot;; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_38' value='448275' \/><input type='hidden' id='answerType448275' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448275[]' id='answer-id-1734425' class='answer   answerof-448275 ' value='1734425'   \/><label for='answer-id-1734425' id='answer-label-1734425' class=' answer'><span>100 64<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448275[]' id='answer-id-1734426' class='answer   answerof-448275 ' value='1734426'   \/><label for='answer-id-1734426' id='answer-label-1734426' class=' answer'><span>100 0x64<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448275[]' id='answer-id-1734427' class='answer   answerof-448275 ' value='1734427'   \/><label for='answer-id-1734427' id='answer-label-1734427' class=' answer'><span>0x64 0x64<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448275[]' id='answer-id-1734428' class='answer   answerof-448275 ' value='1734428'   \/><label for='answer-id-1734428' id='answer-label-1734428' class=' answer'><span>64 0x64<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448275[]' id='answer-id-1734429' class='answer   answerof-448275 ' value='1734429'   \/><label for='answer-id-1734429' id='answer-label-1734429' class=' answer'><span>100 100<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-39' style=';'><div id='questionWrap-39'  class='   watupro-question-id-448276'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>39. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t1[]={3,2,4,1,5}; <br \/>\r<br>int t2[]={6,10,8,7,9}; <br \/>\r<br>vector&lt;int&gt; v1(10); <br \/>\r<br>sort(t1, t1+5); <br \/>\r<br>sort(t2, t2+5); <br \/>\r<br>merge(t1,t1+5,t2,t2+5,v1.begin()); <br \/>\r<br>for_each(v1.begin(), v1.end(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_39' value='448276' \/><input type='hidden' id='answerType448276' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448276[]' id='answer-id-1734430' class='answer   answerof-448276 ' value='1734430'   \/><label for='answer-id-1734430' id='answer-label-1734430' class=' answer'><span>1 2 3 4 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448276[]' id='answer-id-1734431' class='answer   answerof-448276 ' value='1734431'   \/><label for='answer-id-1734431' id='answer-label-1734431' class=' answer'><span>3 2 4 1 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448276[]' id='answer-id-1734432' class='answer   answerof-448276 ' value='1734432'   \/><label for='answer-id-1734432' id='answer-label-1734432' class=' answer'><span>3 2 4 1 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448276[]' id='answer-id-1734433' class='answer   answerof-448276 ' value='1734433'   \/><label for='answer-id-1734433' id='answer-label-1734433' class=' answer'><span>1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448276[]' id='answer-id-1734434' class='answer   answerof-448276 ' value='1734434'   \/><label for='answer-id-1734434' id='answer-label-1734434' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-40' style=';'><div id='questionWrap-40'  class='   watupro-question-id-448277'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>40. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;map&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;sstream&gt; <br \/>\r<br>#include &lt;string&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main(){ <br \/>\r<br>int t[] ={ 3, 4, 2, 1, 6, 5, 7, 9, 8, 0 }; <br \/>\r<br>vector&lt;int&gt; v(t, t+10); <br \/>\r<br>map&lt;int,string&gt; m; <br \/>\r<br>for(vector&lt;int&gt;::iterator i=v.begin(); i!=v.end(); i++) { <br \/>\r<br>stringstream s; s&lt;&lt;*i&lt;&lt;*i; m.insert(pair&lt;int,string&gt;(*i,s.str())); <br \/>\r<br>} <br \/>\r<br>for(map&lt;int, string&gt;::iterator i=m.begin();i!= m.end(); i++) { <br \/>\r<br>cout&lt;&lt;*i&lt;&lt;&quot; &quot;; <br \/>\r<br>} <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_40' value='448277' \/><input type='hidden' id='answerType448277' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448277[]' id='answer-id-1734435' class='answer   answerof-448277 ' value='1734435'   \/><label for='answer-id-1734435' id='answer-label-1734435' class=' answer'><span>program outputs: 3 4 2 1 6 5 7 9 8 0<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448277[]' id='answer-id-1734436' class='answer   answerof-448277 ' value='1734436'   \/><label for='answer-id-1734436' id='answer-label-1734436' class=' answer'><span>program outputs: 00 11 22 33 44 55 66 77 88 99<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448277[]' id='answer-id-1734437' class='answer   answerof-448277 ' value='1734437'   \/><label for='answer-id-1734437' id='answer-label-1734437' class=' answer'><span>program outputs: 0 1 2 3 4 5 6 7 8 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448277[]' id='answer-id-1734438' class='answer   answerof-448277 ' value='1734438'   \/><label for='answer-id-1734438' id='answer-label-1734438' class=' answer'><span>program outputs: 0 00 1 11 2 22 3 33 4 44 5 55 6 66 7 77 8 88 9 99<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448277[]' id='answer-id-1734439' class='answer   answerof-448277 ' value='1734439'   \/><label for='answer-id-1734439' id='answer-label-1734439' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-41' style=';'><div id='questionWrap-41'  class='   watupro-question-id-448278'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>41. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;functional&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t1[]={3,2,4,1,5}; <br \/>\r<br>int t2[]={6,10,8,7,9}; <br \/>\r<br>vector&lt;int&gt; v1(5); <br \/>\r<br>transform(t1,t1+5,t2,v1.rbegin(), plus&lt;int&gt;()); <br \/>\r<br>for_each(v1.rbegin(), v1.rend(), Out&lt;int&gt;(cout));cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_41' value='448278' \/><input type='hidden' id='answerType448278' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448278[]' id='answer-id-1734440' class='answer   answerof-448278 ' value='1734440'   \/><label for='answer-id-1734440' id='answer-label-1734440' class=' answer'><span>9 12 12 8 14<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448278[]' id='answer-id-1734441' class='answer   answerof-448278 ' value='1734441'   \/><label for='answer-id-1734441' id='answer-label-1734441' class=' answer'><span>14 8 12 12 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448278[]' id='answer-id-1734442' class='answer   answerof-448278 ' value='1734442'   \/><label for='answer-id-1734442' id='answer-label-1734442' class=' answer'><span>3 2 4 1 5 6 10 8 7 9<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448278[]' id='answer-id-1734443' class='answer   answerof-448278 ' value='1734443'   \/><label for='answer-id-1734443' id='answer-label-1734443' class=' answer'><span>1 2 3 4 5 6 7 8 9 10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448278[]' id='answer-id-1734444' class='answer   answerof-448278 ' value='1734444'   \/><label for='answer-id-1734444' id='answer-label-1734444' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-42' style=';'><div id='questionWrap-42'  class='   watupro-question-id-448279'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>42. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template&lt;class T&gt;struct Out { <br \/>\r<br>ostream &amp; out; <br \/>\r<br>Out(ostream &amp; o): out(o){} <br \/>\r<br>void operator() (const T &amp; val ) { out&lt;&lt;val&lt;&lt;&quot; &quot;; } }; <br \/>\r<br>int main() { <br \/>\r<br>int t[]={3,2,4,1,5,10,9,7,8,6}; <br \/>\r<br>vector&lt;int&gt; v1(t,t+10); <br \/>\r<br>cout&lt;&lt;*max_element(v1.begin(), v1.end()); <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_42' value='448279' \/><input type='hidden' id='answerType448279' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448279[]' id='answer-id-1734445' class='answer   answerof-448279 ' value='1734445'   \/><label for='answer-id-1734445' id='answer-label-1734445' class=' answer'><span>3<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448279[]' id='answer-id-1734446' class='answer   answerof-448279 ' value='1734446'   \/><label for='answer-id-1734446' id='answer-label-1734446' class=' answer'><span>1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448279[]' id='answer-id-1734447' class='answer   answerof-448279 ' value='1734447'   \/><label for='answer-id-1734447' id='answer-label-1734447' class=' answer'><span>6<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448279[]' id='answer-id-1734448' class='answer   answerof-448279 ' value='1734448'   \/><label for='answer-id-1734448' id='answer-label-1734448' class=' answer'><span>10<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448279[]' id='answer-id-1734449' class='answer   answerof-448279 ' value='1734449'   \/><label for='answer-id-1734449' id='answer-label-1734449' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-43' style=';'><div id='questionWrap-43'  class='   watupro-question-id-448280'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>43. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>#include &lt;algorithm&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;set&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main() { <br \/>\r<br>int t[] = {1,2,3,2,3,5,1,2,7,3,2,1,10, 4,4,5}; <br \/>\r<br>vector&lt;int&gt; v1(t, t + 15); <br \/>\r<br>set&lt;int&gt; s1(t, t + 15); <br \/>\r<br>pair&lt;set&lt;int&gt;::iterator, vector&lt;int&gt;::iterator &gt; resultSet = mismatch(s1.begin(), s1.end(), <br \/>\r<br>v1.begin()); <br \/>\r<br>cout&lt;&lt;*resultSet.first&lt;&lt;&quot; &quot;&lt;&lt;*resultSet.second&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>} <br \/>\r<br>Program outputs:<\/div><input type='hidden' name='question_id[]' id='qID_43' value='448280' \/><input type='hidden' id='answerType448280' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448280[]' id='answer-id-1734450' class='answer   answerof-448280 ' value='1734450'   \/><label for='answer-id-1734450' id='answer-label-1734450' class=' answer'><span>2 4<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448280[]' id='answer-id-1734451' class='answer   answerof-448280 ' value='1734451'   \/><label for='answer-id-1734451' id='answer-label-1734451' class=' answer'><span>4 2<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448280[]' id='answer-id-1734452' class='answer   answerof-448280 ' value='1734452'   \/><label for='answer-id-1734452' id='answer-label-1734452' class=' answer'><span>0 5<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448280[]' id='answer-id-1734453' class='answer   answerof-448280 ' value='1734453'   \/><label for='answer-id-1734453' id='answer-label-1734453' class=' answer'><span>compilation error<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-44' style=';'><div id='questionWrap-44'  class='   watupro-question-id-448281'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>44. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>template &lt;typename T&gt; <br \/>\r<br>class A { <br \/>\r<br>T_v; <br \/>\r<br>public: <br \/>\r<br>A() {} <br \/>\r<br>A(T v): _v(v){} <br \/>\r<br>T getV() { return _v; } <br \/>\r<br>void add(T a) { _v+=a; } <br \/>\r<br>template &lt;class U&gt; <br \/>\r<br>U get(U a) { <br \/>\r<br>return (U)(_v); <br \/>\r<br>} <br \/>\r<br>}; <br \/>\r<br>int main() <br \/>\r<br>{ <br \/>\r<br>A&lt;int&gt; a(1); <br \/>\r<br>a.add(10); <br \/>\r<br>cout.setf( ios::showpoint); <br \/>\r<br>cout &lt;&lt; a.getV() &lt;&lt; &quot; &quot; &lt;&lt; a.get(1.0)&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_44' value='448281' \/><input type='hidden' id='answerType448281' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448281[]' id='answer-id-1734454' class='answer   answerof-448281 ' value='1734454'   \/><label for='answer-id-1734454' id='answer-label-1734454' class=' answer'><span>program will display: 11 11<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448281[]' id='answer-id-1734455' class='answer   answerof-448281 ' value='1734455'   \/><label for='answer-id-1734455' id='answer-label-1734455' class=' answer'><span>program will not compile<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448281[]' id='answer-id-1734456' class='answer   answerof-448281 ' value='1734456'   \/><label for='answer-id-1734456' id='answer-label-1734456' class=' answer'><span>program will display: 11.0000 11<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448281[]' id='answer-id-1734457' class='answer   answerof-448281 ' value='1734457'   \/><label for='answer-id-1734457' id='answer-label-1734457' class=' answer'><span>program will display: 11 11.000<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div class='watu-question ' id='question-45' style=';'><div id='questionWrap-45'  class='   watupro-question-id-448282'>\n\t\t\t<div class='question-content'><div><span class='watupro_num'>45. <\/span>What happens when you attempt to compile and run the following code? <br \/>\r<br>#include &lt;list&gt; <br \/>\r<br>#include &lt;vector&gt; <br \/>\r<br>#include &lt;iostream&gt; <br \/>\r<br>using namespace std; <br \/>\r<br>int main () <br \/>\r<br>{ <br \/>\r<br>int t[] = {1, 2 ,3 ,4 ,5}; <br \/>\r<br>vector&lt;int&gt;v1(t, t+5); <br \/>\r<br>list&lt;int&gt;l1; <br \/>\r<br>l1.assign(v1.end(), v1.begin()); <br \/>\r<br>for(int i=0; i&lt;l1.size(); i++) <br \/>\r<br>{ <br \/>\r<br>cout&lt;&lt;l1.at(i)&lt;&lt;&quot; &quot;; <br \/>\r<br>} <br \/>\r<br>cout&lt;&lt;endl; <br \/>\r<br>return 0; <br \/>\r<br>}<\/div><input type='hidden' name='question_id[]' id='qID_45' value='448282' \/><input type='hidden' id='answerType448282' value='radio'><!-- end question-content--><\/div><div class='question-choices watupro-choices-columns '><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448282[]' id='answer-id-1734458' class='answer   answerof-448282 ' value='1734458'   \/><label for='answer-id-1734458' id='answer-label-1734458' class=' answer'><span>program displays 5 4 3 2 1<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448282[]' id='answer-id-1734459' class='answer   answerof-448282 ' value='1734459'   \/><label for='answer-id-1734459' id='answer-label-1734459' class=' answer'><span>program displays 1 2 3 4 5<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448282[]' id='answer-id-1734460' class='answer   answerof-448282 ' value='1734460'   \/><label for='answer-id-1734460' id='answer-label-1734460' class=' answer'><span>compilation error<\/span><\/label><\/div><div class='watupro-question-choice  ' dir='auto' ><input type='radio' name='answer-448282[]' id='answer-id-1734461' class='answer   answerof-448282 ' value='1734461'   \/><label for='answer-id-1734461' id='answer-label-1734461' class=' answer'><span>segmentation fault runtime exception<\/span><\/label><\/div><!-- end question-choices--><\/div><!-- end questionWrap--><\/div><\/div><div style='display:none' id='question-46'>\n\t<div class='question-content'>\n\t\t<img loading=\"lazy\" decoding=\"async\" src=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/img\/loading.gif\" width=\"16\" height=\"16\" alt=\"Loading...\" title=\"Loading...\" \/>&nbsp;Loading...\t<\/div>\n<\/div>\n\n<br \/>\n\t\n\t\t\t<div class=\"watupro_buttons flex \" id=\"watuPROButtons11405\" >\n\t\t  <div id=\"prev-question\" style=\"display:none;\"><input type=\"button\" value=\"&lt; Previous\" onclick=\"WatuPRO.nextQuestion(event, 'previous');\"\/><\/div>\t\t  \t\t  \t\t   \n\t\t   \t  \t\t<div><input type=\"button\" name=\"action\" class=\"watupro-submit-button\" onclick=\"WatuPRO.submitResult(event)\" id=\"action-button\" value=\"View Results\"  \/>\n\t\t<\/div>\n\t\t<\/div>\n\t\t\n\t<input type=\"hidden\" name=\"quiz_id\" value=\"11405\" id=\"watuPROExamID\"\/>\n\t<input type=\"hidden\" name=\"start_time\" id=\"startTime\" value=\"2026-04-28 13:38:20\" \/>\n\t<input type=\"hidden\" name=\"start_timestamp\" id=\"startTimeStamp\" value=\"1777383500\" \/>\n\t<input type=\"hidden\" name=\"question_ids\" value=\"\" \/>\n\t<input type=\"hidden\" name=\"watupro_questions\" value=\"448238:1734253,1734254,1734255,1734256,1734257 | 448239:1734258,1734259,1734260,1734261,1734262 | 448240:1734263,1734264,1734265,1734266,1734267 | 448241:1734268,1734269,1734270,1734271,1734272 | 448242:1734273,1734274,1734275,1734276,1734277 | 448243:1734278,1734279,1734280,1734281,1734282 | 448244:1734283,1734284,1734285,1734286 | 448245:1734287,1734288,1734289,1734290,1734291 | 448246:1734292,1734293,1734294,1734295 | 448247:1734296,1734297,1734298,1734299 | 448248:1734300,1734301,1734302,1734303,1734304 | 448249:1734305,1734306,1734307,1734308,1734309 | 448250:1734310,1734311,1734312,1734313,1734314 | 448251:1734315,1734316,1734317,1734318,1734319 | 448252:1734320,1734321,1734322,1734323,1734324 | 448253:1734325,1734326,1734327,1734328 | 448254:1734329,1734330,1734331,1734332 | 448255:1734333,1734334,1734335,1734336 | 448256:1734337,1734338,1734339,1734340,1734341 | 448257:1734342,1734343,1734344,1734345 | 448258:1734346,1734347,1734348,1734349,1734350 | 448259:1734351,1734352,1734353,1734354,1734355 | 448260:1734356,1734357,1734358,1734359 | 448261:1734360,1734361,1734362,1734363 | 448262:1734364,1734365,1734366,1734367,1734368 | 448263:1734369,1734370,1734371,1734372 | 448264:1734373,1734374,1734375,1734376,1734377 | 448265:1734378,1734379,1734380,1734381 | 448266:1734382,1734383,1734384,1734385 | 448267:1734386,1734387,1734388,1734389,1734390 | 448268:1734391,1734392,1734393,1734394,1734395 | 448269:1734396,1734397,1734398,1734399,1734400 | 448270:1734401,1734402,1734403,1734404,1734405 | 448271:1734406,1734407,1734408,1734409 | 448272:1734410,1734411,1734412,1734413,1734414 | 448273:1734415,1734416,1734417,1734418,1734419 | 448274:1734420,1734421,1734422,1734423,1734424 | 448275:1734425,1734426,1734427,1734428,1734429 | 448276:1734430,1734431,1734432,1734433,1734434 | 448277:1734435,1734436,1734437,1734438,1734439 | 448278:1734440,1734441,1734442,1734443,1734444 | 448279:1734445,1734446,1734447,1734448,1734449 | 448280:1734450,1734451,1734452,1734453 | 448281:1734454,1734455,1734456,1734457 | 448282:1734458,1734459,1734460,1734461\" \/>\n\t<input type=\"hidden\" name=\"no_ajax\" value=\"0\">\t\t\t<\/form>\n\t<p>&nbsp;<\/p>\n<\/div>\n\n<script type=\"text\/javascript\">\n\/\/jQuery(document).ready(function(){\ndocument.addEventListener(\"DOMContentLoaded\", function(event) { \t\nvar question_ids = \"448238,448239,448240,448241,448242,448243,448244,448245,448246,448247,448248,448249,448250,448251,448252,448253,448254,448255,448256,448257,448258,448259,448260,448261,448262,448263,448264,448265,448266,448267,448268,448269,448270,448271,448272,448273,448274,448275,448276,448277,448278,448279,448280,448281,448282\";\nWatuPROSettings[11405] = {};\nWatuPRO.qArr = question_ids.split(',');\nWatuPRO.exam_id = 11405;\t    \nWatuPRO.post_id = 117380;\nWatuPRO.store_progress = 0;\nWatuPRO.curCatPage = 1;\nWatuPRO.requiredIDs=\"0\".split(\",\");\nWatuPRO.hAppID = \"0.73735000 1777383500\";\nvar url = \"https:\/\/www.dumpsbase.com\/freedumps\/wp-content\/plugins\/watupro\/show_exam.php\";\nWatuPRO.examMode = 1;\nWatuPRO.siteURL=\"https:\/\/www.dumpsbase.com\/freedumps\/wp-admin\/admin-ajax.php\";\nWatuPRO.emailIsNotRequired = 0;\nWatuPROIntel.init(11405);\nWatuPRO.inCategoryPages=1;});    \t \n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>Effective CPP &#8211; C++ Certified Professional Programmer exam preparation starts with DumpsBase\u2019s CPP-22-02 dumps (V8.02) today. All the CPP-22-02 exam questions in V8.02 are created and reviewed by certified experts, ensuring accuracy and relevance to the current exam format. We have previously shared the CPP-22-02 free dumps (Part 1, Q1-Q40) of V8.02, so you can [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[15960,435],"tags":[20780,20807],"class_list":["post-117380","post","type-post","status-publish","format-standard","hentry","category-c-certified-professional-programmer","category-c-institute","tag-cpp-22-02","tag-cpp-22-02-dumps"],"_links":{"self":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/117380","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/comments?post=117380"}],"version-history":[{"count":1,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/117380\/revisions"}],"predecessor-version":[{"id":117381,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/posts\/117380\/revisions\/117381"}],"wp:attachment":[{"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/media?parent=117380"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/categories?post=117380"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.dumpsbase.com\/freedumps\/wp-json\/wp\/v2\/tags?post=117380"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}