Study guide for first exam ** Content ** - linux - python chapters 1 and 2 - assignments h1-h4 - quizzes quizA-quizC ** Types of questions ** - Linux commands and shortcuts - the exact questions from quizA and quizB on these - Python operators, keywords, concepts - the exact questions from quizB and quizC on these - Give one line of python code - similar to the ones on quizB and quizC - Evaluate the python expression - similar to the ones from quizC - Fix python syntax - simmilar to howMany from h3 - New - play computer (see below) - New - python loops (see below) ** Practice exam ** - Available Feb 17 - Will be very similar to the actual exam - Timing - 2 hours for online section - Allowed - one page cheat sheet (front and back), nothing else (no calculator, phone, etc.) - Online section - will use feature in blackboard to prevent using web browsers, etc., during the exam ** Play Computer ** - Programs similar to those from assignments and from in class, see also the programs listed below for loops ** Python Loops ** - Study the following programs + From https://cs.indstate.edu/wiki/index.php/Programming_Assignments_-_Beginning_1 - Loop through text, Count letter, Count up, Count down, Add up, String explosion, Password check, Addition facts, Random coins, Math quiz, Powers of two, Factorials, Factors, Is prime + From http://cs.indstate.edu/cs151/code.php?dir=./code/LECTURES/kinne_chapter2 - annoying, coin_flip, for_count_by, for_divisors, for_second, total + From http://cs.indstate.edu/cs151/code.php?dir=./code/davenport/feb03 - rectangle ** Grading notes ** + Commands/keywords/functions/etc. - answers are case-sensitve - And is not the same as and. Gave half credit this time for mis-capitalized, but may give 0 credit next time. - some people had a - at the beginning of their answer for some reason. Let that go this time, but if the question is for the command to copy, cp is the right answer but -cp is not. - commonly used functions - input is a function, input() is not as correct since that is also calling the function. E.g., what is the function that you use to get info from the user? Answer: input. + Fix syntax error - Half credit if code given does not have a syntax error but also has some other changes that weren't intended. - Zero credit if not changed at all. - Okay - copy/paste'd just the line with the syntax error and fixed it. + Give python code - Half credit if did something related but not asked and didn't have syntax errors. - -.5 (out of 2) for one or two minor syntax errors - Pay attention to indenting! - Favorite number: -.5 if did not convert to float or int -.5 for minor syntax error 1/4 if correct input statement but not anything else 1/4 if comments with the right plan, but no code 0/4 if too many mistakes (e.g., half of the code is way off, lots of syntax errors, etc.) + Play computer 1 point for count 1 point for i 1 point for screen 1 point for num 3/4 - it looks like you have the right values, but not clearly marked what is what 2/4 - looks like you have the right final value for count, but not clearly markeed what is what