On Sat, 2004-02-28 at 13:45, Ken Foskey wrote:
> I am writing up a course on scripting and perl and I would like to
> produce a series of quick tests to validate the students knowledge. 
> These tests will end up in the TAFE LPIC notes.
> 
> I want some ideas to test knowledge with a 10 minutes quiz for
> beginners.  One example I thought of was "take a file and give a list of
> elements removing all repeats, ignoring case".  This is testable using a
> script written to test the output.
> 
> I thought there might be some other suggestions.  If you suggest
> something I assume that you are handing the copyright to the LPIC notes
> project which is some form of open content license.
> 
> Suggestions for tests only,  no implementations or solutions.

Standard Perl log parsing:

Take a file and list elements by occurrence, most to least.
Include occurrence count.
Insert additional unwanted fields in file as needed.


File Finding:

Script accepts an argument.
Walk a directory tree and print the names of files which match argument.
Vary the match requirements as needed (partial filenames, argument must
be found in file to match, etc).

Cheers,
Malcolm V. 

-- 
SLUG - Sydney Linux User's Group Mailing List - http://slug.org.au/
Subscription info and FAQs: http://slug.org.au/faq/mailinglists.html

Reply via email to