2.5 - Languages & IDEs Flashcards

You may prefer our related Brainscape-certified flashcards:
1
Q

What is a high level programming language?

A

A computer programming language used to write programs
—> Similar to natural human language

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

What are the advantages of a high level language?

A
  • Easier to understand
  • Leads to fewer errors
  • Written faster
  • Allows more powerful, complex commands than low level languages
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the advantages of a low level language?

A
  • Program written in this language is executed very fast
  • Occupies less memory
  • Used to control & manipulate specific hardware components
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

How are programs written in low level languages executed very fast?

A

High level languages must be translated into machine code before it’s understood by the computer

Low level languages don’t need to be translated

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

What are the types of low level languages?

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

What is machine code?

A

The instructions that a processor understands and can act upon
—> Pure binary code

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

What is an assembler?

A

A program which translates assembly code into machine code

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

What is a translator?

A

Translates a program written in one language into another language (usually machine code)

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

What are the types of translator?

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

What is an interpreter?

A

Converts high-level language one line at a time into machine code and executes it

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

What is an compiler?

A

Converts high-level language into machine code for execution at a later time
—> Entire program is converted at once

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

What is the comparison of Interpreters & compilers on execution method?

A

Interpreter - translates source code into machine code one line at a time

Compiler - translates all the source code into machine code at once

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

What is the comparison of Interpreters & compilers on execution speed?

A

Interpreter - slower
Compiler - faster

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

Why are interpreters slower than compilers?

A

Code must be reinterpreted each time as the program is run

Compiler is interpreted at once

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

What is the comparison of Interpreters & compilers on complexity?

A

Interpreter - smaller, simpler programs

Compiler - larger, complex programs

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

What is the comparison of Interpreters & compilers on error reporting?

A

Interpreter - interpreter would encounter errors & report it immediately to the user

Compiler - Compiler would analyse the entire program & record them in an error file

17
Q

What is the comparison of Interpreters & compilers on repetition?

A

Interpreters - must reinterpret the program every time it is run

Compiler - requires analysis and the generation of the code only once
—> Have to be re-compiled after any changes have been made

18
Q

What is an IDE?

A

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

19
Q

What is the editor?

A

Software that allows a programmer to enter & edit source code

20
Q

Name some Editor features

A
  • Automatic formatting
  • Automatic line numbering
  • Automatic colour coding
  • Statement completion
21
Q

Give some examples of some Debugging tools

A
  • Trace
  • Break points
  • Error diagnostics & debugger
  • Variable watch/ watch window
22
Q

What is a trace?

A
23
Q

What is error diagnostics & debugger?

A

Used to display information about an error and when it occurs
—> May also suggest solutions to help the programmer to find and fix the error

24
Q

What are break points?

A

Enable a program to be paused or stopped at predetermined points

25
Q

What is the purpose of a break point?

A

The programmer can then examine different parts of the running program
—> Information tells the programmer whether or not the program is working as expected

26
Q

What is a variable watch?

A

Displays the current value of a selected variable

Variable can be watched line by line to see how the value changes

27
Q

What is a runtime environment?

A

Allows a program to run on a computer system
—> Checks for runtime errors & allows users to test the program

28
Q

When does a runtime error occur?

A

As the program is being executed

29
Q

Give an example of a runtime environment

A

Java runtime environment

30
Q

What does the use of a runtime environment allow?

A

Tools such as trace & breakpoint to be used

31
Q

What is an emulation?

A

A software simulation of a computer system that can be made to run on another computer

32
Q

What is a virtual machine?

A

A software implantation of another computer system or program for another machine