in reply to Perl quiz for beginners

If I saw that quiz at a potential employer I would cross them off my list; I don't need work that badly.

Here are a few of the specific issues:

I am sure that a critical eye would find fault with some of my answers here as well, which will lend credence to this next statement. Good test questions and well chosen answer sets take a lot of thought to compose; a concept that too many teachers fail to recognize. I hate multiple choice questions because I'm constantly asking myself, "Do they want the correct answer, or the answer that I suspect they think is correct?" I do think that the questions themselves would do a poor job of distinguishing a good programmer from a bad one.

I have retyped the next paragraph so many times that I've decided to refrain from saying any more on the subject.


Dave

Replies are listed 'Best First'.
Re^2: Perl quiz for beginners
by jwkrahn (Abbot) on Sep 09, 2011 at 09:07 UTC
    If you're asking specifically about the default filehandles, they're all full caps,

    If you are talking about STDIN, STDOUT and STDERR then perl has always (AFAIK) supported the lower case versions stdin, stdout and stderr although ARGV, ARGVOUT and DATA have to be upper case.

    $ perl -le'print for grep /^std/i, %::' stderr stdout stdin STDOUT STDERR STDIN $ perl -v This is perl, v5.10.1 (*) built for i486-linux-gnu-thread-multi Copyright 1987-2009, Larry Wall

      Does it support Stdin, Stdout, and Stderr? Because that's how the answers were worded: In ucfirst format. (And if it does, then holy cow, I'm still a beginner!)


      Dave

Re^2: Perl quiz for beginners
by jassics (Initiate) on Sep 09, 2011 at 10:26 UTC
    Few of them were mistakes due to MS word like Stdout instead of STDOUT. I am sorry for that.

    Yes, lots of efforts are needed before posting full proof expert like quiz. I am beginner in Perl programming and got many things from these comments that how much effort I need before posting anything here or even in our website.

    Thanks for all expert comments. Criticism is always good for someone (here for me :)).

    I will try to put next quiz after experimenting and testing a lot.

    Davido, as per your comments I modified many questions and answers. hope there will less bugs now.

    Perl acronym will always be there even t doesn't mean so. Check Wikipedia or any good universities documents. It will be there. ex: http://www.cs.cmu.edu/cgi-bin/perl-man (Canergie Mellon University). So let ti be there for our reference in case if its asked.

      If anything, it's a Backronym, which makes its inclusion in your quiz a poor choice. If you must include it, call it what it is, and don't try to make it look like the name Perl was an artifact derived from a chosen longhand phrase.

      Which "good university" has documents stating that Perl is intended to be an acronym?

      Before you start telling people to refer to Wikipedia or some vague university's "documents", you should RTFM, or in this case, RTFFAQ: perlfaq1: What is the difference between perl and Perl?. I won't cut-and-paste it here, but you will find that the Perl documentation disputes your assertion.

      While you're at it, you can confirm my JAPH comment here: perlfaq1: What is a JAPH?


      Dave

        Oh yes, thanks again Dave.
        Modified it.

        I love this site and its users. They are very active and very knowledgeable. Would love to hear more from you people on our contents. Either you people can contribute your posts as our guest author or can leave comment at Per Forum
        and Perl Blogs
      "Check Wikipedia or any good universities documents. It will be there."
      NO!

      Not because I care all that much about the specific issue -- whether the name has some specific acronymic meaning, but rather, because you're suggesting that seconday (and very possibly inaccurate) resources should be grounds for ignoring a primary resource, such as Larry Wall's own remarks.

      Now, I'll grant that I've not found (in the archives of comp.lang.perl.misc) a statement signed by Wall, nor audio or video of Wall disputing the notion that "perl" or "Perl" is an acronym, nor have I ever had occasion to ask timtoady 'what's the fact?' but the assertions of numerous Perl pioneers (including a good many Monks of Great Tenure; merlyn, tilly (see [Re^5: perl not omnipotent? let's see!), petdance....) are, to me, far more persuasive than sources such as wiki, CS departs at .edus, etc.

      Likewise, IMO, the widely reported story that a witty writer invented a backronym to explain his name choice (or as a joke) seems more plausible than that he departed so radically from the common use of

      • pedestrian acronyms (COBOL, BASIC, etc.),
      • personal initials (awk, for example)
      • or personal names with historic CS significance (ADA)
      as denominators for computer languages.