COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
What is the maximum number of distinct symbols that could appear in the hexadecimal representation of a positive integer?
A
8
B
10
C
15
D
16
Explanation: 

Detailed explanation-1: -Hexadecimal Number System is one the type of Number Representation techniques, in which there value of base is 16. That means there are only 16 symbols or possible digit values, there are 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B, C, D, E, F.

Detailed explanation-2: -A 16-bit integer can store 216 (or 65, 536) distinct values.

Detailed explanation-3: -16 binary digits can represent 65, 536 different values when taken as a group. It’s convention that we tend either to use 16 bits to represent the integers from 0–65535, or signed integers from-32768 to +32767.

Detailed explanation-4: -There are 65, 536 different unsigned 16-bit numbers. The smallest unsigned 16-bit number is 0 and the largest is 65535.

Detailed explanation-5: -The digit whose value is to be determined. Position of the digit in the Number. Base or radix of the Number System.

There is 1 question to complete.