Data Types Flashcards
What are the main data types?
String
Boolean
Integer
Float
What is a string?
Alphanumeric characters such as, hat and fg7yu7
What is boolean?
Relative of king julian
One of two values, true or false.
What is an integer?
Whole number value with no decimal part for eg 6, -12
What is a float?
Number with a decimal or fraction.
What is metadata?
Info about the image that allows the computer to interpret the stored binary accurately to reproduce the image. Must contain width and height in pixels and the colour depth in BPP (Bits per pixel).
What is colour depth?
The number of bits used for each dot or pixel. The more bits, the greater the number of colours that can be represented.
What is resolution?
The number of pixels per unit on a screen for example dpi (dots per inch).
What is sample rate in sound?
The number of times the sound is sampled per second, measured in Hz (100hz is 100 samples per second).
What is bit rate?
Number of bits per given time period available for each sample measured in kilobits. 128 kbits uses 128kilobits for each second of sampled sound.
What is a operator?
A binary pattern that represents a machine-level instruction, for example an instruction to add a value to the accumulator.
What is the operand?
The data part and contains either a value to be dealt with or the information needed to locate the data to be dealt with. For eg it might be the binary value for a location containing the data to be used.