Name: Date: Period: ***CS 1 TEST*** Directions: You have the entire class period to complete the following test. You may use your computer, the Internet, and anything else you have on the computer. You may NOT receive aid from others or their computers. If caught cheating, you will receive a zero. Please show ALL work for partial credit in case your answer is incorrect. When you are done with the test, please print it out and place it on Mr. Bui's desk. 1) Write a print statement that displays the following: Go Generals! 2) Given the following lines of code: x = 1 y = 2 z = x / y What would you change to prevent integer division? Please rewrite or mark the lines of code above. 3) Create a function named PrintHello() that prints "hello" 5 times 4) Write an if statement that compares two variables: x and y to see if they are not equal 5) Write a function named isNotEven(n) that takes one parameter. The function should return true if the parameter is NOT even and return false if the number is even. 6) Write a program that prints out all the numbers from -15 up through 50. 7) Prompt the user for a number and store it in a variable N. Write a program that prints out the first N terms of the following sequence: 0 3 6 9 12 15 EXTRA CREDIT: (You may use the Internet to answer this question): Why is the Python programming language named "Python"? **IB STUDENTS** (complete this section only if you are IB) 8) Given the following code: s = "Computer Science" Write the program to print every other letter starting from the end. For full credit, you MUST use a loop to traverse the string. Your code should produce either: e n i S r t p o *OR* eniSrtpo