Computer Systems Flashcards
What are the units of storage?(7)
- Bit = binary digit
- Byte = a group of 8 bits
- Kilobyte (Kb) = 1,024 bytes
- Megabyte (Mb) = 1,024 kilobytes
- Gigabyte (Gb) = 1,024 megabytes
- Terabyte (Tb) = 1,024 gigabytes
- Petabyte (Pb) = 1,024 terabytes
How are positive numbers stored in a computer?
Binary
How are integers stored in a computer?
How does it work?
Two’s compliment
The most significant bit (128) is made negative
What are real numbers?
How are real numbers stored in a computer?
What is the advantage?
Disadvantage?
Positive, negative numbers including fractions and decimals
Through floating point notation, where the decimal part is the mantissa and the fractional part is the exponent.
It allows very large and very small numbers to be stored in a fewer number of bits
Accuracy is lost since the mantissa gives the number rounded to a certain number of significant figures.
What increases the accuracy of floating point numbers?
What increases the range?
Increasing the number of bits assigned to the mantissa
Increasing the number of bits assigned to the exponent
What is ASCII?
How does it store characters in a computer?
What are control characters?
What is Unicode?
An 8 bit code that can represent 256 characters
Each character is assigned a number from 0 -255 (8 - bit code)
RETURN and TAB
A 16 bit code that can represent many more characters
What is the advantage of Unicode over ASCII?
Disadvantage?
Unicode can store many more characters in different languages so more people all over the world can use it
Unicode requires more storage
What are bit mapped graphics?
How much is each pixel worth
Advantages? (2)
Disadvantages? (4)
A 2 dimensional array of pixels stored in a binary code where 1’s represent black pixels and 0’s represent white pixels
1 bit
Advantages
- Can be edited at pixel level so that fine detail and irregular shapes can be produced
- Good for editing photographic images captured by a digital camera
Disadvantages
- File size can be very large because each pixel must be stored
- The resolution of the image is fixed so when enlarged it becomes jagged
- Parts of the image cannot be separated
- No advantage is gained from sending the image to a high resolution device such as a printer because the resolution is fixed
What are vector graphics?
What are the advantages? (4)
Disadvantages? (1)
Stores an image as a list of objects and their attributes eg.
Advantages
- File size is smaller than bit mapped graphics because only a description is stored
- Editing can be done on each object at an attribute level eg. change the length
- Overlapping objects can be separated again
- Resolution is not fixed so when enlarged the shapes do not become jagged
Disadvantages
1. Not suitable for creating and editing images with fine detail such as photographs taken by a camera. More suitable for shapes
What are the parts of the CPU?
What are the parts of the processor?
What are the parts of the main memory
A processor and main memory
Control unit
ALU
Registers
RAM / ROM
What is a peripheral device and what does it do?
Give examples of:
Input
Output
Backing storage
Any device that can be attached to the CPU for input, output or backing storage
Input = keyboard, scanner, digital camera
Output = printer, projector
Backing storage = CD, hard disc drive, USB memory stick. These are used to permanently store program and data files
What is the function of the:
Control unit
ALU
Registers
CONTROL UNIT-
Fetches and executes the program instructions stored in the main memory one at a time
ALU
Preforms arithmetic operations
Registers
Used to store items of data the the proces is currently working on
What is main memory?
RAM?
ROM?
Used to store the programs and data currently being executed by the processor
Used to temporarily store the programs currently being executed by the processor. Loses contents when computer is switched off. Contents can be changed.
Used to store programs that stay the same. Keeps contents when computer is switched off. Cannot change contents.
What is the address?
What are processor buses?
What are the three kinds?
A unique code used so the processor can identify each location.
A set of parallel wires used to connect the processor and main memory
Address bus = used to specify which memory location is to be used to read or write data
Data bus = used to carry data from a memory location to the processor and vice verse
Control bus = used to send out signal to initiate events
What is machine code?
Why are high level languages much easier to read and find errors than low level languages? (5)
Give some examples of high level languages
The computers own language using binary codes to represent instructions and data. Low level language. Very difficult for humans to write and find errors
- They use English command words
- Complex mathematic equations can be performed in one instruction
- One high level instruction is the equivalent of many machine code instructions
- They have in built functions
- The program can be broken down into procedures
Scratch, Visual Basic and python