A
2003-2004
Contest #1 merican Computer Science League
1. Computer Number Systems
Evaluate each expression and convert the answer to binary.
Ignoring leading zeros, which binary answers contain more 1’s than 0’s?
List all.
A. 428 - 128 B. 3A16 + 10B16 C. 100012 + 111012 D. A16 + 108 +102
2. Computer Number Systems
Solve for X10
10002 * X10 + A16 = 338 + 1716
-
LISP
Evaluate:
(MULT (ADD 2 3) (SUB 4 6))
4. Recursive Functions
Find f (11,7)
f (y – x, x - 1 ) + 3 if x y
x - y otherwise
f (x, y) =
5. Recursive Functions
Find f (8)
f (f (x –3)) + 4 if x > 4
x2 – 3 if x 4
f (x) =
Share with your friends: |