Principles Of Programming Flashcards

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

Compiler

A

They take the whole source code and translate it into machine code all in one go. Once converted, the object code can be run unassisted at any time.

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

Interpreter

A

An interpreter translates source code into machine code one instruction at a time (one line at a time). The resulting machine code is then executed immediately.

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

Assembler

A

Assemblers are a third type of translator. The purpose of an assembler is to translate assembly language into machine code.

Assemblers create one machine code instruction for each assembly instruction.

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

What is a high-level language?

A

A programming language that allows code to be written. It’s very similar to natural human language (like English). It also provides the utility of powerful commands that can perform complex tasks.

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

Give examples of High-level languages.

A
Basic
Java
Pascal
COBOL
C#
C++
Python
VB
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

What are Low-level languages?

A

Uses mnemonics and requires knowledge of the internal structure of the CPU (it’s very specialised).

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

What is machine code?

A

Binary

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

What are the uses of High-level language?

A

It is used when speed is not the most critical factor, and often used in productivity applications, like spreadsheets or word processors. Modern applications are developed using high-level programming languages.

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

What are the uses of Low-level language?

A

Some people may program directly into machine or assembly code, mainly used for programming device drivers or embedded systems, where fast execution speeds are critical. For game developers who use console specific development software, they include low-level features for optimum performance.

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

Give an example of Low-level language.

A

Assembly language

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