Characteristics and purpose of different levels of programming languages: Flashcards

High-level languages Low-level languages The purpose of translators The characteristics of a compiler and an interpreter

1
Q

what is a high level language?

A

Programming languages with abstraction from computer hardware, easier to understand and program in.

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

Give 5 examples of high level languages.

A
  1. Python

2.Java

3.C++

4.C#

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

Low-level languages

A

Programming languages with minimal abstraction from computer hardware, closer to machine code.

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

what language are low level languages written in

A

assembled language

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

how are lower level languages translated

A

by an assembler into machine code

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

what are low level languages used for

A

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
7
Q

positives of low level languages

A

-memory efficient-programmer works with memory directly

-code is fast to execute

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

negatives of low level languages

A

-code is harder to write and understand

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

one instruction in low level language is translated to

A

one machine code instruction

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

does code written in low level language works on all processors

A

the code works on one type of processor only.

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

high level language is translated by

A

a compiler or interpreter into machine code

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

how do high level languages make writing computer programs easier

A

by using commands that are like English

code is quicker and easier to understand and write

lots of data structures to use

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

one source code instruction translates to…

A

many machine code instructions

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

high level language code will run on how many processors

A

different processors

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

problems with high level language code

A

less memory efficient

code can be slower to execute if not optimised

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

Translators

A

Software used to convert high-level language code into machine code, including compilers and interpreters.

17
Q

Compiler

A

A program that translates high-level language code into machine code all at once, producing an executable file.

18
Q

Interpreter

A

A program that translates high-level language code into machine code line by line, executing it immediately.