#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        string str &#40;&quot;steve jobs is legend&quot;&#41;;        string::iterator it;        str.erase &#40;str.begin&#40;&#41;+ 5, str.end&#40;&#41;-7&#41;;        cout &lt;&lt; str &lt;&lt; endl;              return 0;    &#125;
A. jobs is
B. steve legend
C. steve
D. none of the mentioned
Answer:A
#include &lt;iostream&gt;    #include &lt;string&gt;    using namespace std;    int main &#40;&#41;    &#123;        string str &#40;&quot;steve jobs is legend&quot;&#41;;        string::iterator it;        str.erase &#40;str.begin&#40;&#41;+ 5, str.end&#40;&#41;-7&#41;;        cout &lt;&lt; str &lt;&lt; endl;              return 0;    &#125;
A. jobs is B. steve legend C. steve D. none of the mentioned
Explanation:In this program, We are leaving the first 5 characters and last 7 characters and we are erasing the remaining the characters.