Data Types and Structures Flashcards
What are the 6 most common types of variables?
Integer, Real/Float/Single, String, Character, Boolean and Array.
What is stored in an integer variable?
A whole number. (positive or negative)
What is stored in a real/float/single variable?
A number which has a decimal place. (although whole numbers can also be stored)
What is stored in a string variable?
Any text.
What is stored in a character variable?
A single character.
What is stored in a boolean variable?
One of two options, for example yes or no.
What is stored in an array?
Lists of variables. These are identified as an array will have a square bracket with a number or loop inside it afterwards as shown.
put it into arrayname[3]
What does float stand for?
Floating Point Number.