ADVANCED TOPICS IN COMPILER DESIGN
CODE GENERATION FOR OBJECT ORIENTED LANGUAGES
Question
[CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
|
|
1, 000
|
|
10, 000
|
|
100, 000
|
|
1, 000, 000
|
Detailed explanation-1: -One kilobyte (K or KB) equals approximately 1, 000 memory locations and one megabyte (M or MB) equals approximately one million locations A memory location, or byte, usually stores one character.
Detailed explanation-2: -Originally, a byte was considered a collection of 8 bits, the smallest number of bits that were able to express a number, letter or character within binary. A kilobyte is approximately 1, 000 bytes (specifically, 2 to the 10th power or, in decimal form, 1, 024 bytes).
Detailed explanation-3: -A kilobyte (KB) is 1, 024 bytes, not one thousand bytes as might be expected, because computers use binary (base two) math, instead of a decimal (base ten) system. Computer storage and memory is often measured in megabytes (MB) and gigabytes (GB).
Detailed explanation-4: -Remember: Computers can only work with binary code. However computers do like the number 1024 because its binary code is 10000000000. That’s why there are 1024 Bytes in a KB, 1024 KB in a MB and so on…