COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Binary numbers are usually expressed in groups of ____ bit(s).
A
1
B
2
C
8
D
10
Explanation: 

Detailed explanation-1: -In the electronics world, each binary digit is commonly referred to as a bit. A group of eight bits is called a byte and four bits is called a nibble.

Detailed explanation-2: -For convenience, binary digits (bits, for short) are usually grouped together in two groups of 4 bits. This is 8 bits, or a byte, and is written using the hexadecimal numeral system. This would be shown as 1011 0011 = B3.

Detailed explanation-3: -An 8 bit binary number can represent a maximum of decimal 255= binary 11111111.

Detailed explanation-4: -The largest number you can represent with 8 bits is 11111111, or 255 in decimal notation. Since 00000000 is the smallest, you can represent 256 things with a byte. (Remember, a bite is just a pattern.

There is 1 question to complete.