Programming languages + IDE's Flashcards

1
Q

What is machine code

A

A low level code, represented in either binary or hex. It is the language of instructions which tell the computer what to do

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

What does a high level programming language mean

A

Languages which are close to spoken and written language of the programmer

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

Example of a high level programming language

A

Python, java, C++

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

Benefits of a high level programming language

A
  • Easy for programmers to understand
  • Contains words from natural language / quicker to type
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What is source code

A

Any program written in a high level programming language
It 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
6
Q

What does a low level programming language mean

A

Languages that sit close to the computers instruction set

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

Examples of low level programming language

A
  1. Machine code
  2. Assembly language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

What is machine code

A

The instructions that a processor can understand and act upon

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

Advantages of using machine code

A
  • Allows programmers to do things which but not be able to be done in a high level programming language
  • they can build their own complex sentences or keep programs short and simple
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

Disadvantages of using machine code

A
  • Very difficult to write in, understand and debug as it consists of binary or hexadecimal
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

What is assembly code

A

Uses mnemonics, each mnemonic corresponds with a machine code instruction.
It is known as a one-to-one language

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

Why is assembly code better than machine code

A

Mnemonics are much easier to understand and debug, gives programmers a simpler way of controlling a computer

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

Advantages of assembly code

A
  • Mnemonics are quicker to write than binary or hex and easier to spot mistakes
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

What must source code be translated into so the computer can understand it

A

Object code

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

What are the 3 types of translators

A
  • Compliers
  • Interpreters
  • Assemblers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

What does a complier do

A

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

17
Q

Advantages of compliers

A
  • Complied programs run very quickly as they have already been translated
  • Compliers optimise code, they run quicker and take up less memory space
18
Q

Disadvantages of compliers

A
  • Compliers do not usually spot errors
  • the source code must be re-complied when the programmer makes changes
  • source code complied on one platform will not run on another
19
Q

What does an interpreter do

A

Translates source code into object code one instruction at a time

20
Q

Advantages of an interpreter

A
  • Instructions are executed as soon as they are interpreted
  • Require less available memory
  • Errors can be quickly spotted
21
Q

Disadvantages of an interpreter

A
  • Run more slowly as the processor has to wait for each instruction to be translated before it can be executed
  • Interpreters do not optimise code
22
Q

What is an assemblier

A

Translates assembly languages into machine code

23
Q

What is an integrated development environment

A

A suite of tools that helps a programmer to write error free, maintainable code

24
Q

What tools exist to help the programmer write clear, maintainable code

A
  • editors
  • debugging tools
  • runtime environments
  • auto-indentations
  • interpreters
25
Q

What is an editor in an IDE

A

Software which allows programmers to write and edit code, offers facilities such as:
- colour coding
- auto-correct
- auto-indent
these tools help improve the readability of the code, but do not help identify errors

26
Q

What is a runtime environment in an IDE

A

A special software which allows a program to run on a computer even if it is not designed to run on it
- means the programmer can concentrate on program development rather than understanding how different computer systems actually work

27
Q

What do debugging tools do on an IDE

A

Help programmers to locate and fix errors
- Error taping, pinpointing exactly which line in a program an error has occurred
- Variable tracing, lets the programmer see the value of a variable changing, lets them check if it is functioning as expected
- Breakpoints, allow the program to be stopped at predetermined points