Component 1.6 - Principles Of Programming (Finished) Flashcards

1
Q

What is a high level language?

A

A high level programming language is a language where code can be written that is similar to natural human language

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

Give an example of a high level language

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

What is machine code?

A

Machine code does not resemble any natural language and is made up entirely of bit patterns (instructions or data) that can be executed directly by the CPU.

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

Can low level language code be widely used? Why?

A

No, In low level languages the program statements are written for a particular type of CPU and make direct reference to specific internal registers.

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

_____ level languages must be converted into _______ _______ before they can be executed by the ___.

A

High, machine code, CPU

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

When and where are high level languages used?

A

High level languages are used when execution speed is not the most critical factor. They are mainly used in most modern applications. E.g. Operating systems, word processors, social media apps

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

Why and when is Machine code or assembly code used?

A

Machine code or assembly code is primarily used when programming device drivers or embedded systems, where fast execution speeds are critical.

Professional game developers may also use low level features for optimum performance

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

What are two benefits of high level languages?

A
  • Easier to understand / learn as their commands are similar to natural language
  • Allow the use of powerful commands that perform quite complex tasks
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

What are two advantages of low level languages?

A
  • programs can be made very efficient

- programs can run faster than with high level languages

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

What does low level language programming require?

A

Programming in a low-level language requires knowledge of the internal structure of the CPU

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

What does an assembler do?

A

An assembler converts assembly code to machine code

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