0% found this document useful (0 votes)
44 views8 pages

Microcomputer Quiz: Name: Emon Abdul Awal (艾沂蒙) Subject: Microcomputer (Quiz) Student ID: 188801232

The document contains a microcomputer quiz with questions about: 1. The main components of the Von Neumann architecture which are the Central Processing Unit (CPU), Memory, and Input/output (I/O) interfaces. 2. The three types of bus structures in a microprocessor-based system which are the data bus, address bus, and control bus. 3. Converting binary and hexadecimal numbers to their decimal equivalents and vice versa through successive division by powers of two or sixteen. 4. Representing decimal numbers in 8-bit binary coded decimal (BCD) format in both packed and unpacked forms.

Uploaded by

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

Microcomputer Quiz: Name: Emon Abdul Awal (艾沂蒙) Subject: Microcomputer (Quiz) Student ID: 188801232

The document contains a microcomputer quiz with questions about: 1. The main components of the Von Neumann architecture which are the Central Processing Unit (CPU), Memory, and Input/output (I/O) interfaces. 2. The three types of bus structures in a microprocessor-based system which are the data bus, address bus, and control bus. 3. Converting binary and hexadecimal numbers to their decimal equivalents and vice versa through successive division by powers of two or sixteen. 4. Representing decimal numbers in 8-bit binary coded decimal (BCD) format in both packed and unpacked forms.

Uploaded by

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

MICROCOMPUTER QUIZ

Name: EMON ABDUL AWAL(艾沂蒙)


Subject: Microcomputer (Quiz)
Student ID: 188801232
QUIZ1

• Tell the main components of the microprocessor (Von Neumann


architecture)

Von Neumann architecture is composed of three distinct components (or


sub-systems)
Central Processing Unit (CPU)
Memory
Input/output (I/O) interfaces.
• List the three-type bus structure of a microprocessor-based
system

A microprocessor will have three types of buses


Data bus
Address bus
Control bus.
QUIZ2
• 1.1Convert the binary numbers 1101.01B and 111.0001B to
decimal numbers

To convert binary number 1101.01, we convert its integral and fractional part
individually and then add them to get the equivalent decimal number, as below:
first convert the integral part 1101 to decimal number (Don't forget that start from
one’s place to so on...)
Decimal equivalent of "1" = 1 × 2^0 = 1
Decimal equivalent of "0" = 0 × 2^1 = 0
Decimal equivalent of "1" = 1 × 2^2 = 4
Decimal equivalent of "1" = 1 × 2^3 = 8
Decimal equivalent of "1101" = 8+4+0+1
1101 = 13
Now convert the fractional part 0.01 to decimal form (Don't forget that start from
tenths place to so on):
Decimal equivalent of "0" = 0 × 2^-1 = 0
Decimal equivalent of "1" = 1 × 2^-2 = 0.25
Decimal equivalent of "0.01" =0 +0.25
0.01 = 0.25
Here is the final answer, The binary number 1101.01 converted to decimal is therefore
equal to:

=1101.012
=1310 +0.2510
=13.2510
***To convert binary number 111.0001, we convert its integral and fractional part
individually and then add them to get the equivalent decimal number, as below:

First convert the integral part 111 to decimal number (Don't forget that start
from one’s place to so on...)
Decimal equivalent of "1" = 1 × 2^0 = 1
Decimal equivalent of "1" = 1 × 2^1 = 2
Decimal equivalent of "1" = 1 × 2^2 = 4
Decimal equivalent of "111" = 4+2+1
111 = 7

Then, convert the fractional part 0.0001 to decimal form (Don't forget that start
from tenths place to so on):

Decimal equivalent of "0" = 0 × 2^-1 = 0


Decimal equivalent of "0" = 0 × 2^-2 = 0
Decimal equivalent of "0" = 0 × 2^-3 = 0
Decimal equivalent of "1" = 1 × 2^-4 = 0.0625
Decimal equivalent of "0.0001" = 0+0+0+0.0625
0.0001 = 0.0625

Here is the final answer, The binary number 111.0001 converted to decimal is
therefore equal to:
= 111.00012
= 710 + 0.062510
= 7.062510

• Convert the hexadecimal numbers A3.3H and FAB. CH to decimal


numbers.

*A3.316 = 10∙161+3∙160+3∙16-1 = 160+3+0.1875 = 163.187510

Result of converting:

A3.316 = 163.187510

* FAB.316 = 15∙162+10∙161+11∙160+3∙16-1 = 3840+160+11+0.1875 = 4011.187510


Result of converting:

* FAB.316 = 4011.187510

• Convert the decimal numbers 107 and 92 into binary and


hexadecimal numbers respectively

1) To convert decimal number 107 to binary:


107/2 = 53 with remainder 1
53 /2 = 26 with remainder 1
26/ 2 = 13 with remainder 0
13/ 2 = 6 with remainder 1
2/ 2 = 3 with remainder 0
1/ 2 = 1 with remainder 1
Answer:

10710 =11010112

2) To convert decimal number 92 to binary:


92 / 2 = 46 with remainder 0
46 / 2 = 23 with remainder 0
23 / 2 = 11 with remainder 1
11 / 2 = 5 with remainder 1
5 / 2 = 2 with remainder 1
2 / 2 = 1 with remainder 0
1 / 2 = 0 with remainder 1
Answer:

9210 =10111002
Decimal to Hexadecimal
1) To convert decimal number 107 to hexadecimal:

107 / 16 = 6 with remainder 11 (B)


6 / 16 = 0 with remainder 6
The decimal number 107 converted to hexadecimal is therefore equal to : 6B

Answer:

10710 =6B16

• Convert the decimal numbers -12 and +32 to signed 8-bit binary
numbers.

1) 32
32
Since this is a positive number. we can directly convert this into binary.
Divide 32 successively by 2 until the quotient is 0
> 32/2 = 16, remainder is 0
> 16/2 = 8, remainder is 0
> 8/2 = 4, remainder is 0
> 4/2 = 2, remainder is 0
> 2/2 = 1, remainder is 0
> 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 100000
So, 32 of decimal is 100000 in binary
so, 32 in 2's complement binary is 00100000
Answer: 00100000
2) -12

This is negative. So, to convert this into a 2's complement binary


Step 1:
Divide 12 successively by 2 until the quotient is 0
> 12/2 = 6, remainder is 0
> 6/2 = 3, remainder is 0
> 3/2 = 1, remainder is 1
> 1/2 = 0, remainder is 1
Read remainders from the bottom to top as 1100
So, 12 of decimal is 1100 in binary
So, 12 in normal binary is 00001100
Step 2: flip all the bits. Flip all 0's to 1 and all 1's to 0.
00001100 is flipped to 11110011
Step 3: Add 1 to above result
11110011 + 1 = 11110100
so, -12 in 2's complement binary is 11110100
Answer: 11110100

• Convert the decimal numbers102 and 44 bellow to packed or


unpacked BCD code.

Packed BCD form: Allocating every decimal number into 8-bit binary equivalent
is called as packed BCD form.
Unpacked BCD form: allocating every element decimal number into 4-bit binary
equivalent, nibble is included if needed. it is known as the Unpacked BCD form.

(1) 102

packed BCD = 00000001 00000000 00000010


unpacked BCD= 0001 0000 0010

(2) 44

packed BCD= 00000100 00000100


unpacked BCD= 0100 0100

You might also like