What are the 5 basic data types?
Most modern computer languages recognize five basic categories of data types: Integral, Floating Point, Character, Character String, and composite types, with various specific subtypes defined within each broad category.
Most programming languages support various types of data, including integer, real, character or string, and Boolean.
There are 8: boolean , byte , char , short , int , long , float and double . These types serve as the building blocks of data manipulation in Java.
- Useless.
- Nominal.
- Binary.
- Ordinal.
- Count.
- Time.
- Interval.
Nominal data and ordinal data are the types of qualitative data or categorical data. Interval data and ratio data are the types of quantitative data which are also known as numerical data. Nominal Data are not measured but observed and they are unordered, non-equidistant, and also have no meaningful zero.
In this article, we explore the different types of data, including structured data, unstructured data and big data.
Data Type | Used for | Example |
---|---|---|
Integer | Whole numbers | 7, 12, 999 |
Float (floating point) | Number with a decimal point | 3.15, 9.06, 00.13 |
Character | Encoding text numerically | 97 (in ASCII, 97 is a lower case 'a') |
Boolean | Representing logical values | TRUE, FALSE |
Data types are divided into two groups: Primitive data types - includes byte , short , int , long , float , double , boolean and char. Non-primitive data types - such as String , Arrays and Classes (you will learn more about these in a later chapter)
The use of data types makes it possible to perform certain operations between several variables in programming. For each data type, certain calculations or transformations are defined, which can be executed with another variable of the same data type without problems.
Text Type: | str |
---|---|
Numeric Types: | int , float , complex |
Sequence Types: | list , tuple , range |
Mapping Type: | dict |
Set Types: | set , frozenset |
What are simple data types?
Simple data types represent a single value. Simple data types used to create policies: Integer. The integer data type represents a positive whole number or its negative value. Examples of integers are 0 , 1 , 2 , 3 and 4 . Float.
Data refers to raw information that consists of basic facts and figures. Computer data include different forms of data, such as numerical data, images, coding, notes, and financial data. Data can be categorized into two main types: analog data and digital data. Analog data is data transmitted in a continuous manner.

In computer science and computer programming, a data type (or simply type) is a set of possible values and a set of allowed operations on it. A data type tells the compiler or interpreter how the programmer intends to use the data.
Data types are classifications that identify possible values for and operations that can be done on the data, as well as the way the data in that field is stored in the database.
4 Types of Data: Nominal, Ordinal, Discrete, Continuous.
A data type is an attribute that specifies the type of data that the object can hold: integer data, character data, monetary data, date and time data, binary strings, and so on. SQL Server supplies a set of system data types that define all the types of data that can be used with SQL Server.
- String (or str or text). Used for a combination of any characters that appear on a keyboard, such as letters, numbers and symbols.
- Character (or char). Used for single letters.
- Integer (or int). Used for whole numbers.
- Float (or Real). ...
- Boolean (or bool).
Types of Data Types in C
Floating-point, integer, double, character. Union, structure, array, etc. The basic data types are also known as the primary data types in C programming.
The data type acts as an attribute that instructs a computer how to interpret it. Data types are fundamental in most, if not all programming languages. Data types are assigned to values to ensure the proper error-free function of that data.
There are two general types of data – quantitative and qualitative and both are equally important. You use both types to demonstrate effectiveness, importance or value.
What is primary data type?
Primary data types are also known as the fundamental data types because they are pre-defined or they already exist in the C language. All the other types of data types (derived and user-defined data types) are derived from these data types. Primary data types in C are of 4 types: int, char, float, and double.
- Data. •Data is a gathered body of facts. ...
- Types of Data. •Based on their mathematical properties, data. ...
- Nominal Data. •Nominal means name and count; data are. ...
- Ordinal Data. •Ordinal means rank or order. ...
- Interval (or Score/ Mark) Data. ...
- Ratio Data. ...
- Discrete and Continuous Data. ...
- Comparison of continuous and discrete.
Excel data types are the four different kinds of values in Microsoft Excel. The four types of data are text, number, logical and error.
In C programming, data types are declarations for variables. This determines the type and size of data associated with variables. For example, int myVar; Here, myVar is a variable of int (integer) type.
Character Types
Character data type allows its variable to store only a single character. The storage size of the character is 1. It is the most basic data type in C. It stores a single character and requires a single byte of memory in almost all compilers.