Sei sulla pagina 1di 2

QUESTION:Why in computer 1024 bytes equals to 1 KB.

The
difference is 24. Explain the question with valid example?

ANSWER:
Memory addresses in computers are a number of bits wide. For instance, the old 6502 microprocessor
had memory addresses 16 bits 'wide'.

With 10 bits, for instance, a computer can address 210 which is 1024 memory locations. With 16 bits, a
computer can address 216 memory locations. So the number of memory locations is always a power of
two. It makes the most sense to make memory chips that use up all of these addressable locations.
Officially, 1000 is the only valid meaning, and "k" was used by engineers for 1024 just as an
approximation. (2048 bytes is equal to 2.0 kB, after all.) Over time, this approximation became used by
marketing types as if it was actually defined as 1024, rather than just being used as an approximation. In
1968, for instance, Donald Morrison talked about how it was confusing to tell laymen that
doubling a 32K memory produced a 65K memory. He proposed to end the confusion by
using the Greek letter κ to mean 1024, but this never stuck. Instead, people started using
capital K to mean 1024, which further increased confusion instead of helping.

Nowadays however, there is a new prefix to be used for the non-standard meaning:

* 1 KiB is 1 kibibyte is 1024 bytes


* 1 kB is 1 kilobyte is 1000 bytes

So too for the old megabyte which was 220 bytes:

* 1 MiB is 1 mebibyte is 220 bytes


* 1 MB is 1 megabyte is 1,000,000 bytes.

QUESTION:
Why don't we have partition in USB Floppy and Cd after
formatting?

ANSWER:
Those are devices, not media. The media is what has a partition. A hard drive is a device with a fixed
media component and why it is the exception.Because a partition is a "logical disk" that is a part (can be
anywhere up to 97%) of physical disk memory. A partition has to be on a piece of hardware
with memory. That means HDD or USB stick. CDs don't have a partition. Format means creating a new
partition. If you have absolutely none, that means you canceled it halfway.They are partitioned, but
usually in a different way. A CD or DVD has a different format specifically designed to read the disks.
When you burn the disk you actually create a partition for the entire medium, that is why it shows up as a
"drive" in Windows Explorer. A lot of USB sticks come with 2 partitions, one for the system files and one
for data, that is why they show up as 2 drives in Explorer. You cannot read files from any media without
partition and a file table.
Question:Why is a 3 1/2" floppy diskette 1.44MB? and not 1.47MB?
Answer:
If you were to use the conventional base 2 or 1,024KB to figure out the capacity of a floppy diskette size
it'd actually be 1,474,560 bytes.
1.44 * 1000 * 1024 = 1,474,560
So then why is a 3 1/2" floppy diskette 1.44MB and not 1.47MB? Because when the manufacturers first
created the floppy diskette they decided to divide by a base 10 or 1,000 value and not 1,024.
1.44 * 1000 * 1000 = 1,440,000
Although at the time this was not the conventional method of defining a disk space on a computer this
value did stick and was one of the first of many confusions regarding disk space on comp

Note also that the "decimal vs. binary" measurements problem is in play again with the terminology used
to specify floppy capacity. In fact, the terms are not even consistent in and of themselves. For example, a
1.44 MB floppy disk takes its name from the fact that the disk has 2,880 sectors, and each sector is 0.5
KB; 0.5 times 2,880 is 1,440, so the 1.44 is a decimal measure. But, each sector is really 512 bytes, so
the 0.5 KB is a binary measure. As a result the "1.44" is a mixed measurement; the true raw formatted
capacity is either 1.41 MB (binary) or 1.47 MB (decimal), and not 1.44 MB at all!

Question :Computer knows only adittion operation how does it


perform subtraction explain with a valid example?

computers persform substraction by addition i.e substraction by 2'complement...


for instance,
if u want to substract 9 - 5
the first thing the computer will do is it will convert the numbers into its binary equivalent i.e.

9's binary equivalent is 1001 and


5's binary equivalent is 0101

then it negate the 0101 to 1010 (all zero's become one's & all one's become zero's)

then it will add the nine's binary equivalent 1001 with


the complement of 5's binary equivalent +1010
-----------------
the number we get is 1 0011
now we will make it 2's
complement by adding 1 1
----------------
0100 this binary equivalent of 4(9-5)

Potrebbero piacerti anche