1/188
Looks like no tags are added yet.
Name | Mastery | Learn | Test | Matching | Spaced |
---|
No study sessions yet.
What does ASCII stand for?
American Standard Code for Information Interchange
What does ASCII do?
What are the pseudocode funtions for casting to and from ASCII?
What are the python functions for casting to and from ASCII?
In ASCII code, is a lowercase letter worth more or less than an uppercase one?
"More ""a"" > ""A"""
In ASCII code, is a letter further in the alphabet worth more or less than an earlier one?
How do you work out the binary and ASCII codes for a letter?
How do computers work?
By turning switches on/off to allow electricity to flow or not
What happens if a switch is on?
It's closed and electricity flows (state of 1)
What happens if a switch is off?
It's open and no current will flow (state of 0)
What are the 2 states a switch can be in?
1 or 0 - binary
What is a single 0/1 called?
A bit (Binary digIT)
What is base 10?
What is 1 byte?
8 bits
What is a byte?
The smallest addressable unit of memory in a computer (8 bits)
What is a nibble?
4 bits (half a byte)
What is a kilobyte (kB)?
1,000 bytes (10^3)
What is a megabyte (MB)?
1,000,000 bytes (10^6) = (1,000KB)
What is a gigabyte (GB)?
1,000,000,000 bytes (10^9) = 1,000MB
What is a terabyte (TB)?
1,000,000,000,000 bytes (10^12) = 1,000GB
What is a petabyte (PB)?
1,000,000,000,000,000 bytes (10^15) = 1,000TB
How do you convert from binary to denary?
Convert 67 into binary
01000011
Convert 01100001 into denary
97
What does internal memory often use instead of MB,KB,etc...
What is a kibibyte?
2^10 = 1,024 bytes
What is a mebibyte?
2^20 = 1,048,576 bytes
What is a gibibyte?
2^30 = 1,073,741,824 bytes
What do computers use the binary system for?
To store numbers and perform binary arithmetic and logic operations
What is the memory size of secondary storage systems commonly measured in now?
Terabytes (TB)
The more bits we use...
What is the no. of different values that can be represented in n bits?
What is the highest no. we can store in n bits?
How many bits would be required to encode every letter of te alphabet in upper & lower case?
How many different colours could be stored if we encoded each colour in 8 bits?
2^8 = 256 colours
How many bits would we need to store each pixel if we needed 16 million different possible colours?
If every colours is represented by a total of 24 bits, how many different colurs can be stored in this way?
2^24 colours
What happens if you add 2 binary numbers together that result in a number bigger than 255?
It will need 9 bits - causing overflow
What is overflow?
How do you double a binary number?
"Multiply this binary number by 2
How can you check binary arithmetic?
Convert into denary
How do you divide a binary number by 2?
What is the smallest value you can hold in a nibble?
0000
What is the largest value you can hold in a nibble?
1111
What is hexadecimal?
Base 16
What is base 16?
A way of representing the decimal values 0-15 with a single digit
How is 0-15 represented in a single digit if we only have 0-9 numbers?
We use letters A-F to get up to 15
How do you convert from hexadecimal to denary?
Take the first number/letter and multiply it by 16, then add on the second number/letter
What is A-F in denary?
10,11,12,13,14,15
Convert 10 in hex to denary
Why do we use hex and not double digits in denary?
We needed to find a way to represent every group of 4 bits with a single digit (the largest number that u can store in 4 bits is 15 so we need to go up to 15)
Convert A7 to denary
How do you convert from hexadecimal to binary? Try A7
What are the advantages of hexadecimal?
What is hex used for?
When using hex, remember...
YOUR COMPUTER DOES NOT USE HEX, IT IS STILL STORED AS BINARY AND TAKES UP THE SAME AMOUNT OF SPACE IN MEMORY
What does ASCII stand for?
American Standard Code for information Interchange
How many bits does ASCII use per character?
7
How many different characters can be represented in the ASCII character set?
128 characters (0-127) (2^n - 2^7)
How are the character codes grouped and run?
"""7"" < ""9"" or ""7"" > ""9""?"
"""7"" < ""9"""
Why can't you calculate with numbers that are input as strings?
8 bits (so can represent 256 characters in total)
What do the extra characters in extended ASCII do?
They're used for characters from foreign languages and special symbols
What is unicode?
A character set which is the new standard for representing the characters of all the languages of the world
How many bits does unicode use per character?
Between 8, 16 or 32 bits per character
What are the advantages of unicode?
Why is unicode better than ASCII?
It can represent many more unique characters than ASCII because of the large no. of bits avaialble to store a character code
Does Unicode use any of the same codes as ASCII?
Yes, up to 127
What is a character set?
A character set is a list of characters that are recognised by the computer, along with the binary codes to represent them
Where do the ASCII capital letters start?
At 65
Where do the ASCII lowercase letters start?
At 97
What do you do to convert from upper to lowercase in ascii?
Add 32 to the ASCII code
If you are ever asked to calculate how many bits are needed to store a sentence in ASCII...
multiply the number of characters (including spaces) by 7
Although ASCII uses 7 bits per character....
Which characters are the same in ASCII and Unicode?
For compatibility reasons, and because ASCII came first, the first 128 UNICODE characters are the same as the ASCII characters.
Why is Unicode used?
Unicode is used because it enables the characters from all the worlds writing systems to be encoded
What is the disadvantage of Unicode?
It has a disadvantage in that files that include Unicode text will be bigger than files using ASCII. This is because UNICODE uses more bits for each character.
What is a pixel (picture element)?
What is a bitmap?
A set of bits that represents a graphical image, which each bit (or group of bits) corresponding to a pixel in the image
Photos taken with digital cameras are...
What is the resolution of an image?
The number of pizels in each dimension that can be displayed (usally represented as 2 numbers eg. 600 x 400)
For printers, the resolution is..
The number of pixels or dots per square inch that cna be printed (dpi)
What is the colour depth?
The number of bits used to encode the colour of each pizel
A higher colour depth will enable...
pictures with a larger range of colours to be encoded
How do you calculate the number of colours that can be represented with the colour depth?
What is each pixel represented by?
A binary code to represent the colour of the pixel
What is metadata?
The information about the image which is encoded within the bitmap file
What is included in the metadata?
If only 1 bit is used to encode each pixel...
The only colours will be black or white
The number of bits used to encode the colour of each pixel...
detemines the quality of the image
How is black/white represented in a bit?
1 (pixel on) for white and 0 (pixel off) for black
What is true colour?
The term used to describe a colour depth of 24 bits - giving 2^24 different colours
How many bits used to represent each component of the colour in true colour?
1 byte (8 bits) is used to represent each of the RGB components of the colour