2.5 Programming Languages and IDE's Flashcards

(12 cards)

1
Q

What is machine code?

A

An instruction that can run inside a CPU is called machine code and is in binary

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

What are high level languages?

A

High-level programming languages use code written in a way that is similar to a natural human language, such as English, making it easier to understand and use the language

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

What are low level languages?

A

Low-level languages do not closely resemble a natural human language, making it harder for humans to understand and write in.

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

Pros of high level languages?

A

Using high-level languages leads to fewer errors and allows for more powerful and complex commands compared to low-level languages.

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

Cons of high level languages?

A

A high-level language must be translated into machine code (binary) before it can be run, as high-level languages cannot be executed directly by the CPU.

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

Pros of low level languages?

A

Low-level languages are used when a program must be executed quickly or when programmers need to write code that interacts directly with the hardware, such as device drivers.

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

What is a translator?

A

A translator changes (translates) a program written in one language into another language (usually machine code) to be executed by the CPU

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

Decribe what interpreters do?

A
  • Translates source code into machine code one line at a time
  • Slower than a compiler because the code must be reinterpreted each time the program is run
  • Interpreters are smaller, simpler programs
  • The interpreter would encounter the errors and report it to the user immediately and stops the program
  • Can be edited and run without translating the whole program
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Decribe what compilers do?

A
  • Translates all the source code (high level code) into machine code in one go
  • Produces an executable file that will run on other machines without the compiler needing to be installed.
  • Produce much more efficient code than interpreters making the compiled programs run faster
  • Tend to be large complex programs
  • Analyse the entire program, taking note of where errors have occurred and record them in an error file
  • Requires analysis and the generation of the code only once
  • Compiled programs have to be re-compiled after any changes have been made
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

What do editors do?

A

Software that allows a programmer to enter and edit source code
Features may include:
* Automatic formatting
* Automatic line numbering
* Automatic colour coding
* Statement completion

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

What do error diagnostics and debuggers do?

A

Display information about an error when it occurs such as the line it occured on and the error type
May suggest solutions to help programmer to solve this error

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

What does a run time environment do?

A
  • Allows a program to run on a computer system, checks for runtime errors
  • Runtime error occurs as program is being executed, such as dividing a number by 0
  • Allows tools such as rtace and breakpoint to be used
How well did you know this?
1
Not at all
2
3
4
5
Perfectly