Languages and Enviroment Flashcards Preview

Higher Computing Science > Languages and Enviroment > Flashcards

Flashcards in Languages and Enviroment Deck (20):
1

What is machine code?

- A language that all processors understand.
- Binary.

2

What is hexadecimal code?

The lowest form of programming language used by programmers.

3

What is assembly code?

- Created by the developers of processors.
- Architecture dependent, not portable
- Often used when high performance is crucial

4

Why are low level languages used?

- Optimisation of code
- Where no translate software exists
- Greater control of hardware features

5

What are some high level language characteristics?

- Require translation
- Portable
- Easier to read, write and maintain as commands are similar to English
- Allow 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
- Held in RAM when a program is executed

6

What is procedural language?

- Designed to allow programs to create code that will be processed logically and in a structured order
- Code is contained within procedures
- Procedures will be created to allow a series of steps to be followed
- Data can be passed from procedure to procedure using parameters

7

What is declarative language?

- Often used but intelligent systems
- Programmers will create a knowledge base
- A knowledge base contains a series of related facts and rules
- Achieve their effect by the evaluation of expressions
- Allow for the use of self modifying code
- Use capital letters as a variable to find an unknown

8

What are rules?

- Conditional facts
- Contain goals and sub-goals e.g
likes(alan,pizza)

9

What is twos compliment?

A process where you convert all the 0s to 1s and all the 1s to 0s, then you add 1.

10

Describe floating point representation.

• If bytes for mantissa go up:
- the precision goes up
- but the range goes down

• If bytes for mantissa go down:
- the precision goes down
- but range goes up

11

What is ascii?

- Used 7 bit represent the characters found on keyboards.
- Represents: - 128 characters
- 33 non printing
- 95 printable

12

What is Unicode?

- 16 bits
- supports 65536 characters
- the first 256 characters in Unicode are used to represent those of ex-ascii

13

What is sample rate?

Dictates how many samples are taken per second and is measured in KHz

14

What is sample size?

Dictates how many bits are used to store each sample, much like the concept of bit depth in relation to a bit mapped graphic

15

What is frame rate?

The term used to describe the number of frames that are captured per second when recording a video.

16

What is resolution?

The term used to state the total number of pixels in an image.

17

What does but depth dictate?

The total number of available colours.

18

How do you calculate file size for a video?

File size = frame rate x bit depth x time(s) x resolution

19

How do you calculate the file size of an audio?

File size = sample size x sample rate x time x channels

20

How many channels are in mono and stereo?

Mono - 1
Stereo - 2