High-level languages

Cards (5)

  • The characteristics and purposes of high-level languages
    Programmers find machine code very difficult to learn, write and debug. As a result, the majority of programmers write programs in high-level programming languages. These languages use English-like statements. For example, Python uses 'print', ‘if’, 'input' and 'while' statements - all words from the English language - to form instructions. In fact, high-level program instructions often look like abbreviated English sentences.
  • Programmers write in high-level languages because they are easier to understand and are less complex than machine code. They enable the programmer to focus on what needs to be done, rather than on how the computer actually works.
    For example, in many high-level languages, to place a message on the screen, programmers would use the statement 'print'. The programmer might not know how the computer actually generates the message. They just need to know how to use the 'print' statement.
  • Commonly used high-level languages
    Many types of high-level language exist and are in common use today, including:
    • Python
    • Java
    • C++
    • C#
    • Visual Basic.NET
    • PHP
    Most high-level languages can be used for different purposes, but are best used for the purpose they were created. For example, PHP was created for web development.
  • Most high-level languages can be used for different purposes, but are best used for the purpose they were created. For example, PHP was created for web development.
  • Source code
    Source code is the term given to a set of instructions that are written in human-readable programming language. The Python program shown before is an example of source code. This code must be translated into machine code before the computer can understand and execute it.