Chapter 1 - Data Representation Flashcards
What is the building block of all computers and why
Binary number system, because it is only made up of 0’s and 1’s. Computers contain millions of tiny switches that must be in either the ON or OFF position. These positions can be represented by the binary number system.
1=ON(high)
0=OFF(low)
What do switches in a computer do and what is another name for them
Make use of logic gates and store and process data
Microtransistors
Whaty does binary allow computers to do
Carry out calculations
What is a bit
A basic computing element that is either a 0 or 1, comes from BInary digiT
What is the binary number system
A number system based on 2, and only contains 0’s and 1’s
What is the denary system also called
A base 10 number system
What are the uses of the hexadecimal system (4)
Error codes
Mac address
IPv6 adress
HTML colour codes
What are error codes
They are codes that are usually automatically generated, and refer to the memory location of the error
What does the MAC address stand for
Media Access Control address
What does NIC stand for
Network interface card
What is a MAC address
A number which uniquely identifies a device on a network, it refers to the NIC.
Why are MAC addresses rarely changed
So that a particular device can always be identified no matter where it is
What does the NN-NN-NN in a MAC address identify
What does the DD-DD-DD in a MAC address identify
The number of the manufacturer
The device serial number
What do IP addresses stand for
Internet protocol addresses
What is the difference between an IPv4 and an IPv6 (2)
32 vs 128 bit number. IPv6 uses a colon instead of a decimal point
What does HTML colour codes stand for
Hyper text markup language colour codes
What is the maximum denary value of an 8-bit binary number
255
(2^8-1)
What is it called when there is more than 8 bits generated after calculations and what does it mean
Over flow
The number is too big to be stored in the computer using 8 bits
A bigger register needs to be used
What is an overflow error
The result of carrying out a calculation where the result is too big for the computers word size.
hexadecimal
A number system based on 16, goes from 0-9 and then A-F
What is HTML
It is a mark-up (NOT PROGRAMMING) language used when writing and developing web pages
It uses tags<>
Often represents colours of text on screen
What is a logical shift
An operation that shifts buts left/right in a register and replaces shifted bits with 0
Left shift= multiply binary number by 2
Right shift=divide binary number by 2
What is the left most bit reffered to as
The most significant bit
ASCII
American Standard Code for Information Interchange
It is a set of characters for each character on a standard keyboard and 32 control codes control code. (0-31 denary, 00-19 Hex)
Was used in Communication and computer systems
character set
A set of characters that have been defined by computers hardware and software. It is used so that the computer can understand human characters.
What does the standard ASCII code character set consist of and what is it used for
7-bit codes(0-127 in denary/00to 7F in hex)
Represent the letters numbers and characters found on a standard keyboard together with 32 control codes(0-31 denary, 00 to 19 hex)
What does ASCII vs unicode use to represent a character
1 vs 4 bytes
goals of unicode (5)
To have uniform code
Unambiguous code
Reserve part of the code for private use
Universal standard
More efficient coding system
What is unicode
Character set that represents the languages of the world (first 128 are the same as ASCII)
What does the aplitude of a wave specify
The loudness of the sound
analouge data
Data that varies continuously
How do computers store sound wave data
They convert it from anolouge to digital using an ADC, sampling the amplitude at regular intervals. The amplitude cannot be precicely measured so approximate values are stored.
How could you get a more accurately sampled sound
By iincreasing the sampling resolution(bit depth)
sampling resolution
Also known as bit depth
The number of bits used to represent sound amplitude in a digital recording
What is bit depth
The number of bits used to represent the smallest unit in a sound file
What is the sampling rate
The number of sound samples taken per second
Measured in hertz where 1 herts means one sample per second
How is sampling used to record a clip (3)
The amplitude is first determined at set time intervals
An approximate representation of the wave is produced
Each sample is then encoded to a series of binary digits
What are the advantages of a higher sample rate/larger resolution (3)
Larger dynamic range
Less sound distortion
Better sound quality
What are the disadvantages of a higher sample rate/larger resolution (3)
Produces larger file size
Takes longer to transmit/download
Requires a greater processing power
bitmap image
An image made up of pixels
What is colour depth
The number of bits used to represent the colours of a pixel
What is an image made up of
A two-dimentional matrix of pixels
What bit depth do modern computers have
24 bit depth
What is image resolution
The number of pixels that make up an image
Explain the drawbacks of high resolution images
They increase file sizes, which impacts how many images can be stored on the eg. Hardrive. It takes longer to download and transfer the images.
what is pixel density
The number of pixels per square inch
How big is a byte
8 bits
How big is a nibble
4 bits
What is the largest memory size metioned in the texbook
Exabyte
X10^18
What is a more accurate way of measuring memory sizes, and what should be measured using this
IEC memory size system
International electronical commision
RAM and ROM
Why would data need to be compressed (5)
Storage
Time taken to stream
Reduce file size=reduce costs
Reduce time to download/transmit
Reduce bandwidth usage
What is bandwidth
Where maximum rate of data transfer accross a network measured in kbps or mbps
What is lossy file compression
Eg. (3)
A compression process that eliminates unneccesary date and some detail which cannot be recovered during the decompression process
JPG
MP3
MP4
How does lossy file compression affect MP3 (2)
It removes sounds out of the human hearing range
If there are 2 sounds at the same time, one is removed
What is audio compression
A method used to reduce the size ofa sound file using perceptual music shaping
What is the difference between MP3 and MP4 files
MP3 is for music
MP4 allows multimedia storage.
What is the JPEG file reduction process based on
Human eyes dont detect differences in colour as well as they do differences in brightness
By separating pixel colour from brightness, images can be split into 8x8 pixel blocks which allows information to be easily discarded with minimal quality loss
When should lossless file compression be used (2)
When comressing large/complex spreadsheets or downloading a large computer application
What is RLE and what does it do
Run-length encoding
Form of lossless file compression
Reduces size of a string of adjacent,identicsl data
This string is then encoded into 2 values, the first being the number of identical items in the run, the second the code of the data (eg. ASCII)
Only effective if there are long runs of repeated bits
What is the left most bit refered to as
The most significant bit
What is the right most bit refered to as
The least significant bit
Character set
List of characters that have been defined by computer hardware and software, neccessary so that computers can understand human characters.
Standard ASCII code character set has 7 bits (0-127 binary, 00 to 7F Hex)
Difference between upper and lowercase in ASCII
Upper has the 6th bit as 0, lower as 1
Eg. Uppercase: 0 0 00001
Eg. Lowercase 0 1 00001
Extended ASCII
Uses 8 bit codes, gives an extrea 128 codes to allow non-english characters and graphical characters
Compression
Reduction of file size through removing repeated or redundant pieces of data (can be lossless or lossy)