CS21 PRACTICE QUIZ 1, Swarthmore College Fall 2008 Q1] Define the term "algorithm". Q2] For each of the following expressions, show the value that will be returned by the Python interpreter. (10 % 4) + (6 / 4) abs(4 - (20 / 3)) ** 3 (5.0 / 2.0) + 3.5 "me" * 3 + "you" * 2 Q3] Write a "for loop" that will print the word 'hello' five times (once per line). Q4] Show the output that will be produced when the following program is executed in the Python interpreter. def mystery(): answer = 1 for i in range(5,2,-1): answer = answer * i print "current answer is", answer print "final answer is", answer mystery() Q5] Write a program that will convert a measurement in inches into a measurement in centimeters. One inch is equivalent to 2.54 centimeters. Your program should prompt the user for a value in inches and print the equivalent value in centimeters.