This exam covers the material through 4.3.2, numbers in base 2. The emphasis on the JavaScript section is on the if-statement, the for-statement, and the while-statement.
The following is my suggested outline. This is open to discussion.
- Write code requiring an if-statement to accomplish a specified task. 20 pts.
- Analyze code that includes a for-statement. 20 pts.
- Analyze code that includes a while-statement. 20 pts.
- Answer short questions on computer architecture. 5 pts.
- Write a truth table. 10 pts.
- Write a boolean expression with a given truth table. 5 pts.
- Convert numbers between base 10 and base 2. 10 pts.
- Do arithmetic in base 2. 10 pts.