COMPILER DESIGN

ADVANCED TOPICS IN COMPILER DESIGN

CODE GENERATION FOR OBJECT ORIENTED LANGUAGES

Question [CLICK ON ANY CHOICE TO KNOW THE RIGHT ANSWER]
Computers must translate everything into binary
A
True
B
False
C
Either A or B
D
None of the above
Explanation: 

Detailed explanation-1: -The binary number system is the base of all computing systems and operations. It enables devices to store, access and manipulate all types of information directed to and from the CPU or memory.

Detailed explanation-2: -A computer can’t understand any language other than binary numbers. So, you have to give input in the form of 0s and 1s.

Detailed explanation-3: -Computers use binary to store data. Not only because it’s a reliable way of storing the data, but computers only understand 1s and 0s-binary. A computer’s main memory consists of transistors that switch between high and low voltage levels-sometimes 5V, sometimes 0.

Detailed explanation-4: -Text and other data are converted to binary by using an ASCII value (American Standard Code for Information Interchange). The value can be converted into binary if you have the ASCII value.

There is 1 question to complete.