Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Comment on

( #3333=superdoc: print w/ replies, xml ) Need Help??
One of my professors was fond of saying that you can't study for a programming (or math) exam. If you don't know it by the night before the exam, no amount of cramming will help.

This may be true, but was of little consolation to those of us worrying about the upcoming test.

I've found that the best way to prepare for a programming test is simply to program. Write as much as you've got time for, run it all through the computer, and learn as much as you can from it. Syntax is a big issue, but it's also good to know all the little quirks of a language.

Write a small program that does nothing but simple file I/O. Write another one that just takes keyboard input. Write one for string manipulation, for math functions, for... whatever you think might trip you up on the test. You've been in the class long enough to have a good grasp of the subject matter. All you need now is the ability to express your knowledge in program form.

One big issue is whether the professor favors Elegance or Openness. I had a professor (same one who claimed you can't study) who was an elegance nut. The more "elegant" (his word for obfuscated) your code, the higher he'd grade you. If you could write a program in a single bewildering line, using constructs from strange nooks and crannies of the language, you'd get a gold star.

Conversely, I had another professor who loved programs that were perhaps less efficient and impressive, but easily understandable. If you turned in a one-liner when he was looking for a half page with comments, he'd mark you down for being a smartass.

Woe be to the student who forgot which class he was in...


In reply to Re: Meditations on the Nature of Code Exams by Sprad
in thread Meditations on the Nature of Code Exams by Elgon

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • Outside of code tags, you may need to use entities for some characters:
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.
  • Log In?
    Username:
    Password:

    What's my password?
    Create A New User
    Chatterbox?
    and the web crawler heard nothing...

    How do I use this? | Other CB clients
    Other Users?
    Others about the Monastery: (11)
    As of 2014-08-20 05:34 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      The best computer themed movie is:











      Results (105 votes), past polls