High and Low-level languages Flashcards

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

What is a high level language

A

portable languages that need to be converted into machine code to run on a computer
e.g C++, Python, Java

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

What is a low-level language

A

language that relates to the specific architecture and hardware of computer

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

Advantages of High Level Language

A
  • easier/faster to write code as uses English-like statements
  • easier to modify as uses English-like statements
  • easier to debug as uses English-like statements
  • portable language code - because it is written in source code
  • Only need to learn a single language - as this can be used on many different computers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Advantages of low level language

A
  • can work directly on memory locations
  • can be executed faster
  • translated program requires less memory
  • no need for compilers/interpreters
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

features of a compiler

A
  • A report of errors is produced at the end of translation
  • Translates high-level language into machine code
  • An executable file is produced
  • The program will not run at all if an error is detected
  • Can be used without compiler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

features of a interpreter

A
  • Translates from high-level language into machine code
  • Cannot be used without translator
  • Executes a high-level language program one instruction at a time
  • Produces error message each time an error encountered
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

features of assembler

A

low-level programming language
uses mnemonic codes
specific to the computer hardware.
used to create drivers for hardware

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

Features of interpreter

A

Translates from high-level language into machine code

Cannot be used without translator

Executes a high-level language program one instruction
at a time

Produces error message each time an error encountered

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

features of assembly code

A

low-level programming language
uses mnemonic codes
specific to the computer hardware.
used to create drivers for hardware

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

whats a syntax

A

The structure of language statements in a computer program is called the syntax

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

Differences between compilers and interpreter

A

compiler produces executable code / interpreter doesn’t produce executable code

compiler translates program in one go / interpreter translates and executes line at a time

compiler produces list of all errors / interpreter produces error message each time an error encountered

compiler produces “stand alone code” / interpreter doesn’t produce “stand alone code”

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