2.5 - Programming Languages Flashcards

1
Q

high-level language definition

A

A computer programming language used to write programs. They need to be translated into machine code through a compiler, interpreter or assembler.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

machine code definition

A

(Object code) it is a low level code that represents how computer hardware and CPUs understand instructions. It is represented by either binary or hexadecimal numbers.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

5 commonly used high level languages

A

Python
Java
C++
Csharp
JavaScript

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

source code definition

A

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

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Advantages of machine code

A

Writing in machine code allows programmers to do things not possible in a high level language
Many high level languages do not allow the programmer to specify items such as the screen refresh rate

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Disadvantages of machine code

A

It is notoriously difficult to write in, understand and debug

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

Assembly language definition

A

It sits in between machine code and high level language.
Assembly language uses mnemonics which each directly correspond with a machine code instruction.

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

LDA

A

Loads a value from a memory adress

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

STA

A

Stores a value in a memory address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

ADD

A

Adds the value held in a memory address to the value held in the accumulator

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

SUB

A

Subtracts from the accumulator the value held in a memory address

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

MOV

A

Moves the content of one memory address to another

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

What is Little Man Computer

A

A simulation of a very basic processor using Vo NEumann Architecture. It uses an example of simple assembly;y language containing a limited set of mnemonic

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

opcode def

A

This is the actual instruction

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Operand def

A

This is a value that the instruction uses or manipulates

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

Translator definition

A

A translator is a program that converts source code into object code

17
Q

Compiler def

A

Takes the source code as a while and translates it into object code all in one go

18
Q

Advantages of compilers

A

-run quickly
-can be supplied as an executable file
-they optimise code

19
Q

Compiler disadvantages

A

-dont usually spot errors
-must be re compiled every time the program changes
- source code compiled on one platform will not run on another

20
Q

Interpreter def

A

Translates source code into object code one instruction at a time.

21
Q

Advantages of interpreters

A

-instructions are executed as they are translated
-require less available memory
-errors can be quickly spotted

22
Q

Disadvantages of interpreters

A

-run slower
-has to be translated every time it is run
-dont optimise code

23
Q

IDE stands for..

A

Integrated development environments

24
Q

Tools in IDEs

A

Line numbering
Colour coding
Auto correct
Auto indent
Auto suggestion

25
Brands of IDE
IDLE Eclipse Visual studio
26
Runtime environment
Special software that allows a program to run on a computer, even if it is not designed to run on it. It works on different platforms meaning a program can be developed on different systems and still work
27
Debugging tools
Help programmers to locate and fix errors Breakpoints enable a program to be paused or stopped at predetermined points allowing the programmer to examine different parts of the running program to tell the programmer wether or the program is working as expected
28
Variable tracing
Allows the programmer see the changing values of variables as the program runs