大象传媒

Principles of programming - EduqasHigh-level languages

Programming languages can be categorised as high-level and low-level. They each have very different characteristics and are used for different purposes. Machine code and assembly languages are very different to the languages most programmers use.

Part of Computer ScienceUnderstanding Computer Science

High-level languages

The that tell a computer what to do are written in . Machine code is a series of numbers written in .

Programmers find machine code difficult to learn, program in and . As a result, the majority of programmers write programs in . These languages are closer to the programmer鈥檚 natural language. For example, uses print, if, input and while - all words from the English language - to form instructions. In fact, instructions in Python often look like abbreviated English sentences.

Translator program converting high level language into machine code, the key features of each are explained

Programmers write in high-level languages because they are easier to understand and are less complex than machine code. This makes both programming and debugging simpler. The programmer can focus on what needs to be done rather than on how the computer works.

For example, in many high-level languages, to place a message on the screen a programmer would use the statement print. The programmer does not know how the computer generates the message. They just need to know how to use the print statement.

High-level languages have a disadvantage - they are restricted to the number of statements built into them. If the programmer wants a program to do something but a statement does not exist to do so, the task cannot be done.

Commonly used high-level languages

Many types of high-level language exist and are in common use today, including:

  • Python
  • Java
  • C++
  • C#
  • VB.Net

Source code

Any program written in a high-level language is known as . Source code must be translated into machine code before the computer can understand and execute it.

High-level languages are known as one-to-many languages. Each high-level instruction is translated into many machine code instructions.