Question 2 of 19intermediate💡 UnderstandShort Answer2 marks

How does the computer understand a program written in high level language?

Correct Answer

Computers can understand only machine language, which consists of 1s and 0s. Programs written in high level language are not directly understood by the computer. The program code written in high level language is called source code.

To make the computer understand the program, translators are needed to convert the source code into machine understandable form called object code or machine code. For high level languages, translators like compiler and interpreter are used. A compiler converts the entire source code into machine code at once, while an interpreter translates one line at a time. Once translated, the computer can execute the code.

Exercise: EXERCISE | Q: 2 | (Page 24)
For More Understanding

Explanation

The textbook clearly explains that computers understand only machine language (binary - 1s and 0s), while humans write programs in high level languages using English-like sentences. This creates a gap that requires translators (compilers and interpreters) to convert source code into object/machine code for execution.