Sie sind auf Seite 1von 2

UNIVERSITI TUNKU ABDUL RAHMAN

Faculty

Course
Year/ Semester
Session

:
:
:

Tutorial 1:

Lee Kong Chian Faculty of


Engineering and Science
3E, EC, MH, PH, BI, ET
(Various)/Trimester
201601

Unit Code

UEEA1323/UEEP1323

Unit Title
Lecturer

:
:

Digital Electronics

Number Systems and Codes

1.

Convert the following numbers to the base specified:


(a)
301.1210 to base 2
(b)
100110102 to base 10

2.

Convert the following binary numbers to their octal and hexadecimal equivalents.
Then convert both of your answers to decimal and verify that they are the same.
(a)
111010011
(b)
11111110.0001

3.

Convert the following hexadecimal numbers to their binary equivalents:


(a)
AC
(b)
1B.7F

4.

Convert 384.7410 to hexadecimal numbers (Round to two digits past the


hexadecimal point). Devise a scheme to convert hexadecimal directly to base 4
and use the scheme to convert your answer to base 4. Verify your scheme by
converting your base-4 answer back to decimal.

5.

Add the binary numbers.


(b)a 111.111 and 111
(b)b 1110010111 and 1100110011

6.

Subtract in binary.
11010 - 10111
(a)
10110010 - 111101
(b)

7.

Use binary multiplication, adding partial products as they are formed, to find:
(a)
10111 110010
(b)
11001 1011011
Change to decimal and confirm the answers.

8.

Use binary long division to calculate:


(a)
100111010 1101
(b)
111010011 11011
Change to decimal and confirm the answers.

9.

Compute the following numbers in the format of sign-and-magnitude, 1s


compliment and 2s complement.
478
(a)
-280
(b)
-2
(c)

10.

A computer stores numbers in 8-bit 2s complement form. What is the largest


positive number? What is the negative number with the largest magnitude?

11.

Use 2s complement notation to perform the following. Assume that the numbers
are already in 2s complement form.
001111 001011
(a)
00110011 11100101
(b)
11100011 + 11111010
(c)

12.

Add the following numbers, with those negative represented in 6-bit 2s


complement. Indicate if an overflow occurs.
(a) 21 + 11
(b) (-14) + (-32)
(c) (-12) + 13
(d) (-11) + (-21)
(e) (-25) + 18
Repeat using 1s complement to represent negative numbers.

13.

Convert the following numbers to their BCD equivalent.


10101102
(a)
1100100.112
(b)

14.

Add the following BCD numbers


(a)
01100100 + 00110011
(b)c 100101111000 + 100101010001

15.

(a)
(c)

16.

Determine whether the following odd parity codes are in error.


(a)
11110110
(b)
00110001

Convert 3410 to its Gray code equivalent.


Convert the Gray code 11000010001 to binary.

Das könnte Ihnen auch gefallen