SLR 13 Flashcards
Data Types
What are different data types used for?
Different data types takes up different amounts of memory,, so the correct data types must be used to optimise program performance
What is an integer?
A whole number
What is a Real/Float?
Any non-integer number
What is a Boolean?
True or False
What is a character?
Represents any alphanumerical symbols
What is a string?
Represents a collection of characters
What is a primitive data type?
Any basic data type provided by a language as a foundational building block
What does casting mean?
Changing a data type into another
How is data represented in RAM
Through 0s and 1s
How is data stored in a hard disk?
Through magnetism. 1 represents South and 0 represents North
How is data stored in optical media?
On a disk which is read using a laser
How is data stored in an SSD?
Uses electricity and electrons. 0s and 1s represent if electrons are trapped or not
What is Base 2?
Binary
What is base 10?
Denary
What is base 16?
Hexadecimal