• Shuffle
    Toggle On
    Toggle Off
  • Alphabetize
    Toggle On
    Toggle Off
  • Front First
    Toggle On
    Toggle Off
  • Both Sides
    Toggle On
    Toggle Off
  • Read
    Toggle On
    Toggle Off
Reading...
Front

Card Range To Study

through

image

Play button

image

Play button

image

Progress

1/30

Click to flip

Use LEFT and RIGHT arrow keys to navigate between flashcards;

Use UP and DOWN arrow keys to flip the card;

H to show hint;

A reads text to speech;

30 Cards in this Set

  • Front
  • Back
Machine code
computer language that is directly understandable by a computer’s CPU.



Only language that a computer can understand.




The instructions – opcodes and operands - are represented by strings of bits – 1s and 0s

Assembly Language
Low level language - very similar to those in machine language



there is usually a one-to-one relationship between the assembly and machine code instructions

Mnemonics
Tools that are designed to help a person’s memory.



In assembly language the mnemonics are English-like words used to represent the binary opcodes of machine language e.g. the mnemonic ADD is used in assembly language for the opcode 110001011

Assembler
translates the symbolic codes (mnemonics) of programs of an assembly language into machine language instructions
High level language
closer to human languages and are further removed from machine languages than assembly language.



no one-to-one relationship between the instructions

Assembly Language advantage
requires less memory and execution time.



Allows hardware-specific complex jobs in an easier way.




Suitable for time-critical jobs.




Most suitable for writing interrupt service routines and other memory resident programs.

High Level language advantage
Faster program development.not necessary to remember the registers of the CPU and mnemonic instructions.



Portability of a program from one machine to other.




Each assembly language is specific to a particular type of CPU, but most high-level programming languages are generally portable across multiple architectures

Compiler
Reads the whole high level code and translates it into a complete machine code program which is output as a new file and can be saved.



To convert to low-level in one go




Use for error detection




Easy to distribute the software




Users will have no access to source code so no-one can edit/steal/copy the code/program

Compiler advantage
Translation is done once only and as a separate process.



The program that is run is already translated into machine code so is much faster in execution

Compiler disadvantage
You cannot change the program without going back to the original source code, editing that and recompiling
Interpreter
Reads the source code one instruction or line at a time, converts this line into machine code and executes it.



The machine code is then discarded and the next line is read.




To test the program // to find errors




stops running when it finds an error//shows the location of the error when found

Interpreter advantage
simple and you can interrupt it while it is running, change the program and either continue or start again



it is quicker (compared to compiler) to re-interpret than re-compile

Interpreter disadvantage
every line has to be translated every time it is executed, even if it is executed many times as the program runs.



And because of this interpreters tend to be slow.

IDE
Integrated DevelopmentEnvironment.



Software application that provides facilities to computer programmers for software development




Typically consists of a source code editor, debugger, complier or interpreter and may have a graphical interface (GUI).




Colour coded statements,automatic indentation, autocompletion of statements, help with syntax ofstatements, compiler which points out syntax errors

Source code editor
Text editor designed specifically for the writing and editing of source code for computer programs
Syntax highlighting
Displays source code in different colours and fonts according to the category of terms - improves the readability and easier to spot mistakes
Autocomplete
Predicting a word or phrase that the user wants to type
Auto Indent
Automatically indent the next line if it is required when the Return key is pressed
Debugger
Used to test the code and highlight and remove programming errors.



When an error is found, it will show its location in the code.

Stepping
Allows the code to be run and inspected one line at a time.

Versioning tools

To allow for tracing back




To create new files with changes

Breakpoints
intentional stopping of the program at a specified place so that the programmer can inspect the code
Variable tracing
Can see the values of variables at any stage in the running of the program
Algorithm
step-by-step procedure for solving a problem in a finite number of steps
Logic error
Bug or mistake in a program’s source code that results in incorrect or unexpected behaviour.



e.g. Wrong operator used

Array
data structure that contains a group of linked elements which are usually of the same data type.



They allow the storing of multiple pieces of data in one variable

Syntax
Defines how declarations, functions, commands, and other statements should be arranged.
Syntax error
Error in the source code of a program. Not following the syntax (rules) of a programming language



Detected by compiling the program,or running it with an interpreter which will stop when it reaches a line with asyntax error

Algorithm

A set of instructionsfor how to solve a problem or perform a task

Constant

A location in memory




The value/contents cannot be changed (whilst the program is running)




DO NOT SAY VARIABLE!