Which of the following computer language is written in binary codes only?

a) pascal
b) machine language
c) C
d) C#

b) machine language.

Here’s why:

  • Machine language is the only language computers understand natively. It consists entirely of binary code, sequences of 0s and 1s, which directly correspond to the computer’s internal operations.
  • Pascal, C, and C# are all high-level programming languages. They are much easier for humans to read and write than machine code. However, they need to be translated into machine code by a compiler or interpreter before the computer can execute them.

Why Machine Language is Special

Machine language is the most fundamental language of computers. Each instruction in machine code corresponds to a specific operation the computer’s hardware can perform. While it’s efficient for the computer, it’s very difficult and error-prone for humans to work with directly.

The Role of Higher-Level Languages

High-level languages like Pascal, C, and C# provide a more human-friendly way to write programs. They use keywords, variables, and control flow structures that are easier to understand than raw binary code. These languages then rely on compilers or interpreters to convert the code into machine code that the computer can execute.

In summary, while machine language is the native tongue of computers, high-level languages offer a more practical and user-friendly way for humans to interact with them.

Leave a Comment

Your email address will not be published. Required fields are marked *

Scroll to Top