High and low level languages Flashcards

1
Q

What are high-level languages?

A

Languages that are used for writing code or instructions in order to create a program.

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

Why are they important?

A

In order for a computer to function efficiently, programs must be created, so that it carries out functions. Since it is hard for humans to write machine code, they use high level languages instead, which is converted to machine code.

It is also faster to write and easier to debug.

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

What are low level languages?

A

They are languages that resemble the computer’s machine code.

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

Why are they important?

A

These languages are used when coding language-specific hardware or computers.

Instructions written in this code perform tasks very quickly.

This code takes up less space in computer memory.

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

What is a compiler?

A

A compiler is a program, called a translator, which converts code written in HLL to machine code.

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

What is an interpreter?

A

It is a program that translates code written in HLL to machine code, one statement at a time.

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

What is an assembler?

A

Converts code written in assembly languages to machine code.

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

What are the differences between each of these 3 translators?

A
  1. Their functions.
  2. Executable file of machine code is produced by an assembler and compiler, but not by an interpreter.
  3. Compiled and assembled programs do not need the translators to function, while interpreters do.
  4. Compiled and assembled programs are distributed for general use. Interpreted programs are used often when developing programs.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly