U2T3 (2) - Hardware & Software Flashcards
What is a port?
The interface/point of attachment to system unit.
What might a cable do?
It often attaches external devices to the system unit.
What are connectors?
Ports have different types of these and so they are used to join a cable to a device.
What are male connectors?
Connectors with one or more exposed pins.
What are female connectors?
Connectors with holes to accept the pins from male connectors.
What are the 3 types of ports in a computer?
Serial, parallel + USB.
What is a serial port?
Type of interface that connects a device to the system unit by transmitting data only one bit at a time. They usually connect devices that don’t require fast data transmission rates e.g. mouse/keyboard/modem.
What is a parallel port?
Interface that connects devices by transferring more than one bit at a time. Many printers connect to the system unit by this type of port.
What is a USB Port?
Can connect up to 127 different peripheral devices with a single connector type, greatly simplifying process of attaching devices to PC.
What is file format?
When data stored within a file has structure and organisation e.g. jpg/wav/doc/xls/pdf
What does a computer need in order to work?
To have data flowing through the CPU under the control of a program. This data has to come from somewhere e.g. stored file.
How does the data flow work when a program is loaded from a stored file to produce an output?
File held on hard disk/secondary storage, loaded by a program into main memory, manipulated by a program in CPU + output produced.
Give examples of outputs?
Data files, screen images (graphics/text), moving images (video/animation) + sound (music/voice)
What is data compression?
Reducing the space occupied by a large file.
Why might you compress a data file?
For backing store or transferring it over a network.
How does data compression work?
Uses a series of algorithms to reduce the amount of real space taken up by data on a storage medium.
What is zipping the data?
The process of compressing data files.
How does zipping data files work?
Reduces the numbers of characters a file has. Uses the LZW algorithm to reduce memory/storage required by large files.
What does the LZW algorithm do?
Looks for repeating patterns in data being compressed and replaces them with a single character.
How do you calculate the compression ratio?
Original data size / compressed data size
What is the purpose of data compression?
Make files smaller for email, copying when streaming + reducing transfer time.
What is picture compression used for?
Storing images more economically or faster transfer of images
What techniques are used for picture compression?
Redundancy, lossless compression schemes, jpeg + mpeg format.
How does redundancy work for picture compression?
Repeated data describing the same element of an image. Common technique in compressions schemes is identification of this. E.g. Image with solid background colour, can be more efficient to store info that next 500 pixels are same, rather than repeating pixel data 500 times.
How do lossless compression schemes work for picture compression?
Allow the original images to be recreated, others are lossy and generally involve a loss of resolution in parts of the image where experience shows it will be least noticed.
How does JPEG format work for picture compression?
Joint Photographic Experts Group. Used for still images + works by identifying areas of image which are similar - Arrangement of pixels repeated elsewhere in image , perhaps after scaling/rotation. More efficient to store info about these similarities than to repeat data.
How does MPEG format work for picture compression?
Motion Pictures Experts Group. Used for moving images e.g. video + work by delta compression. To cope with high demands of TV standard pictures (25 separate frames transmitted every second in UK). Full picture sent occasionally (5 times per second) Between frames, info containing only changes to image is transmitted. Uses less data where pic is relatively static as with title/caption.
Windows Bitmap IPC:
File extensions, lossless?, type + comments.
BMP, yes, still image bitmap, uncompressed data one of the standard formats.
Tagged Image File Format:
File extensions, lossless?, type + comments.
TIF/TIFF, yes, still image bitmap, compressed data, one of the standard formats.
Graphics Interchange Format:
File extensions, lossless?, type + comments.
GIF, yes, still image bitmap, good for images with large areas of solid colour. As 8 bits are used, only 256 distinct colours can be represented. Simple animated version available suited to web graphics.
Portable Network Graphics:
File extensions, lossless?, type + comments.
PNG, yes, still image bitmap, good for images with large areas of solid colour. PNG uses 24 bits + can represent millions of distinct colours.
Joint Photographic Experts Group:
File extensions, lossless?, type + comments.
JPEG/JPG/JPE, no, still image, good for photographic images.
Vector:
File extensions, lossless?, type + comments.
WMG/DXF, yes, still image vector, dxf is industry standard CAD format.
QuickTime:
File extensions, lossless?, type + comments.
MOV, yes, video, although storage as .mov file is lossless, data being stored is already held using lossy compression.
Audio-video interleaved:
File extensions, lossless?, type + comments.
AVI, yes, video, although storage as .avi file is lossless, data being stored is already held using lossy compression.
MPEG-1:
File extensions, lossless?, type + comments.
MPG, no, video, suited to small low resolution sequences on CD.
MPEG-2:
File extensions, lossless?, type + comments.
M2V/MPG/MP2, no, video, suited to full screen high resolution sequences on DVD.
Digital Video (DV): File extensions, lossless?, type + comments.
AVI, ish, video. DV data already compressed in camera. Doesn’t compress further.
Windows Media Player:
File extensions, lossless?, type + comments.
WMV, no, video, proprietary format for Microsoft is Windows Media Player. Accompanying audio stored in .wma format.
RAW:
File extensions, lossless?, type + comments.
Many, specific to camera manufacturers, yes, still image data, unprocessed data seen by digital camera sensor, essentially digital equiv of film negative.
File type:
txt
.txt. Text file based commonly on ASCII character set. Some OS place an EOF after last line in file to denote file end.
File type:
wav
.wav. Waveform audio file format. Sound file.
File type:
Bitmap
.bmp
File type:
JPEG (Joint Photographic Experts Group)
.jpeg/.jpg/.jpe. Graphics file format used to store still images.
File type:
MPEG (Motion Picture Experts Group)
MPEG-1 (.mpg), MPEG-2 (.m2v/.mpg/.mp2) Various audio + video formats.
File type:
GIF (Graphics Interchange Format)
.gif
Advantages of .txt files?
Can be opened in any word processor/text editor without need for additional processing. Much smaller than word processing file. Simple txt files don’t require metadata so if no data stored, file will take up 0 bytes. When data corruption occurs on txt file, remaining contents can be more easily recovered.
Disadvantages of .txt files?
Files of this type have no formatting info, these file types can often take up more storage than necessary as no compression occurs.
Advantages of .wav files?
Lossless method of recoding sound files i.e. all of info collected in original sampling process will be retained.
Disadvantages of .wav files?
Sound quality dependent upon sample rates + sample resolution.
Advantages of .bmp files?
Used to store characters/graphics as individual pixels, higher resolution = better quality. Retains all image details. Higher resolution bitmapped images ideal for storing freehand drawings.
Disadvantages of .bmp files?
Blank portions of image require representation within bitmap so can contribute to file size of stored image. Bitmapped images may appear pixelated when scaled up or down. Quite large.
Advantages of JPEG files?
Standard compression format for photographic images devices by JPEG. Can reduce file size to 5% of original size.
Disadvantages of JPEG files?
Lossy compression method i.e. some detail relating to image content is lost in compression process.
Advantages of MPEG files?
Varying resolutions can be applied to file at time of storage e.g. MPEG-1 (produces low res files suitable for CDs), MPEG-2 (record high res sequences for DVD recording) + other variations/resolutions available.
Disadvantages of MPEG files?
Lossy compression techniques applied i.e. some data removed. However, degeneration of image cannot always be perceived by human eye.
Advantages of .gif files?
Provides format for image files that supports animated + static images. Compressed to save transmission time.
Disadvantages of .gif files?
Colour palette limited to 256 colours so not ideal for storing digital photos e.g.those captured by digital camera.
File type:
Rich Text Format
.rtf
Disadvantage of .rtf?
Bigger than .doc files.
What is the idea behind a bitmap?
Build up an image from pixels. If far enough away, brain can be fooled into seeing image as one smooth entity.
What is a pixel?
Smaller rectangular block of single colour in a bitmap image. Shortened from picture element.
What is resolution?
More pixels used to produce an image, more detailed, higher resolution.
What does ‘addressable’ mean?
When the colour of a pixel can be rapidly changed under computer control. This is how video is possible as a new bitmap replaces the previous one at least 25 times a second.
What is the colour within a pixel represented by?
3 bytes, one for each primary colour (red, green + blue) 8 bit scheme allows 256 levels of each primary colour so 16 million+ colours possible in each pixel.
Summarise bitmap graphics.
Made of individual pixels, each pixel is addressable unit allowing for subtle changes, can be compressed which may cause detail loss, each pixel represents a colour, pixelation occurs when image is enlarged, large size, long load time, more pixels + better quality. Each pixel represented by 8/16/24/32 bits (colour depth)
How do vector images work?
Store a set of instructions on how to draw the shape. File size stays same even if image needs to be larger, stays smooth so no pixelation.
Would you store a detailed photograph in bitmap or vector? Why?
Bitmap. It would need so many vector instructions to create it that it makes more sense as a bitmap.
In what format are CAD files stored in + explain?
Vector. Each vector has an exact dimension relative to the origin + scaling factor. Allows engineers to precisely define object being designed.
What is a useful property of vector images that allows an engineer to duplicate a car door and add it to an image of a car?
They can be grouped into objects which is why they are often called object orientated graphics. Individual objects can be edited independently, duplicated + resized with a minor increase in file size.
Summarise vector graphics.
Created by math equations + calculations, points are described by relative distance from origin, can be resized without loss of clarity, each line described by its features (length, thickness, line colour), objects can be grouped together (clipart) + individual elements can be edited independently. (moving, resizing, rotating, recolouring)