title: Sample C++ tests
body: <p>I'm about to take a C++ test.  But I only get one crack at it to get over 85%.  If I don't push over that, then I don't get the job.  </p>
  
  <p>The problem with these tests are that they typically target <strong>generic C++,</strong> and depending on what libraries you use your definition of generic may differ.  STL and Boost may seem logical to some (and should be part of most) but I worked with MFC for years before ever using templates.  Why use &gt;vector> when you've got access to CArray?  (retorical question)</p>
  
  <p>If you've worked with dialogs you've not used <code>stdio</code>.  If you've worked with Borland products you've not used MFC.  If you've worked with Palm, you've not used the file system, and you've definitely not used <code>CFile</code>.</p>
  
  <p><strong>OK, so here's the question...</strong></p>
  
  <p>Given that I'd like to pass the 85%, I'm taking online tests of "generic" C++.  So... <strong>Is there a place I could go to find tests?</strong>  The more the better.  Correct answers are also good, either during or after the test. As long as I can learn from my mistakes. </p>
  
  <p>EDIT:  If your answer doesn't have a link to a test, some C++ questions, or some interview questions... You missed the point of <strong>Is there a place I could go to find tests?</strong></p>
  
  <p><em>Great example.. I've just found this question.<br>
  What does the following code fragment print?  <code>cout &lt;&lt; setw(6) &lt;&lt; setfill('#') &lt;&lt; "Hello";</code> <br>
  I've been coding for 9 years. And never used <code>cout</code>, <code>setw</code> or <code>setfill</code> once.  Not since university.</em> </p>