O GoConqr está de visual novo! Conte para nós o que você achou.

Mapa mental

Part 1: Tools

Afshin N Computer Science GCSE Inglês

Conteúdo do mapa

Part 1: Tools

  1. High Level Languages

    • A high level language is a programming language that allows code to be written. It is similar to a natural human language, such as Welsh or English. Some programmers prefer to use high level programming languages as they are easier to understand, learn and program. Their commands are similar to natural languages like English or Welsh and identifiers can be long and meaningful. High level programming languages also allow the use of powerful commands that perform quite complex tasks such as MsgBox in Visual Basic or the SORT clause in COBOL. High level languages are used when the execution speed is not critical, e.g. in common productivity applications, such as a word processor
      • Example are: Basic, Java, Pascal, COBOL, C# and C++
  2. Machine Code

    • Machine code is the opposite of a high level language in that it does not resemble any natural language and is made up entirely of bit patterns (instructions or data) that can be executed directly by the CPU. Examples of machine code instructions are opcodes and operands. High level languages have to be converted into machine code before they can be executed by the CPU. Although highly uncommon, some programmers may wish to program directly in machine code. This is primarily done when programming device drivers or where a fast execution speed are critical.
  3. Constants

    • Constants are used in computer programming to store data that does not change. Constants are also given self-documenting identifiers that should reflect the data being stored in them.
    • An example of a constant would be Pi = 3.14, as this is a self-documenting identifier that does not change.
  4. Variables

    • Local and global variables
      • A local variable is a variable that is defined within a sub procedure and as such is only accessible from within that same sub procedure. This is known as its scope. A global variable is a variable that has a larger scope as it is defined globally and is therefore accessible from anywhere within a program. The advantage of defining a local variable over a global variable is that it is easier to track the changes to a variable and the reason for the changes when it is only used within a sub procedure. An advantage of defining a global variable over a local variable is that sometimes it can be the most efficient way of ensuring that an important piece of data is accessible to all sub procedures, e.g. the details of the user currently logged into a program.
    • Static and dynamic variables
      • Each time a program is run, static variables are stored in a location in memory and have a lifespan that lasts the entire time that program is running. For example, if you assign the number 2.14 to a static variable (and do not change it), the static variable will still contain 2.14 the next time you run the sub procedure and until the whole program stops running.
      • Each time a dynamic variable is defined, it is assigned a new location in memory and has a lifespan that ends when the sub procedure in which it was defined ends. For example, if within a sub procedure you assign the number 2.14 to a dynamic variable (and do not change it) and the sub procedure ends, the next time you run that sub procedure the dynamic variable will no longer contain any value.

Informações

Descrição
GCSE Computer Science (Topic 7) Mapa Mental sobre Part 1: Tools, criado por Afshin N em 26-09-2016.
Criado por
Afshin N
Visualizações
2
Avaliação

Fale Conosco

Sobre o que é sua mensagem?

O que você acha do novo visual?

Você gostou?