{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

CS 111-T2 - 00100110(b 10110100 8(i Perform the following...

Info icon This preview shows pages 1–3. Sign up to view the full content.

View Full Document Right Arrow Icon
Fall 2007, CS 111 Test #2 Page 1 of 3 CS 111 – Introduction to Computer Science, Test #2 Calculators are NOT allowed at all in this test. You must show your work clearly. Help Received: _____________________ Name: _______________________ 1. Draw a circuit diagram and construct a truth table for the following Boolean expression. (10 pts.) (A’ XOR B) OR (B’ AND C) A B C 2. Convert the following decimal numbers to binary . For fraction, show up to 5 binary places. (10 pts.) (a) 53 (b) 22.197 3. Convert the following binary numbers to decimal . (10 pts.) (a) 01011101 (b) 00101011.1001
Image of page 1

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

View Full Document Right Arrow Icon
Fall 2007, CS 111 Test #2 Page 2 of 3 4. Convert the following binary numbers to hexadecimal . (4 pts.) (a) 11101011010111 (b) 1100010100001110 5. Convert the following hexadecimal numbers to binary . (4 pts.) (a) B9 (b) 38F 6. Convert the following decimal values to two’s complement representations (of length 8). (10 pts.) (a) 50 (b) –43 7. Convert the following two’s complement representations (of length 8) to decimal values . (10 pts.) (a)
Image of page 2
Image of page 3
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: 00100110 (b) 10110100 8. (i) Perform the following additions in two’s complement representations (of length 8). (10 pts.) (ii) Describe these addition problems and the results in decimal values . (a) 01101011 (b) 10101011 + 00110110 + 01110001----------------In base 10, the above addition is In base 10, the above addition is Fall 2007, CS 111 Test #2 Page 3 of 3 9. What is the role of Random Access Memory (RAM) in a computer? (4 pts.) 10. What is the role of CPU in a computer? (4 pts.) 11. What is the role of ALU in a processor? (4 pts.) 12. What is the purpose of a general register? (4 pts.) 13. What is the purpose of the Instruction Register (IR)? (4 pts.) 14. What is the purpose of the Program Counter (PC)? (4 pts.) 15. What is the difference between an Opcode and an Operand ? (4 pts.) 16. Explain about the actions taken during the fetch phase of a CPU cycle in their chronological (i.e., time) order. (4 pts.)...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    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.

    Student Picture

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

  • Left Quote Icon

    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.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    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.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern