D75P 34R - HNC Computer Architecture Week 7 A Mini Test! © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated.

Slides:



Advertisements
Similar presentations
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Advertisements

Lab 10 : Arithmetic Systems : Adder System Layout: Slide #2 Slide #3 Slide #4 Slide #5 Arithmetic Overflow: 2’s Complement Conversions: 8 Bit Adder/Subtractor.
DH2T 34 – HNC Computer Architecture 1 Week 2 Introduction to the Hexadecimal Number System © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen.
The Binary Numbering Systems
Forging new generations of engineers. Binary Addition & Subtraction.
Data Representation Computer Organization &
Data Representation COE 205
Agenda Shortcuts converting among numbering systems –Binary to Hex / Hex to Binary –Binary to Octal / Octal to Binary Signed and unsigned binary numbers.
Assembly Language for Intel-Based Computers, 4th Edition
Data Representation ICS 233
IT Systems Number Operations EN230-1 Justin Champion C208 –
1 Binary Numbers Again Recall that N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to bits.
Computer Number Systems This presentation will show conversions between binary, decimal, and hexadecimal numbers.
Data Representation in Computers. Data Representation in Computers/Session 3 / 2 of 33 Number systems  The additive approach – Number earlier consisted.
© GCSE Computing Candidates should be able to:  convert positive denary whole numbers (0-255) into 8-bit binary numbers and vice versa  add two 8-bit.
Simple Data Type Representation and conversion of numbers
Lecture for Week Spring.  Numbers can be represented in many ways. We are familiar with the decimal system since it is most widely used in everyday.
Computers Organization & Assembly Language
CSCI-365 Computer Organization Lecture Note: Some slides and/or pictures in the following are adapted from: Computer Organization and Design, Patterson.
Logic and data representation Revision. AND gate A B A B All inputs have to be true ( i.e 1) for the output of the gate to be high, in all other cases.
Lec 3: Data Representation Computer Organization & Assembly Language Programming.
D75P 34 – HNC Computer Architecture Interim Week Hexadecimal revisited! © C Nyssen/Aberdeen College 2003 All images © C Nyssen/Aberdeen College except.
CPU Internal memory I/O interface circuit System bus
The Teacher CP4 Binary and all that… CP4 Revision.
BR 8/99 Binary Numbers Again Recall than N binary digits (N bits) can represent unsigned integers from 0 to 2 N bits = 0 to 15 8 bits = 0 to 255.
The Teacher CP4 Binary and all that… CP4 Revision.
Number Systems Binary to Decimal Octal to Decimal Hexadecimal to Decimal Binary to Octal Binary to Hexadecimal Two’s Complement.
D75P 34R - HNC Computer Architecture Week 6 Boolean Logic © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated.
Conversions Denary to Binary Method 1
1 Representation of Data within the Computer Oct., 1999(Revised 2001 Oct)
07/12/ Data Representation Two’s Complement & Binary Arithmetic.
Two’s Complement. A system used to represent a negative number in binary A system used to represent a negative number in binary Positive numbers start.
Addition and Substraction
Binary01.ppt Decimal Decimal: Base 10 means 10 Unique numerical digits ,00010,000 Weight Positions 3,
GCSE Computing: A451 Computer Systems & Programming Numbers Representation of Data in Computer Systems.
D75P 34R – HNC Computer Architecture Week 1 Introduction to Binary Storage © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless.
D75P 34R - HNC Computer Architecture Week 4 Signed Integers © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise.
1 4. Computer Maths and Logic 4.1 Number Systems.
1 Number Systems Decimal, Binary, and Hexadecimal.
09/03/20161 Information Representation Two’s Complement & Binary Arithmetic.
Hexadecimal (base 16) BY MAT D. What is hexadecimal  Hexadecimal is a number system like binary or denary that has 16 characters, the numbers 0-9 and.
The Hexadecimal Number System Representation of Data in Computer Systems.
Data Representation COE 301 Computer Organization Dr. Muhamed Mudawar
Two’s Complement The language of machines, part II.
Starter Using the mini whiteboards record your answers: 1) Name 2 different Character Sets 2) Convert the Hex number 9E into denary 3) Convert the binary.
Starter Using two’s Complement form convert the following from Denary to Binary using 8 bits. Answer on mini whiteboard Using two’s.
Binary Addition The simplest arithmetic operation in binary is addition. Adding two single-digit binary numbers is relatively simple, using a form of carrying:
Advanced Binary b. describe and use two’s complement and sign and magnitude to represent negative integers; c. perform integer binary arithmetic, that.
Data Representation COE 301 Computer Organization Prof. Muhamed Mudawar College of Computer Sciences and Engineering King Fahd University of Petroleum.
Data Representation COE 308 Computer Architecture
Binary, Denary, Hexadecimal Conversion Binary Addition
Binary and Hexadecimal
Data Representation ICS 233
Lec 3: Data Representation
Data Representation.
University of Gujrat Department of Computer Science
Addition and Substraction
Data Representation COE 301 Computer Organization
Topic 3: Data Signed Binary.
Data Hexadecimal.
Unit 18: Computational Thinking
Binary  Name: Class: .
Data Representation ICS 233
GCSE COMPUTER SCIENCE Topic 3 - Data 3.4 Hexadecimal Conversion.
Hexadecimal.
Data Representation COE 308 Computer Architecture
Two’s Complement & Binary Arithmetic
Presentation transcript:

D75P 34R - HNC Computer Architecture Week 7 A Mini Test! © C Nyssen/Aberdeen College 2004 All images © C Nyssen /Aberdeen College unless otherwise stated Timer, decision © Microsoft ISO table © and courtesy of IBM Prepared 9/11/04

This lecture will consist of 10 questions on a timer. The questions are of equivalent difficulty to the Outcome 1 paper. You have 1½ minutes to answer each one. After 1 minute a dinosaur will appear, to let you know that you only have 30 seconds left before the slide changes! At the end we will check the answers, and anything that you did not understand will be expanded on the whiteboard. You need six or more questions correct for a pass. Ready to go?

Question 1. Take the following pair of binary numbers And apply this gate to get the answer… a b c d

Question 2. What is the binary storage of the number -329 formatted to 10 bits and using 2’s complement? a b c d

Question 3. What is the hexadecimal number C2Ah in denary? a.3094 b.3114 c d

Question 4. What is the binary value in hexadecimal? a.B762h b.C762h c.D762h d.D772h

Question 5. The signed binary number in denary is – a.-615 b.+615 c d.+3481

Question 6. Subtract the second number from the first one using 2’s complement and addition a b c d

Question 7. Add the hexadecimal values E550h and F19Dh. a.176EDh b.1B6FDh c.1C6EDh d.1D6CDh

Question 8. Apply an XOR gate to the following pair of numbers a b c d

Question 9. What is the number 4771 in hexadecimal? a.12A3h b.1CA3h c.2933h d.2CA3h

Question 10. The Greek character Ω (omega) could be represented by using ISO and the binary value a.U+D9 b.U+BC c d

So let’s see how you got on……

Question 1. Take the following pair of binary numbers And apply this gate to get the answer… a b c d The correct answer was d. It is a NAND gate!

Question 2. What is the binary storage of the number -329 formatted to 10 bits and using 2’s complement? a b c d would be reverse it… add 1 to the LSB so the answer was c.

Question 3. What is the hexadecimal number C2Ah in denary? a.3094 b.3114 c d C or 12 times 256 is times 16 is 32 A or 10 times 1 is 10 Add all together to get 3114 So the answer was b.

Question 4. What is the binary value in hexadecimal? a.B762h b.C762h c.CF62h d.D772h 1100 is 12 or C 0111 is is is 2 The correct answer is C762h - b.

Question 5. The signed binary number in denary is – a.-615 b.+615 c d As it is a signed number, the leading 1 tells us that it must be negative! Reverse all the remaining digits to get Add 1 to the LSB to get Convert back - ( ) = 615. So the answer was a.

Question 6. Subtract the second number from the first one using 2’s complement and addition a b c d Reverse the second number and add 1 to the LSB Add the two numbers… The answer was c.

Question 7. Add the hexadecimal values E550h and F19Dh. a.176EDh b.1B6FDh c.1C6EDh d.1D6EDh E 5 50 F 1 9D or E D The 29 becomes 13, or D, carry 1…. The answer was 1 D 6 E D h - option d.

Question 8. Apply an XOR gate to the following pair of numbers a b c d Remember that the XOR gate is the one that looks for differences in the inputs! The correct answer was d.

Question 9. What is the number 4771 in hexadecimal? a.12A3h b.1CA3h c.2933h d.2CA3h To do this without a calculator, you can set up some Hexadecimal columns… ’s256’s16’s1’s We will get one lot of 4096 out of the 4771, leaving 675. ( ) = 419. ( ) = 163. So that’s 2 lots of 256. We will get 10 lots of 16 out of 163, leaving 3 over…. So the answer is 1 2 A 3 h. Answer a.

Question 10. The Greek character Ω (omega) could be represented by using ISO and the binary value a.U+D9 b.U+BC c d The answer was D9 in hex - or Answer c.

So how was your score? If you got…… …. Well done! You are a genius! 6 or 7 …. Congratulations! You should have no trouble at all with the real assessment! 4 or 5 …. Unfortunate! You need to do a wee bit more work between now and next week... 3 or less …. REVISE ALL OF THE LECTURES BEFORE NEXT WEEK!