Principles Of Programming Flashcards

1
Q

Define high level language

A

A programming language designed to simplify computer programming. Several steps removed from the actual code run on a CPU

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

Define low level language

A

A programming language that contains basic instructions recognised by a CPU. Two common types are assembly language and machine code

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

Define assembly language

A

A low level programming language written in mnemonics designed for a specific type of processor that can be converted to machine code using an assembler

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

Define mnemonic

A

A short code used in assembly language

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

Define machine code

A

A low level language comprised of binary digits (bit patterns) that can be executed directly by the CPU. All programs must be translated into machine code before they can run on a computer

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

Define program translation

A

Translating code, using either an interpreter or compiler into executable machine code

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

Define embedded software

A

Software built into embedded systems written to control machines or devices that are not typically thought of as computers

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

Characteristics of high level languages (6)

A

• Require translation into machine code
• Are portable
• Are written in code similar to English
• Allows access to module libraries
• Use data types and data structures, selection statements and repetition/iteration constructs
• Use logic operators and functions that are built into the language

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

Characteristics of low level language (4)

A

• Can be finely tuned so that the code is more efficient
• Can have more system dependent features available
• Usually not portable
• Usually harder to program
— have to pay more attention to finer details
— takes more lines of code to achieve the same result

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

Uses of high level languages

A

Used when execution speed is not the most critical factor, including for writing:
- Office applications and database packages
- Operating systems
- e-commerce software and social media apps

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

Uses of low level languages

A

Used when execution speed and efficient memory use are critical:
- Operating systems
- Device drivers
- Embedded software

Professional game developers often use console specific development software, which is likely to include low-level features for performance

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