Intermediate Division Short Problems



Download 6.8 Kb.
Date26.05.2017
Size6.8 Kb.
#19141
A
2003-2004

Contest #1

merican Computer Science League




Intermediate Division Short Problems






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



  1. 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) =


Download 6.8 Kb.

Share with your friends:




The database is protected by copyright ©ininet.org 2024
send message

    Main page