1.4.1 Data Types Flashcards
What is a bit?
Either a 1 or 0
We use bits to represent the two electronic states: on and off.
How many bits are in a byte?
8 bits in a byte
How many bits are in a nibble?
4 bits in a nibble
How many values can be represented with n bits?
2^n
How many bytes are in a kibibyte?
1024
What is the power of kibi?
2^10
What is the power of mebi?
2^20
What is the power of gibi?
2^30
What is the power of tebi?
2^40
What is the power of pebi?
2^50
What is the power of exbi?
2^60
What is the power of zebi?
2^70
What is the power of yobi?
2^80
What is a character set?
A collection of characters, each assigned a unique binary value
How many bits does ASCII use per character?
7
How many bits does extended ASCII use per character?
8
How many bits does UNICODE use to represent a character?
16
What’s the difference between UNICODE and ASCII?
ASCII only represents english characters whereas UNICODE represents all symbols even from other languages
What is a real/float?
Used to store decimal numbers and to store very large/small values
What is a character/char?
A single letter, number or special characters typically represented in ASCII
What is a string?
A collection of characters. Anything enclosed in quotation marks is a string
What is boolean/bool?
A boolean variable can only take the value TRUE or FALSE
What is an integer?
A whole number
What is casting?
The process of changing one data type into another