Quiz 3 Solution - Thursday June 8, 2000


1. What is the binary equivalent of the decimal number 40?

Since 32 = 25 is the highest power of 2 <= 40, there will be 5+1=6 binary digits in the decimal equivalent of 40.

2. What is the octal equivalent of the binary number 11011?

3. Is Java bytecode platform dependent?

4. What are the three types of errors that can occur in programming?