Data Types
1. Give a definition and an example of each of the following data types: characters, integers, floating point numbers, strings and Booleans. Characters- Integers- Floating point numbers- Strings- Booleans- 2. Find out as many different computer data types (note: not file types!) as you can, and give descriptions and examples of these too. Long-
Information that relates to symbols. This also includes letters and numbers.
Any whole number is considered an integer. The integer can be a negative or positive number (-2 and 5). Fractions and decimal numbers (1/2 and 0.5) are not integers.
A string of digits that represents a real number. It is equivilant to the scientific notation but on the computer. The floating point numbers are measured in megaflops and gigaflops. Examples of floating point numbers are 0.0000895236 and 343248.0343. No matter how big or small the number is it is still considered a floating point number if it has alot of digits in the number.
A series of symbols, characters and words that came from predetermined set. If Σ = 73 then 737373737373 is a string over Σ.
A datatype that has true and falso as the only two values. Ada is an example of this:
…
if p then
…
end if;
A computer data type that can store more than 32768 bits.
December 10, 2007