Languages Flashcards

1
Q

Definition of a High Level Language:

A

A programming language used for coding which is closer to English and easier to learn.

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

Definition of a Low Level Language:

A

A programming language used for coding which operates close to the hardware of a computer and is less like English.

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

Definition of Machine Code:

A

A low level language using binary, uses one instruction per line.

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

Definition of Assembly Code:

A

Similar to machine code, a low level language using mnemonics, each line is translated into one line of machine code, often used in embedded systems.

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

Definition of a Compiler.

A

A Compiler is a translator that converts the entire source code into object code which can then be run as an executable file.

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

What is an Assembler?

A

A compiler for turning assembly code into machine code.

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

Definition of an Interpreter.

A

An Interpreter is a translator that reads and executes source code line by line, without converting it into machine code first.

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

Give 2 Advantages and 1 Disadvantage of a Compiler:

A

Advantages: Faster, Code only needs to be compiled once, Easier to share
Disadvantages: Hard to debug

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

Give 2 Advantages and 1 Disadvantage of an Interpreter:

A

Advantages: Easier to debug, Multiplatform
Disadvantages: Slower, Code needs to be interpreted every time it is run

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

What is Bytecode?

A

A type of object code which high level languages can be compiled into.

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

Why is Bytecode used?

A

It is a compromise between a Compiler and Interpreter, since it needs both to run, and therefore is more secure and can be used across platforms.

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