1. The memory stores programs and data as binary digits. Bits which

advertisement
1.
•
•
The memory stores programs and data as binary digits. Bits which are
represented as 0 and 1 are the building blocks of digital memory. Memory
capacity is usually specified in different units.
Please convert these units as shown below.
I. 1 Byte ==? Bit
II. 1 Kilobytes(KB) ==? bits
III. 1 Megabytes (MB) == ? Byte
IV. 2 Gigabytes (GB) == ? Kilobyte (KB)
V. 1 Terabytes (TB) == ? Gigabytes (GB)
Aswer:
I. 1 Byte == 8 bits
II. 1 KB == 210 bytes == 210*8 bits == 8,192 bits
III. 1 MB == 210 KB == 220 Bytes == 1,048,576 bits
IV. 1 GB == 210 MB == 220 KB == 1,048,576 KB
2GB ==2,097,152 KB
V. 1 TB == 210 GB == 1,024 GB
2.
The binary is represented as 0 and 1. There is just 1 bit to present the 2 values.
I.
Octal numbers are represented as 0~7. How many bits are necessary for an octal
number?
II. Hexadecimal numbers are represented as 0~15. How many bits are necessary
for a hexadecimal number?
III. How many different values can be represented using a byte?
Explanation:
• Binary:Only 2 values (= 21 numbers), 0 and 1.
•
•
Octal:Number 0~7, total 8 numbers (= 23 numbers). => 3 bits.
•
•
•
bit state 0 is equal to 0, and bit state 1 is equal to 1. => 1 bit.
(000)Binary = (0)Oct , (001)2 = (1)8 , (010)2 = (2)8 , ……, (111)2 = (7)8 .
(001 000)2 = (10)8 = (8)10 , (001 001) = (11)8 = (9)10 .
Hexadecimal:Number 0~15(=0,1,2,…,9,A,B,C,D,E), total 16 numbers(= 24
numbers). => 4 bits.
• (0000)2 = (0)16 ,(0001)2 = (1)16 , ……, (1001)2 = (9)16 ,
•
(1010)2 = (A)16 = (10)10 , (1011)2 = (B)16 = (11)10 ,…, (1111)2 = (E)16 =
(15)10
•
1 byte = 8 bits =>
numbers
0 0 0
27 26 25
0
24
0 0 0 0
23 22 21 20
=> total 28 (=256)
Answer:
I. 3 bits
II. 4 bits
III. 256
3.
Consider the following fictitious URL:http://www.acme.com/products/info.html.
What does each part of this URL(separated by slashed) specify?
Aswer:
http://www.acme.com/products/info.html
Signifies that the page is
to be accessed using the
Specifies the
name of the Web
Specifies the
directory where
Specifies the name of
page. Usually, Web
standard means of
retrieving Web pages,
the HyperText Transfer
Protocol(HTTP)
server that stores
the page.
the page is stored
on the server.
pages end with
either .html or .htm,
although other
extensions are
allowed
Download