computer science vocab Flashcards
binary number system
language used in computers. anything inputted into a computer needs to be converted into binary first (in order for the computer to understand)
denary number system
language humans use every day. ordinary numbers
hexadecimal number system
humans can use hexadecimal, but in order for computers to understand it would need to be converted to binary. consists of 16 symbols (0-9 and A-F)
in binary addition, what does 0+0 equal?
0
in binary addition, what does 1+0 equal?
1
in binary addition, what does 1+1 equal?
10 (as 10 in binary is 2)
in binary addition, what does 1+1+1 equal?
11 (as 11 in binary is 3)
overflow error
occurs when a number larger than a register can store (larger than 255) is generated
what happens to a binary code when its shifted to the left?
multiplies by 2
what happens to a binary code when its shifted to the right?
divides by 2
how do you create negative binary numbers? (twos complement)
you invert 1’s to 0’s and 0’s to 1’s and simply replace/add a 1 to the right
benefits of using hexadecimal
easier for humans to understand
hex values are easier to remember and enter
what is ASCII?
a character set that represents characters using 8-bit binary numbers. (so can represent up to 256 characters).
what is unicode?
a character set that represents characters using 16-bit binary numbers (so can represent up to 65000 characters)
limitations of using binary
takes longer to decode or convert
difficult for humans to understand
lossy compression
reduces the size of a file by PERMANENTLY removing data. this method is mainly used on an image or sound file.
lossless compression
reduces the size of a file by TEMPORARILY altering data
packet header
part of a data packet. contains information about the contents of the packet and its destination
IP address
unique address that is given to a device when its connected to a network.
payload
part of data packet. consists of the actual data that the user is sending (to the receiver)
trailer
part of data packet. contains information about any error checking methods.
router
examines a data packet to obtain its destination address and send it off.
packet switching
process of transmitting data packets across a network down individual pathways
serial data transmission
data sent one bit at a time down one wire
advantages of serial data transmission
less chance of data being mixed up/misplaces (skewed)
less interference, meaning less chance of error
cheaper as only one wire is needed
disadvantages of serial data transmission
transmission of data is slower
a start and stop bit is required to be sent to allow the receiver to know where data starts and ends
parallel data transmission
multiple bits of data sent through multiple wires at the same time
advantages of parallel data transmission
transmission of data is quicker
disadvantages of parallel data transmission
high risk of data being mixed up/misplaced (skewed)
higher chance of interference, meaning higher chance of errors
more expensive as multiple wires are required
simplex data transmission
when data is transmitted from one device to another in one direction
half duplex data transmission
when data is transmitted from one device to another in both directions but NOT at the same time
full duplex data transmission
when data is transmitted from one device to another in both directions at the same time
advantages of USB
simple interface as USB can only be accessed one way, meaning less chance of errors
USB’ are fast and can transfer data quickly
disadvantages of USB
length of USB is limited (about 5 metres)
parity check
error detection method. uses either odd or even parity check. this is where you count/ sum up the 1’ present and that determines whether there is an error or not. (eg: odd parity check, two 1’ present which is an even number, so one more one must be added on the left most side in order for the 1’ to sum up an odd number)
checksum
error detection method. performs calculations on the data to create a CHECKSUM VALUE. this checksum value is then compared after transmission to see if they match
echo check
error detection method. sends copy of the transmitted data back to the sender to be compared to original data.
check digit
error detection method. used for DATA ENTRY. a calculation is performed on the data entered to create a value. then are compared with each other to see if it is correct
encryption
securing data for storage or transmission by scrambling data and making it meaningless
encryption key
algorithm to encrypt data
symmetric encryption
uses the same key to encrypt and decrypt data
asymmetric encryption
uses two different keys to encrypt and decrypt data
microprocessor
an integrated circuit that performs multiple functions of the CPU.
embedded system
computer system that performs a dedicated function. eg : traffic light, washing machine, digital alarm clock.
program counter
in the FDE cycle (fetch stage) . stores the address of the next instruction to be processed
cloud storage
data storage that is owned by a third party and accessed by the user, using the internet
static IP
does not change each time the device connects to a network
dynamic IP
can change each time the device connects to a network
MAC address
unique address that is given to a NIC by the manufacturer
network interface card (NIC)
component in a computer that is used to connect to a network
characteristics of storing data in the cloud
- you dont have to pay for the hardware
- you dont have the responsibility for the security of the hardware (however, you are relying on a third party that makes sure your data is safe)
- you can access data using different devices from anywhere that you HAVE an internet connection
- easy to increase and decrease the amount of storage space needed
characteristics of storing data locally
- need to purchase hardware
- need to make sure your data storage is well-maintained and regularly checked
- you can access data using different devices from anywhere and you DONT NEED internet connection
transistor
device that acts as a switch or gate for electronic signals
control gate
controls the flow of electric current