Title: Logic Pre-test
Course: CPS 120: Introduction to Computer Science ~ Master (Aug/2015) OLD

Pre-test for CPS 120

Q: 1.    Divide 30 by ½ and add 10. What is the answer?
A: 70 / seventy

Q: 1.    How many 3-cent stamps in a dozen?
A: 12 / dozen / twelve

Q: 1.    How many times does the digit 9 appears in the numbers 1 through 100?
A: 20

Q: 1.    What is 2 divided by ½?
A: 4 / four

Q: Make 52 out of 2, 5, 8 and 9.

- Do NOT include any spaces and
- Use only the following symbols to represent the mathematical operations: + (addition), - (subtration), * (multiplication), / (division), () (parenthesis)
A: (9-(5/2))x8 / (9-(5/2))*8 / (9-5/2))8

Q: The following is what seems to be a mathematical proof that two equals one.  What's wrong with it? Select the line that has the error.
- a = b
- aa = ab
- aa - bb = ab - bb
- (a + b) (a - b) = b (a - b)
- (a + b) = b
- (a + a) = a
- 2a = a
- 2 = 1
A: (a + b) (a - b) = b (a - b)

Q: You drive to the store at 20 mph and return by the same route at 30 mph. Discounting the time spent at the store, what was your average speed?
A: 24 / twenty-four / twenty four

Q: If you take two apples from three apples, how many do you have?
A: 2 / two

Q: George's mother had three children: one named April, one named May, and one named what?
A: George

Q: What word is pronounced differently when the first letter is capitalized?
A: polish

Q: Can you place six X's on a Tic Tac Toe board without making three-in-a-row in any direction?

Important Instructions:

Using the image below,

- Type in the letters where you would place an X.
- Separate each letter with a comma.
- Do not use any blank spaces.
- The letters must be in alphabetical order.
- For example, a valid entry would be: a,b,c,d,e,f.
- An invalid entry would be: b,a,c, d, e, f
A: a,b,d,f,h,i / a,b,e,f,g,i / b,c,d,e,g,i / a,c,d,e,h,i / a,c,e,f,g,h / b,c,d,f,g,h

Q: Is the following expression true or false assuming x = 3 and y = 7:

(X < Y) AND (Y > 10)
- True
- False
A: False

Q: How many times will the following while loop be executed?

set the jar status to 'open'

set the time to '5'

while the jar is open or the time is less than 12

increase time by 2

end the while loop
A: infinite