2.5 Programming languages and integrated development environments Flashcards

1
Q

characteristics of high level languages

A
  • independent of hardware
  • translated using a compiler or interpreter
  • one statement translates into many machine code instructions
  • less memory efficient than low level languages
  • code is faster to execute
  • quicker and easier to understand and write
  • programmer has many different data structures to use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

characteristics of low level languages

A
  • one instruction translates to one machine code instruction
  • code works on one type of processor
  • programmer works with memory directly
  • code harder to understand and write
  • more memory efficient
  • code slower to execute
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

examples of low level languages

A

assembly code
machine code

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

What translates assembly code into machine code

A

An assembler

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

what is the purpose of a translator

A

converts high-level code into machine code or binary to enable the code to be run

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

main feature of a compiler

A

the whole program is translated before it is run

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

main feature of an interpreter

A

program is translated line by line as the program is running

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

advantages of an interpreter

A
  • easy to write source code as the program will always run, stopping when it finds a syntax error
  • code does not need to be recompiled when changed and it is easy to try out commands when the program has paused after finding an error
  • is not specific to one type of processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

disadvantages of an interpreter

A
  • translation software is needed at run-time
  • slow code execution
  • code is not optimised
  • source code is not kept secret
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

advantages of a compiler

A
  • no need for translation software at run time
  • quick code execution
  • code is optimised
  • source code is kept secret
  • produces an executable file so the original code does not need to be compiled again
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

disadvantages of a compiler

A
  • source code is easier to write but the program will run with syntax errors
  • code needs to be recompiled when the code is changed
  • it is designed for a specific processor
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

what is an IDE

A

integrated development software

  • software that performs the various stages of software design and implementation in a single integrated system. includes tool that aid a programmer developing code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

what are the four aids that IDEs provide

A
  • editor
  • error diagnostics
  • run-time environment
  • translators
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

what aids does the editor supply

A
  • find and replace all occurrences of text typed in by the user
  • auto-indent statements
  • auto complete sentences
  • colour code key words (if, for)
  • formatting source code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

explain what is meant by a run time error

A

an error which will be detected when the program is run (eg. division by 0). it is not a syntax error and may be caused by erroneous use inputs

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

what aids do error diagnostics supply

A
  • highlights syntax errors
  • gives location and description of run time errors
  • watch window (displays the value of variables as they change)
  • breakpoints can be set
17
Q

what aids does the run time environment supply

A
  • a separate window opens up to display prompts for the user to enter values and display results
  • allows a program to run on a computer, even if it is not designed to run on it (meaning a program can be developed in different systems and still work)
18
Q

what aid does the IDE provide: translator

A

the IDE will either use a compiler or interpreter to translate the high level code into machine code

19
Q

define the term: run time environment

A

a feature of an IDE that provides a platform to test and run programs

20
Q

define the term error diagnostics

A

tools provided by an IDE to give feedback about syntax errors in the source code