High and low-level languages Flashcards

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

What is a program?

A
  • A computer program is a list of instructions that enable a computer to perform
    a specific task.
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Examples of high level languages

A

Python, C++, C, and Java

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

Adv. and Disadv. of high level languages

A
- Generally slower than assembly code - have to be more extensively 
translated
- Resemble human language
- Faster to write
- Easier to debug
- Easier to maintain
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Low level languages + examples

A
  • Relate to the specific architecture and hardware of a specific type of computer
  • Assembly Language
  • Machine Code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

Adv and disadv of assembly languages

A
  • Used with specific hardware, not generalizable
  • Code is extremely fast and doesn’t take up much memory
  • Can be difficult to write for programmers
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Why would a programmer use assembly language?

A

To make use of special hardware
To make use of special machine-dependent instructions
To write code that doesn’t take much space in primary memory
To write a code that performs task very quickly

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

Info about machine code

A

Not written by human programmers
- Assembly language or high-level languages are all translated into machine
code before being fed to the processor

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

Translators

A
  • Computers can only understand binary code, so high-level languages and
    assembly code need to be translated
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Compiler

A

A compiler translates a high-level language like Python into machine code
- This machine code is stored in a file than can then be executed in the CPU.

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

Interpreter

A

Rather than translating a high-level language into machine code, an
interpreter directly executes a program in the CPU, line-by-line

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