Unit 6 Data Types Flashcards
What are Primitive Data Types?
A set of basic data types from which all other data types are constructed
What is an Integer?
A whole number
What is a Float?
A decimal number
What is a Boolean?
True or false
What is a Character?
A letter, number, or special symbol
What is a String?
Anything enclosed in quote marks
Are all Data Types held in Binary?
Yes
How many digits does the Binary System use?
Two, 0 and 1
What many digits does the Denary/Decimal System use?
Ten, 0 - 9
What does it mean when Number Systems are referred to by their Base?
Base refers to how many symbols are used to construct values
What Base is Denary?
Base 10
What Base is Hexadecimal?
Base 16
What Base is Binary?
Base 2
How does Hexadecimal use letters?
It uses letters for the values 10 to 15
Why are Hexadecimal Numbers used? (5)
- Easier to read than binary
- Quicker to type
- Less chance of making an error when typing compared to binary
- Used to define colours
- Easy to convert to and from binary