in reply to Perl quiz for beginners
Perl is a name, not a set of initials (although that is open to interpretation).
Autovivification: it is more than the supplied answer
The shebang line for the use described is UNIX specific, it is a special comment on, for example, Windows.
Command to use to know Perl version only using command line is poorly worded, and please explain why perl -v is wrong.
Valid File handlers did you mean "file handles"? In which case, none of the supplied answers are correct with use strict, anyway, you should be teaching begineers lexical file handles, not bare-words.
my $prize = “5 Dollars” print ‘You got $prize’; will give a syntax error because there is a missing semi-colon before the print
These questions are way too thin to give any indications as to the skill level of the participant, and anyway, with TMTOWTDI, just having one possible answer is questionable.
Autovivification: it is more than the supplied answer
The shebang line for the use described is UNIX specific, it is a special comment on, for example, Windows.
Command to use to know Perl version only using command line is poorly worded, and please explain why perl -v is wrong.
Valid File handlers did you mean "file handles"? In which case, none of the supplied answers are correct with use strict, anyway, you should be teaching begineers lexical file handles, not bare-words.
my $prize = “5 Dollars” print ‘You got $prize’; will give a syntax error because there is a missing semi-colon before the print
These questions are way too thin to give any indications as to the skill level of the participant, and anyway, with TMTOWTDI, just having one possible answer is questionable.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Perl quiz for beginners
by jassics (Initiate) on Sep 09, 2011 at 07:49 UTC | |
by moritz (Cardinal) on Sep 09, 2011 at 08:38 UTC | |
by ww (Archbishop) on Sep 09, 2011 at 09:32 UTC |
In Section
Seekers of Perl Wisdom