2.5 Flashcards

1
Q

machine code

A
  • binary representation of instructions in a format that the CPU can decode and execute
  • have an operation code (op code) instruction and address or data to use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

what are low level languages

A
  • written in assembly language
  • translated by an assembler into machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

what are low level languages used for

A
  • for embedded systems and device drivers where instructing the hardware directly is necessary
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

high level languages

A
  • e.g. languages such as python, c++, java, visual basic
  • translated by a compiler or interpreter into machine code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

advantages of high level languages

A
  • makes writing computer programs or interpreter into machine code
  • one source code instruction translates into many machine code instructions
  • code will run on different types of processors
  • code is quicker and easier to understand and write
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

disadvantages of high level languages

A
  • less memory efficient
  • code will be slower to execute if it is not optimised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

advantages of low level languages

A
  • code is fast to execute
  • memory efficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

disadvantages of low level languages

A
  • code is harder to write and understand
  • the code works on one type of processor only
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

advantages of interpreters

A
  • easy to write source code because the program will always run
  • code does not need to be recompiled when changed, making it beginner friendly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

disadvantages of interpreters

A
  • translation software is needed at run time
  • speed of execution is slower
  • code is not optimised
  • source code is needed
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

advantages of compilers

A
  • no need for translation software at runtime
  • speed of execution is faster
  • code is usually optimised
  • original code is kept secret
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

disadvantages of compilers

A
  • the program will not run with syntax errors, making it more difficult to write the code
  • code needs to be recompiled when the code is changed
  • designed for a specific type of processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

functions of IDEs

A
  • debugging tools for finding logic errors
  • help with preventing and identifying syntax errors
  • providing a run time environment
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

differences between compilers and interpreters

A
  • compilers translate code in one go
  • interpreters translate one line at a time
  • compilers create an executable
  • Compilers report all errors at the end
  • interpreters stop when they finds an error
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

what is the purpose of an assembler

A

to translate machine code into binary

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

purpose of translators

A

Convert a program written by a programmer into binary code that the computer can decode and execute

17
Q

what is an IDE

A

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

18
Q

Run-time environment

A

tool used by the IDE to enable program to be run

19
Q

Common tools and facilities available in an IDE

A
  • Editors
  • Error diagnostics
  • Run-time environment
  • Translators
20
Q

what does debugging software do

A

displays information about errors

21
Q

compiler

A
  • tests all code at once to check for errors
22
Q

interpreter

A
  • checks for errors in code one line at a time