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

Info iconThis 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
Background image of page 1

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

View Full DocumentRight 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)
Background image of page 2
Background 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 twos 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

This note was uploaded on 04/29/2008 for the course HIST 202 taught by Professor Buller during the Spring '08 term at Virginia Military Institute.

Page1 / 3

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

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

View Full Document Right Arrow Icon
Ask a homework question - tutors are online