Data Flashcards
what is a character set?
a character set is a table that matches together a character and a binary value
what are the two common character sets?
ASCII and unicode
why are character sets necessary?
they allow computers to exchange data
Describe 3 differences between ASCII and unicode?
ASCII
- uses binary
- tiny set of characters
- less memory required per character
Unicode
- uses hexadecimal
- large set of characters
- more memory required per character
what does ASCII stand for?
American standard code for information interchange
how many different data types are there?
5
what is a character ?
give an example
a single character , such as a letter, number, punctuation or symbol
e.g. T 8 ?
what is a string?
give an example
a sequence of characters, including letters, numbers and punctuation
e.g. harry styles
14:50 pm
cinderella 2
what is an integer?
give an example
a whole number
e.g. 475
-84
10
what is a real?
give an example
a decimal number
- 5.21
0. 01345
what is a boolean?
give an example
an answer that only has two possible values
true/false
yes/no
0/1
what data type are telephone numbers stored as ?
string
what are the two main type of graphics used in a computer system?
raster (aka bitmap)
vector
describe 3 differences between raster(bitmap) and vector images
give examples
Raster
- made up of a grid of pixels
- if scaled to a larger size, image loses image quality
- generally larger in size as data is stored for each pixel
e. g. photographs and screenshots
Vector
- use objects (lines and shapes) to mathematically form shapes
- if scaled to a larger size, does not lose any image quality
- generally smaller in file size
e. g. logos and cartoons
formula to calculate file size
file size = resolution x colour depth