What is Computer Language?
Generally, we use languages like English, Hindi, etc., to make
communication between two persons. That means when we want to make
communication between two persons we need a language through which
persons can express their feelings. Similarly, when we want to make
communication between user and computer or between two or more computers
we need a language through which user can give information to the
computer and vice versa. When a user wants to give any instruction to
the computer the user needs a specific language and that language is
known as a computer language.
The user interacts with the
computer using programs and that programs are created using computer
programming languages like C, C++, Java, etc.,
Every computer programming language contains a set of predefined words and a set of rules (syntax) that are used to create instructions of a program.
- Low-Level Language (Machine Language)
- Middle-Level Language (Assembly Language)
Middle-level language is a computer language in which the instructions are created using symbols such as letters, digits and special characters. Assembly language is an example of middle-level language. In assembly language, we use predefined words called mnemonics. Binary code instructions in low-level language are replaced with mnemonics and operands in middle-level language. But the computer cannot understand mnemonics, so we use a translator called Assembler to translate mnemonics into binary language. Assembler is a translator which takes assembly code as input and produces machine code as output. That means, the computer cannot understand middle-level language, so it needs to be translated into a low-level language to make it understandable by the computer. Assembler is used to translate middle-level language into low-level language.
- High-Level Language
Languages like COBOL, FORTRAN, BASIC, C, C++, JAVA, etc., are examples of high-level languages. All these programming languages use human-understandable language like English to write program instructions. These instructions are converted to low-level language by the compiler so that it can be understood by the computer.
No comments:
Post a Comment