{[ promptMessage ]}

Bookmark it

{[ promptMessage ]}

Lecture-04.1

# Lecture-04.1 - Chapter 3 Data Representation Sample...

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

Chapter 3 Data Representation Sample Test/Exam questions: Question: Convert -173 to 12-bit two’s complement representation. Show all your work. Answer: Step 1: convert 173 to binary by repeated division by 2. 173 ÷ 2 86 1 1 86 ÷ 2 43 0 01 43 ÷ 2 21 1 101 21 ÷ 2 10 1 1101 10 ÷ 2 5 0 01101 5 ÷ 2 2 1 101101 2 ÷ 2 1 0 0101101 1 ÷ 2 0 1 10101101 Step 2: expand answer in Step 1 to 12-bits 000010101101 Step 3: flip-the-bits and add one 000010101101 111101010010 + 1 111101010011 Final answer: -173 = 111101010011 _______________________________________________________ Question: Convert +173 to 12-bit two’s complement representation. Show all your work. Question: Convert the 12-bit two’s complement number 111101010011 to decimal. CSE 1520 – Lecture 4.1 January 25, 2011 page 1

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

View Full Document
Data and computers – Ch. 3.1 .../continued Analog and Digital Information real world is continuous and infinite (data on) computers are finite need to obtain a finite representation (approximation) of the world, sufficient for our computational needs and our five senses analog data: information represented in a continuous form digital data: information represented in a discrete form examples: sound: vinyl record vs. Compact Disc (CD) clocks, thermometers, etc.
This is the end of the preview. Sign up to access the rest of the document.

{[ snackBarMessage ]}