Advertisements

Tuesday, October 30, 2018

What is Data | Data Representation | Basic Data Types

Representation of Data/Information



What is Data?
        As you learned earlier, data refers to the symbols that can be name, a number, etc. Data are isolated values or raw facts, which by themselves have no much significance. Information is processed, manipulated and interpreted data. It is created by defining and organizing relationship among various kind of data.


What is Data Representation?
        Data representation refers to the form in which data is stored, processed and transmitted. It also refers to the methods used internally to represent information stored in a computer. Computer can store lots of different type of information such as numbers, text, graphic, sound, etc.

Basic Data Types
        "Data type is a term that is used to show the kind of data values or the type of data that is expected to be handled."
          A data type is a classification of the data type of data that a variable can hold in computer programming.

  • Integer Data Type: Integer id the whole number having different storage range supported by particular machine. Integer data type is used to store whole number using different memory spaces. Integer has no fractional parts. Integer can be positive or negative. Generally an Integer takes 2 bytes in memory and the range of values is form -32768 to +32767.
  • Character Data Types: The character data type is used to store the alphanumeric character. If a character from this set is stored in a character, requires only one byte of memory to save. Size of char in 1 byte, the range of values is form -128 to +127.
  • Float Data Type: The number having fractional part is a floating point number. The decimal point signals that it is a floating point number not an integer. Floating point number are represented by using float keyboard. Floating point numbers are used for measurable quantities like distance, area, temperature, etc. and typically have fractional parts. It represent real numbers. It occupies 4 bytes of memory.
  • Double data Type: This data type is used for double precision floating point numbers. Double data type occupies twice as much memory as type float and stores floating point numbers with much larger range and precision. It is used when float type it too small or insufficiently precise. The size of double type variable is 8 bytes.
  • Void Data Type: This data type is used for empty set of values. Also, it is used as the return type for functions, which do not return any value. No object of type void may be declared