CS100/CIS121/EAS121 Prelim 1 Spring 2004 Summary/Instructions Due to popular demand, here's a brief reminder/summary of MATLAB functions/keywords you need to know. Note that many of these will be summarized in a MATLAB "Reminders" section on the exam. primary functions: rand floor ceil mod plot clc clear help input xor disp num2str fprintf (as in the E3 solution) There may be a few more in the lecture notes I did not list. primary keywords: if else elseif for while end There may be a few more in the lecture notes I did not list. ***************************************************************** Also, here's the current versions of the instructions on the exam: - Turn off all cell phones, beepers, pagers, and any other devices that will interrupt the exam. - Remove all calculators, reference sheets, or any other material. This test is closed book. - Fill out the information at the top of this exam. - Wait for us to announce when the exam begins. Skim the entire exam before starting any of the problems. - Read each problem completely before starting it. - Write your solutions directly on the test using blue/black pen or pencil. Clearly indicate which problem you are solving. You may write on the back of each sheet. If you need scrap paper, ask a proctor. - Provide only one statement, expression, value, or comment per blank! - Do not alter, add, or remove any code that surrounds the blanks and boxes. - Do not supply multiple answers. If you do so, we will choose which one to grade. - Follow good style! When possible, keep solutions general, avoid redundant code, use descriptive variables, use named constants, indent substructures, avoid breaking out of loops, and maintain other tenets of programming philosophy. - Comment each control structure, major variable, method, and class (if used), briefly. - You have 90 minutes. Budget about one minute per point. - Do not work on bonus problems until you have thoroughly proofread all required (core-point) problems! - Try yo figure out any problem yourself before raising your hand so that we can avoid disturbing people in cramped rooms.