0% found this document useful (0 votes)
46 views5 pages

Bahria University, Islamabad Campus: Department of Computer Science

The document provides 5 questions about digital design concepts including binary subtraction, 2's complement addition, BCD addition, and ASCII encoding. Students are asked to perform calculations and conversions between decimal, binary, BCD, excess-3, and 2421 codes.

Uploaded by

Abdul Sammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
46 views5 pages

Bahria University, Islamabad Campus: Department of Computer Science

The document provides 5 questions about digital design concepts including binary subtraction, 2's complement addition, BCD addition, and ASCII encoding. Students are asked to perform calculations and conversions between decimal, binary, BCD, excess-3, and 2421 codes.

Uploaded by

Abdul Sammad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 5

Bahria University, Islamabad Campus

Department of Computer Science


Assignement-1
Class/Section: BSIT (2A/2B)
(Fall 2020 Semester)

Course: Digital Design Issue Date 05-10-2020


CEN 122
Course Code: Due date : 12-10-2020

Faculty’s Name: Maria Mahmood Max Marks: 10

Note: This is an individual assignment. No late assignments will be accepted. Upload on LMS
before the due date. Cheated Assignments will be marked zero.

Question No. 1
Perform subtraction on the given unsigned numbers using the 10’s complement of the
subtrahend.

(a) 3,237 – 1,520

(b) 185 - 1,500

Answer:
Question No. 2
Convert decimal +39 and +19 to binary, using the signed‐2’s‐complement representation and enough
digits to accommodate the numbers. Then perform the binary equivalent of

a) (+39) + (-19),

b) (-39) + (+19)

Answer:
Question No. 3
Represent the unsigned decimal numbers 791 and 658 in BCD, and then show the steps necessary to
form their sum.

Answer:
Question No. 4
Represent the decimal number 6248 in (a) BCD, (b) excess‐3 code, (c) 2421 code

Answer:
Question No. 5
The following is a string of ASCII characters whose bit patterns have been converted into hexadecimal
for compactness: 73 F4 E5 76 E5 4A EF 62 73. Of the eight bits in each pair of digits, the leftmost is a
parity bit. The remaining bits are the ASCII code.

(a) Convert the string to bit form and decode the ASCII.

(b) Determine the parity used: odd or even?

Answer:

You might also like