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