    <rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:admin="http://webns.net/mvcb/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:content="http://purl.org/rss/1.0/modules/content/">
     <channel>
        <title>ACCU  :: 6 x 24</title>
        <link>https://members.accu.org/index.php/journals/1204</link>
        <description>Professionalism in Programming</description>
        <dc:language>en-us</dc:language> 
        <dc:creator>Administrator</dc:creator> 
        <admin:generatorAgent rdf:resource="http://www.xaraya.org" /> 
        <admin:errorReportsTo rdf:resource="mailto:webeditor@accu.org" />
       <sy:updatePeriod>hourly</sy:updatePeriod>
       <sy:updateFrequency>1</sy:updateFrequency>
       <docs>http://backend.userland.com/rss</docs>


        <h2>Journal Articles</h2>


<div class="xar-mod-head"><span class="xar-mod-title">CVu Journal Vol 15, #2 - Apr 2003</span></div>

<table border="0" cellpadding="1" cellspacing="0">
    <tbody>
    <tr>
        <td valign="top">
            Browse in :
       </td>
       <td valign="top">

                                            <a href="https://members.accu.org/index.php/journals/">All</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c76/">Journals</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c77/">CVu</a>

                     &gt;                         <a href="https://members.accu.org/index.php/journals/c109/">152</a>
                    (9)
<br />
</td>
   </tr>
   </tbody>
</table>




<div class="xar-error">
   <p>
 <strong>Note:</strong> when you create a new publication type,
the articles module will automatically use the templates
<em>user-display-[publicationtype].xt</em>
and <em>user-summary-[publicationtype].xt</em>.
If those templates do not exist when you try to preview or display a new article,
you'll get this warning :-)  Please place your own templates in themes/<em>yourtheme</em>/modules/articles . The templates will get the extension .xt there. </p>
</div>
<div class="xar-norm xar-standard-box-padding">
   <h1><strong>Title:</strong>&nbsp;6 x 24</h1>
<p><strong>Author:</strong>&nbsp;</p>
<p>
<strong>Date:</strong> 03 April 2003 13:15:56 +01:00 or Thu, 03 April 2003 13:15:56 +01:00</p>
<p><strong>Summary:</strong>&nbsp;</p>
<p><strong>Body:</strong>&nbsp;<div class="section" lang="en">
<div class="titlepage">
<h2><a name="d0e23" id="d0e23"></a></h2>
</div>
<p>Recently, our company has been recruiting C++ programmers and,
like any other forward-thinking organisation, we've taken great
pains with the interview process, ensuring that we ask the
candidates a carefully crafted set of questions to test their
knowledge. Being as we are a company that believes in careful
research, we did a quick check of a mailing list and borrowed the
first set of questions we found there - after all, the combined
powers of <tt class="literal">accu.general</tt> are likely to
produce a superior set of questions to those we could produce
ourselves. Since we also believe in proper testing, we first tried
the questions out on our most long-serving programmer to get a
truly definitive benchmark set of answers. We are rather pleased
with the results and we happily anticipate finding the ideal
candidate to work with the rest of our coding team. In the
interests of improving the quality of all software teams
everywhere, we herewith share our results:</p>
<div class="variablelist">
<dl>
<dt><span class="term">1. Who is Bjarne Stroustrup?</span></dt>
<dd>
<p>&quot;He's just this guy, you know&quot;</p>
</dd>
<dt><span class="term">2. On a scale of 0 to 10, where 0 is someone
who has never heard of C++ and 10 is Bjarne Stroustrup, how would
you rate your C++?</span></dt>
<dd>
<p>11 - did I mention I was once a roadie for Spinal Tap?</p>
</dd>
<dt><span class="term">3. Write a simple Standard C++ program which
displays &quot;Hello World&quot; at the command line and starts a new line.
Describe how you would modify this program so that it could be
built by Microsoft Visual C++ 6.0 without any warnings.</span></dt>
<dd>
<pre class="programlisting">
#include &lt;Everything&gt;
void main() {
  system(&quot;echo Hello World&quot;) ;
}
</pre>
<p>For VC++</p>
<pre class="programlisting">
#include &lt;stdafx.h&gt;
void main() {
  system(&quot;echo Hello World&quot;) ;
}
</pre></dd>
<dt><span class="term">4. What is the difference between a class
and a struct?</span></dt>
<dd>
<p>Schools don't teach structs.</p>
</dd>
<dt><span class="term">5. In the context of C++ what is
abstraction?</span></dt>
<dd>
<p>Staring into space with a blank expression on my face wondering
what my colleague's C++ code is supposed to do.</p>
</dd>
<dt><span class="term">6. In the context of C++ describe the
differences between Abstraction and Encapsulation.</span></dt>
<dd>
<p>Encapsulation is how the Ibuprofen is packaged. This is used
after the Abstraction phase, when I realise he's used templates,
and before I dispatch him to hospital.</p>
</dd>
<dt><span class="term">7. In the context of C++ what is
Inheritance? Give an example.</span></dt>
<dd>
<p>It's when my colleague leaves me that source code in his
will.</p>
</dd>
<dt><span class="term">8. In the context of C++ what is
Polymorphism? Give an example.</span></dt>
<dd>
<p>It's when I have a mutable member of class Parrot.</p>
</dd>
<dt><span class="term">9. What is a virtual function?</span></dt>
<dd>
<p>One I haven't written yet.</p>
</dd>
<dt><span class="term">10. What is a destructor?</span></dt>
<dd>
<p>It's a Transformer 'bot.</p>
</dd>
<dt><span class="term">11. When would you use a virtual
destructor?</span></dt>
<dd>
<p>When Toys'R'Us are out of the real ones. A painted Barbie will
do in a pinch.</p>
</dd>
<dt><span class="term">12. Does a virtual destructor work the same
way as a virtual function?</span></dt>
<dd>
<p>Yes - neither exists, and neither does anything.</p>
</dd>
<dt><span class="term">13. What member functions does the compiler
generate for you automatically?</span></dt>
<dd>
<p>The constructor and destructor. (Or is that the VC++ class
wizard?)</p>
</dd>
<dt><span class="term">14. How should you write a copy
constructor?</span></dt>
<dd>
<p>By pasting in someone else's source code.</p>
</dd>
<dt><span class="term">15. What does the const keyword do, and
where do you use it?</span></dt>
<dd>
<p>It causes compilation errors, so I don't.</p>
</dd>
<dt><span class="term">16. What are namespaces, and why are they
useful?</span></dt>
<dd>
<p>They're a way of pretending my global variables aren't global,
and therefore good for fooling my colleague who thinks he's a
better programmer than me just because he doesn't use globals.</p>
</dd>
</dl>
</div>
<p>Paul Grenyer originally posted these questions on accu.general,
and Alan Bellingham is the longest serving programmer at his
company, showing that twelve years C++ experience can sometimes be
six month's experience twenty-four times over.</p>
</div>
</p>
<p><strong>Notes:</strong>&nbsp;</p>
<p><em>More fields may be available via dynamicdata ..</em></p>
</div>
</channel>
</rss>
