Computer Science 3710, Winter '00: Take-home Midterm: Preface
Thanks for reading this first. Some quick notes and hints:
That being said, cruise on. If you want to treat this as a real midterm,
try to do it in 50-60 minutes (closed book, please!); the marking scheme
would be very similar to that I used on the in-class C midterm.
Otherwise, if you just want to see what kinds of Perl questions I'd
consider fair game, skip the midterm and have a look at the answers.
- The take-home Perl midterm, has the same format as the in-class
C midterm -- namely, 4 questions (find the bugs, write some
expressions / statements, trace a piece of code, write a
main program and a subroutine to a given specification).
- The take-home midterm is once again out of 50 marks.
- Some really useful things you should remember about Perl
- Defining and using scalars, lists, and hashes.
- Control structures (including those different from or
not in C).
- List assignment statements.
- Elementary functions on lists and hashes (the ones covered
- Elementary functions on character-string scalars,
e.g., split and join.
- Defining subroutines.
- Parameter passing to subroutines -- in particular, how
one passes parameters by value and by reference in Perl.
- Returning values from subroutines.
- The match and substitution pattern operators.
- I am not out to trip you up -- the stuff I am testing is stuff
you should know (as a minimum) on Perl in general and for the
Perl questions on the final in particular.
- This take-home exam is not worth anything to your course
mark; it is provided for practice / entertainment only.
Enjoy! And above all, relax -- this is only for practice!
Created: March 21, 2000
Last Modified: March 21, 2000