final-practice-solutions

# final-practice-solutions - CSE 110 Final Exam Practice...

This preview shows pages 1–4. Sign up to view the full content.

CSE 110 – Final Exam Practice version SOLUTIONS NAME (please print legibly): Your University ID Number: No books or notes can be used during the exam, except for your “cheat sheet”. Any CHEATING will result in an F as well as being written-up on academic dishonesty. NO BS bonus: If you do not know the answer to a problem you will receive 1 point for each part (e.g., a,b,c, etc.) that you leave blank. If you write anything in the space and it is wrong, you will receive a 0. QUESTION VALUE SCORE 1 6 2 10 3 4 4 4 5 15 6 5 7 10 8 10 9 10 10 4 11 4 12 4 13 4 14 10 TOTAL 100 1

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
1. (6 points) Translate the hexadecimal value 5F23740B into a 32-bit binary value, and then into an IP address in dotted-quad form. (3 points each) 5F 23 74 0B = 0101 1111 0010 0011 0111 0100 0000 1011 In dotted-quad form: 01011111 . 00100011 . 01110100 . 00001011 = 95.35.116.11 2. (10 points) Consider the following grammar: S AB A a B B S b | b Draw a parse tree for the the expression aabbbb . NOTE: There is a typo in this problem. As written, it cannot be solved. The expression should be aabbb (only three instances of b )! 2
3. (4 points) Which of the following is NOT oﬃcially part of the CPU? (a) Control Unit

This preview has intentionally blurred sections. Sign up to view the full version.

View Full Document
This is the end of the preview. Sign up to access the rest of the document.

## This note was uploaded on 12/06/2011 for the course CSE 110 taught by Professor Shaunakpawagi during the Fall '08 term at SUNY Stony Brook.

### Page1 / 10

final-practice-solutions - CSE 110 Final Exam Practice...

This preview shows document pages 1 - 4. Sign up to view the full document.

View Full Document
Ask a homework question - tutors are online