Sie sind auf Seite 1von 3

Computer Studies

Mid-Term

Test Form 4
Name ________________________ Class _____________ Total marks = 85

1. Draw the logic gate based on the following expression and then draw its truth table. [4,3] X=(A+(B.C))+A

2. Extract the Boolean expression from this logic circuit and draw its truth table. [4,3 ]

3. Consider the following statement. An air-conditioning unit only operates when a door is closed (value 0) and the temperature rises above the set temperature (value 1). Draw the logic circuit for this set-up. Then draw its truth table to make sure it works. [3,2]

Ms.P.Sullivan

Computer Studies 4. Complete the following table [1 mark each = 10] Decimal 2110 a) b) 15910 c) Binary d) 1010101002 e) f) 001110002 Hexadecimal g) h) 2E16 i) j)

Mid-Term

5. Complete the following table [1 mark each = 15] Binary Ones Complement Twos Complement Decimal

001110002 11001102 11110012 101102 1010101002

6. Complete the following table [1 mark each = 15] Binary Binary Sign and magnitude
Two s

complement

4410 -1010 -3510 10010 -9910

Ms.P.Sullivan

Computer Studies

Mid-Term

7. What are the 4 rules we need to remember when adding binary numbers? [4] 8. Assume a registers size is 9 bits. Work out the following. a. How many combinations can this register hold? [2] b. State the range that can be represented. [2] c. Store the number 20010 in this register. [2]

9. What is a binary left shift used for? a. Left shift the number of question 8c. [1]

10. What is a binary right shift used for? a. Right shift the number of question 8c 4 times. [1] b. Change the values to binary to check your work [5]

11. 3010 - 5016 using twos complementation. [5] Hint: 5016 is in hexadecimal you need to change this to binary in order to perform the subtraction 12. What is numerical overflow? Give an example with answer. [4]

Ms.P.Sullivan

Das könnte Ihnen auch gefallen