==================================== Directions and preparing for Test #2 ==================================== -Ian! D. Allen - idallen@idallen.ca As mentioned on the course home page, your second test is online in your lab period on Wednesday, November 2, 2005. All the course and lab material covered before October 28 is open to questions, including any previous tests and practice tests. The test is in two parts: Multiple Choice and script writing. Bring a soft pencil (and a very good eraser) for Part I of the test. You will use your computer for Part II. The test is 110 minutes (two hours minus 10 minutes) long. Manage your time. The multiple-choice questions are worth 1/2 of the mark. The script writing section is worth 1/2 of the mark. One half of the mark means one-half of the time - 55 minutes for each half. You may *not* use your computer or notes during the first part of the test; however, you may log in to the computer to verify that it is fully functional. ------ Part I - closed book, no computer, multiple choice with Crib Sheet ------ Required: two soft pencils (pencil *ONLY*) and a good eraser. The first part of the test is multiple choice questions, filled out in soft pencil on the usual computer-readable blue mark-sense "bubble" sheets using a soft pencil. This part is closed book and no computer, except that you may have with you a "crib sheet". For full marks, follow all the directions below. Crib Sheet ---------- *) This part is closed book and closed computer, except that you may have with you a "crib sheet". A crib sheet is one side of a single piece of paper (metric A4 or standard Letter size) filled with anything you want to put there. You may use only one side. 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 the number of copies. Prepare your own crib sheet. *) Put your name on your crib sheet. Answering Multiple-Choice Questions ----------------------------------- *) Put your full, unabbreviated name on the mark-sense bubble sheet. Use the exact name you gave the Registrar - that's the name the computer is looking for when it matches your name against its database. Use the exact name with which you are registered. Pay attention to the order of Last and First names. Spelling counts. *) I want to measure what you know, not what you don't know. Answer all the questions you know, first. Don't waste time with questions about which you are unsure. Guess the answer or come back to them later. *) Concentrate on your own answers. There are different versions of the test in the room. Your answers will not match the people around you. That's okay. Relax. Breathe. *) Bring two soft pencils and a good eraser. You will have a full set of multiple-choice questions to answer on a mark-sense bubble sheet. Erase mistakes completely - the scanner machine is very sensitive and will reject half-erased answers. In the course notes under the heading "Tests and Exams (with Answers)" you will find many multiple-choice questions (with answers) similar to those I will be using on the upcoming test: Practice Test #2 Questions practiceTest2.txt (text format) practiceTest2.ps (Postscript format) practiceTest2.pdf (Portable Document Format) All three practiceTest files contain the same questions in the same order. Choose the format that suits you. The PDF or PostScript files print best. Each practice test file has the answer key at the end. -------- Part II - online, open text, open notes shell script writing -------- After you have finished and handed in Part I, you may use your notes, textbook, and computer for the rest of the test. You will be required to write and/or modify executable shell scripts online using the VIM editor. Follow the simplified shell script comment style given at the bottom of this file. Part II is online and fully open book, open textbook, open notes, open computer. You may access your own files, not the files of other students. The course notes will remain online in their usual place (under ~alleni). Your sessions will be logged and monitored during the test; do not enter any personal information that you don't want your instructor to see. You will find it useful to have several windows open during the test, so that you can be doing several things at the same time. ================================ Script Style and Rules for Tests ================================ For the shell script section of the test (Part II), the format of the main part of the shell script you will prepare must look similar to this: # Step 6 date echo "hi there" # Step 7 who ls -l /etc/passwd Each step in the script (except Step 1) must be preceded by exactly one single comment line that starts with '#' that contains a step number comment (only the step number is needed), exactly as you see above. These are the *only* comment lines you need in front of each step. After each single step-number comment line come the shell commands that you use to answer the questions for that step. Missing step comments will cost you marks. Do not put a Step comment as the first line of an executable script. Scripts must start with a correct CST8129 script header that includes an interpreter line and lines to set the shell search path, the default permissions for newly created files, the ASCII collate order, and the single-byte character set. For full marks, follow the full 11-part format described in Notes file script_style.txt. The script specifications may allow you to omit some parts of the 11-part format (such as Assignment Label, which isn't needed on a test); read the actual script directions carefully.