Programming languages Flashcards

1
Q

Machine code

A
  • hard for humans to understand

- binary representation of instructions that the CPU can decode and execute

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

High-level language

A
  • written in python/C++/Java
  • 1 instruction = many in machine code
  • can run on multiple processors
  • easier and quicker to use
  • less memory efficient
  • can be slow to execute if not optimised
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

low-level laguage

A

-written in assembly language
-used in embedded systems (where instructing hardware
directly is important)
- 1 instruction in LLL = 1 in machine code
-only works on the processer it was coded for
-harder to understand
-fast to execute
-memory efficient

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

translater

A

converts programming languages into machine code in order to make the instructions readable/executable for the processor. (includes assembler, interpreter, compiler)

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

compiler

A
  • converts high-level into machine code
  • translates all the instructions at once
  • harder to find errors
  • processing time is long but is very quick for replication
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

interpreter

A
  • converts high-level into machine code
  • executes line by line, immediately
  • finds errors as it goes along
  • runs slowly
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

3 reasons why high level is used over low level languages

A
  • easier to read and write
  • easier to debug
  • easier to learn/understand
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

2 reasons why people use low level languages

A
  • can work directly with the hardware

- takes up less storage/memory

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

problems using low levels for open-source software

A
  • open source is used so other programmers can contribute and edit it for their own uses
  • low-level is not commonly known so its harder for other programmers to use
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

how is sound stored in a computer

A
  • sound recorded by a microphone
  • converted into electrical signals
  • analogue wave sampled at regular intervals
  • samples converted into binary and stored
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

why sound is not always sampled to give the highest audio quality (4)

A

-higher quality means a larger file size

  • lower quality is useful for low storage capacity
  • useful for sending files to other devices
  • useful for streaming across the internet
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

how are bitmap images stored on a computer

A
  • bitmap is a rectangular grid of pixels
  • each pixels is represented as binary
  • each binary number represents a different colour
How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

1 adv and 1 disadv of storing an image in high resolution

A
  • better quality

- larger file size/more storage

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