Chapter 1 Flashcards
What is the Denary Number System?
A system that uses ten digits: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9.
Also known as the ‘base 10’ system.
What is the Binary Number System?
A system that only uses two digits: 1 and 0.
Also known as the ‘base 2’ system.
What is Ones’ Complement?
Represents positive numbers.
128 64 32 16 8 4 2 1
What is Two’s Complement?
Represents negative numbers.
-128 64 32 16 8 4 2 1
What is Overflow?
The number produced in the previous example is outside the range of values which can be represented by the 8 bits ➔ This causes overflow.
For -128 64 32 16 8 4 2 1: +127 is the largest value
For 128 64 32 16 8 4 2 1: +256 is the largest value
Binary Subtraction Steps:
For example: 93 - 66
We have a positive number, 93, and a negative number, -66:
1. Convert the two numbers into binary (93 and 66)
2. Find the two’s complement of 66
3. Add the two binary numbers
What is the Hexadecimal Number System?
A number system that uses 16 digits:
0 1 2 3 4 5 6 7 8 9 A B C D E F
Also known as the ‘base 16’ system.
Split it into groups of 4 bits (starting for right to left) and then find the equivalent hex digits
When is the Hexadecimal System used and why?
- When developing new software
- When trying to trace errors in programs
- Memory dump (the contents of a computer memory output to screen or printer)
Because it is easier to work with hex than it is to work with binary.
What is the Binary-Coded Decimal (BCD) System?
A system that uses a 4-bit code to represent each denary digit (0-9).
Stored either as:
◦Half a byte
◦Two codes stored together to form one byte
When is the BCD System used?
To represent decimal/monetary values accurately.
For example on a: calculator, digital clock.
What are ASCII Codes?
To represent text, a character set is required.
ASCII (American Standard Code for Information Interchange) is a system code representing letters, numbers, characters and control codes.
Standard ASCII character set consists of 7-bitcodes:
2^7 = 128 different characters (0 to 127 denary)
What are Extended ASCII Codes?
Extended ASCII consists of 8-bit codes.
2^8 = 256 different characters (0 to 255 denary).
128 - 255 denary are non-English and drawing characters.
Use of 1 byte per character.
What is Unicode?
Allows characters of all the languages of the world; supporting many OS, search engines and internet browsers used globally.
First 128 characters the same as ASCII.
Use of up to 4 bytes per character.
How can images be stored either as?
Bit-map image or Vector image
What is a bit-map image?
Image that is made up of a two-dimensional matrix of pixels (picture elements).
What is image resolution?
The number of pixels that make up an image.
E.g.: 4096x3192=12738656 pixels
What is bit depth?
The number of bits used to represent a pixel (the colour).
E.g.: 8 bits
What is colour depth?
The number of possible colours which can be represented.
E.g.: 2^8 = 256 colours
What is screen resolution?
The number of horizontal pixels and the number of vertical pixels that make up a screen display.
What will happen if the screen resolution is smaller than the image resolution?
The whole image cannot be shown on the screen (cropped image).
The image will be a lower quality (pixels will be removed).
What is pixel density?
The number of pixels per square inch.
(If you zoom in an image, the pixel density will be lower and the image will become pixelated; deterioration in the image quality).
How to calculate the pixel density for a given screen:
- Add together the squares of the resolution size
- Find the square root
- Divide by screen size
For example: iPhone 8, 5.5-inch screen size, 1900x1080 pixels resolution; 19202+10802=4852800 4852800 = 2202.907 2202.907/5.5 = 401 ppi
How to calculate bit-map image file sizes:
- Calculate the number of pixels (length*width)
- Check how many bits each colour requires
- Divide bits into required size (ex KB/MB etc)
When saving a bitmap image what is included (which increases the file size)?
A file header: ◦ File type ◦ File size ◦ Image resolution ◦ Bit depth ◦ Type of data compression