==================================== Directions and preparing for Test #3 ==================================== -Ian! D. Allen - idallen@idallen.ca As mentioned on the course home page, your third test is in your lab period on Tuesday, November 23, 2004. Bring a soft pencil (and a good eraser) for Part I of the test. The test is in two parts. ------ Part I - (mostly) closed book multiple choice ------ The first part of the test is multiple choice questions, filled out on mark-sense sheets using a soft pencil. (Bring a good eraser!) It is closed book, except that you may have with you a "crib sheet". A crib sheet is one single piece of paper (metric A4 or standard Letter size) filled with anything you want to put there. You may use both sides. You may hand write the paper or you may machine print it with tiny letters - you choose. You can put text or pictures or programs or anything you want there. You can copy the entire course textbook onto the page, if you can read it. Magnifying glasses are permitted. You must prepare your own crib sheet. You will submit your crib sheet at the end of the test. People who have copied crib sheets from other people will have their marks divided by two. Prepare your own crib sheet. Put your name on your crib sheet. Many sample test questions have been posted to the Notes page: Practice Test #3 Questions practiceTest3.txt (text format) practiceTest3.ps (Postscript format) practiceTest3.pdf (Portable Document Format) All the files contain the same material in a different randomized order. Each file has its own answer key at the end. ------- Part II - open book online shell script work ------- After you have finished Part I, you may start Part II of the test. Part II is online and fully open book, open note, open computer. You will be required to write a working, executable shell script using the VIM editor and using Unix commands from the list of commands you know (see the Notes for the list). See these Notes files for examples of the things you might be asked to do: practiceCommands_3.txt Practice Unix/Linux Questions #3 labpractice1.txt Shell programming practice - Weather scripts script_practice1.txt Practice Script #1 Specifications CGI_script.txt Building a CGI Script on Unix exercise03.txt Exercise #3 for DAT2330 The shell "while" loop will not be covered on this test. This test as a whole is worth 20%. The Part I multiple-choice questions [closed book] are worth 10 of the 20%. The Part II shell script [open book] is worth 10 of the 20%. For the shell script section (Part II), the format of the main part of the shell script you will prepare must look similar to this: # Step 1 date echo "hi there" # Step 2 who ls -l /etc/passwd Each step in the script must be preceded by a comment line that starts with '#' that contains the step number, as you see above. These are the only comment lines you need in front of each step. After each single comment line come the shell commands that you use to answer the questions for that step. You must have comment lines even for steps you leave out. The script must start with a correct DAT2330 script header that includes an interpreter line and lines to set the shell search path and the default permissions for newly created files. For full marks, follow the full nine-part format described in Notes file script_style.txt. (You may prepare a template for your script ahead of time, before the test begins.) I will collect your scripts from your home directories at the end of the test. Do not delete or modify any files until an hour after the test ends, so that I can collect all your files safely. You may find it useful to log in multiple times to the Course Linux Server during the test, so that you can be doing several things at the same time in different windows.