Data types Flashcards
What are data types?
Data types are application programs that can only process and store data appropriately if the data items are given the correct data type.
Name two types of data.
Anything from: String data type, number/numerical data type, currency data type, date/time data type, Boolean data type and arrays.
What is string data type?
the string data type consists of a string, or sequence of characters. A string can include the alphabetic letters (A to Z and a to z), numerals (0 to 9), punctuation and other symbols, such as @ or #.
What is numerical data type?
A numerical data type consists entirely of numbers (0 to 9), representing the digits of a number and possibly a single decimal point. There are two main types of numerical data: integer and real or decimal.
What is currency data type?
The currency data type consists of an amount of a specified currency whose value is usually displayed with a currency symbol, such as £ and two decimal places.
What is date/time data type?
The date/time data type consists of a real number representing a date alone, a time alone or a date and time.
What is Boolean data type?
The Boolean data type consists of the values True or False. They can be displayed as True/False, Yes/No or On/Off.
What is a data structure?
A data structure is a more complex data type that consists of a number of data items of one or more data types. A record of itself is a data structure, with its fields as the data items.
What is arrays data type?
An array is a data structure that consists of a number of data items of a single type. These data items are called the elements of the array.