4.5 Programming Languages Flashcards

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

What are the two kinds of Programming Languages, and what is their main difference?

A
  1. High-Level Programming Languages
  2. Low-Level Programming Languages

High-Level Programming Languages are made to resemble human language, whilst Low-Level Languages are closer to what a computer might understand.

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

What are the Low-Level Programming Languages?

A
  1. Machine Code
  2. Assembly Language
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

What are the High-Level Programming Languages?

A
  1. Python
  2. Java
  3. C
  4. C++
  5. Ruby
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

What are the Advantages and Disadvantages of a High-Level Programming Language?

A

Advantages:

  1. Similar to Human Language
  2. Easier to Understand
  3. Easier to spot errors
  4. Portable

Disadvantages:

  1. They have to be translated into machine code
  2. They tend to be slower
  3. They can be inefficient
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

What are the Advantages and Disadvantages of a Low-Level Programming Language?

A

Advantages:

  1. Efficient
  2. Quick to run
  3. Uses less memory
  4. Can directly change a computer’s hardware

Disadvantages:

  1. Difficult to understand
  2. More specific to a processor
  3. harder to spot errors
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What is Assembly Language?

A

Assembly Language uses Mnemonics, although it is Low-Level, it still needs to be translated. it is also specific to hardware.

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

What is a Translator and the three kinds?

A

A translator converts code from one language into the equivalent code for another language. The kinds are:

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

What are Assemblers? And what do they do?

A

Assemblers convert assembly code into machine code.

  1. It turns assembly language into object code then into machine code
  2. It detects errors in the first phase
  3. It is Fast but slower than a compiler
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are Compilers? And what do they do?

A
  1. Scans the whole code
  2. Has an executable file
  3. Can be distributed, but code is hidden
  4. Faster
  5. Errors are shown after scanning the whole code
How well did you know this?
1
Not at all
2
3
4
5
Perfectly