Constants, variables and data types Flashcards
What are “real” values
These contain numerical data in decimal form
If possible integer is used for processing speed and storage
What is Boolean
Logical operator, resents value true or false
What is a string
Text data type and can hold alphanumeric characters, can’t do math when stored in a string
What is source code
Original instruction
What does a compiler do
Reads the source code and outputs it to machine code
What are variables
In computer programming variables are data entities whose values can be altered when program is compiled
When do we use arrays
We can use an array which can store as many items as your acquire using a single variable. all the items must be of the same data type
What are constants
Constants are data entities the value of which cannot change during a programmes execution.
What are integers
Whole numbers, positive, negative and zero