{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

sp08-cs231-uiuc-midterm1_sol

sp08-cs231-uiuc-midterm1_sol - CS 231 Spring 2008 Midterm...

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

CS 231 – Spring 2008 Midterm Exam 1 February 27, 2008 Name: Solutions DON’T OPEN YOUR EXAM UNTIL SO INSTRUCTED Important notes: · This exam has 10 pages, including this cover sheet and a blank page at the end. · Please write your netID on every page. · There are 6 questions, with the value of each indicated. · You have 120 minutes, so budget your time! · No written references or calculators are allowed. · Please show all your work to ensure you receive full credit. · Partial credit may be awarded for work shown as well . · We will not answer questions regarding course material. Question Maximum Your Score 1 24 2 9 3 20 4 16 5 10 6 21 Total 100

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

View Full Document
CS 231 Spring 2008 – Midterm 1 – Solutions Question 1: Multiple Choice & Short Answer (24 pts) A . Consider the implementations of ripple-carry and carry-lookahead adders that we discussed in class. Compared with the carry-lookahead adder, the ripple-carry adder (a) has a longer delay and requires more gates (b) has a shorter delay and requires more gates (c) has a longer delay and requires fewer gates (d) has a shorter delay and requires fewer gates B. Which of the following combinations of one or more types of gates can implement all Boolean functions? Circle all that are true . (Don't assume that NOT gates are always available. Only the gates stated are available for each part.) (a)AND, OR (b)OR, NOT (c)NAND (d)XOR (e)NOR C. In which one of the following choices do the three columns represent the same value? One’s complement Two’s complement Decimal (a)1111 0000 1111 0000 240 (b)1100 0110 1100 0111 -57 (b)1110 1111 1111 0000 -111 (c)0100 0110 0100 0111 70 D. Which circuit implements f(x,y,z) = Σ m(2,3,5,6,7) ? (a) (b) (c) (d) Either (c) or (d) is acceptable NetID:_____________ 2
CS 231 Spring 2008 – Midterm 1 – Solutions Question 1 continued… E. Convert the decimal number 74.25 to 8-bit unsigned binary, hexadecimal, and quaternary (base 4). Clearly show your conversion steps.

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.

{[ snackBarMessage ]}

What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern