Week 1 Flashcards
It is defined as the process of creating computer software using a programming language. These are usually written by human individuals or programmers.
Computer Programming
It is a step by step set of instructions that a computer has to work through in a logical sequence in order to carry out a particular task. The computer computer executes these instructions (obey the instructions) when told to do so by the user.
Computer Program
These are the vocabulary and set of grammatical rules for instructing a computer to perform specific tasks. There are many different types of programming languages each having a unique set of keywords (words that it understands) and a special syntax (grammar) for organising program instructions
Programming Languages
Refers to the spelling and grammar of a
programming language.
Syntax
Programming languages are classified into five
major categories:
Machine languages [first generation languages]
Assembly languages [Second generation languages]
Third generation
Fourth Generation
Natural Languages
These are usually refered to low level languages
Machine and Assembly Languages
These are usually referred to as high level languages
Third generation, fourth generation and natural languages
This type of language is machine dependent, that is written to run on one particular computer.
Low level languages
This type of level language is machine independent, meaning it can run on many different types of computer.
High level languages.
What are the two types of low level languages?
Machine language and Assembly Languages.
This type of language writes program using the machine code of 1s and 0s, which is directly understood by the computer.
Machine Language (1GL)
The main weakness of using this language is, it is very easy to make a mistake, and very hard to find once you realize you’ve made a mistake.
Machine Language. (1GL)
What are the characteristics of Machine Language (1GL)
Fastest to execute because it is already in the language that the computer can understand
Difficult to interpret (requires the aid of a reference manual to interpret the meaning of each code)
Easy to make mistakes in the sequence of 1s and 0s;
It is difficult to identify mistakes made
Time consuming and tedious to write.
Machine dependent
Programing becomes more diffcult as the complexity of the program increases
This type of language is written using mnemonic codes (abbreviated english words) or short codes that suggest their meaning and are therefore eaasier to remember. These codes represent operations, addresses that relate to main memory, and storage registers of the computer. Typical codes might be: LDA, STO, ADD, NOP, etc.
Assembly Language - Second Generation Language (2GL)
What are the characteristics of Assembly Language (2GL)
As with machine language, assembly language is machine dependent.
Assembly language, being machine dependent is faster and more efficient in the use of hrdware than high-level programming languages.
Assembly languages have to be translated into machine language by language translators known as assemblers for the processor to understand.
Easier to write than machine languag
The code is not very easy to understand, hence the introduction of high level programming language