2
Most read
9
Most read
Data Types
Classification Of Information
What is Data Type ?
For humans in their daily life it is easy to distinguish among different types of data they
come across eg. if number is a percentage or a time, or a weight, or an amount of
money. We do this through special symbols like %, :,kg, and $ that indicate the type of
information we are referring to Similarly, a computer program needed special internal
codes to keep track of the different types of data it is interacting with .
In computer science and computer programming, a data type or simply type is a classification identifying one of
various types of data, such as real, integer or Boolean, that determines the possible values for that type, the
operations that can be done on values of that type, the meaning of the data, and the way values of that type can be
stored “Wikipedia”
What purpose they Solve ?
In real Life we come across multiple type of statistical values like fractional data,count
data,positive or negative data,categorical data,lists,words,alphabets,matrices.
In a software code we define interfaces between different parts of a software code to be
connected in a consistent way to interact with such informations or data and to interchange
among themselves.
The consistency gets evaluated(Type Enforcement) strategically either at compile time or
at runtime of the code. With a consistent(the possible values for that type, the operations that can be
done on values of that type) data types structs makes life alot easier for a software developer to
stay aligned with the Type safety.
Type Enforcement
Type Enforcement is closely related to the Access control of the operating Systems which
can be defined as the selective restriction in turn it allows the code to access the memory
locations it is authorized to access.
For example :
an object can not read values from other objects private members.
Type Safety
Well-typed programs cannot "go wrong” Robin Miller
The behaviors classified as type errors by a given programming language are usually those that result from attempts
to perform operations on values that are not of the appropriate data type. “Wikipedia”
Type safety a restriction on the ability to copy arbitrary bit patterns from one memory
location to another . That may cause buffer overflow and dangling pointers .
Think if we could allow an arbitrary integer to be used as
a pointer
catastrophic
failure
Classification Of Data Types
Primitive Data Types Composite Data Types
Data Types
Primitive Data Types
Characters,Integers, Floating point Numbers,Fixed Point Numbers ,Booleans, Characters,
Strings, References, Tuples,List,Complex Numbers,Functions,Rational Numbers.
A basic type is a data type provided by a programming language as a basic building block. Most languages allow
more complicated composite types to be recursively constructed starting from basic types.
A built-in type is a data type for which the programming language provides built-in support.
“Wikipedia”
Composite Data Types
An array stores a number of elements of the same type in a specific order.
Record ,tuple or struct is a value that contains other values, typically in fixed number
and sequence and typically indexed by names.
Union. A union type definition will specify which of a number of permitted primitive
types may be stored in its instances, e.g. "float or long integer". Contrast with a
record, which could be defined to contain a float and an integer; whereas, in a union,
there is only one type allowed at a time.
A tagged union (also called a variant, variant record, discriminated union, or disjoint
union) contains an additional field indicating its current type
A set is an abstract data structure that can store certain values, without any particular
order, and no repeated values.
An object contains a number of data fields, like a record, and also a number of
subroutines for accessing or modifying them, called methods.
“Wikipedia”

More Related Content

PPTX
DATATYPE IN C# CSHARP.net
PPTX
Data types
PPTX
Computer data type and Terminologies
PPSX
Data type
PPT
C++ data types
PPTX
Basic Data Types in C++
PPTX
Concept Of C++ Data Types
 
PPTX
C data types, arrays and structs
DATATYPE IN C# CSHARP.net
Data types
Computer data type and Terminologies
Data type
C++ data types
Basic Data Types in C++
Concept Of C++ Data Types
 
C data types, arrays and structs

What's hot (20)

PPTX
Data types
PPTX
Data types in c++
PPTX
Variables in C++, data types in c++
PPTX
data types in C programming
PPTX
Concept of c data types
PPT
Lect 9(pointers) Zaheer Abbas
PPTX
Data types
PPTX
PPT
3 data-types-in-c
PPTX
Data types in C
PPTX
Data types in C
PPT
Java: Primitive Data Types
PPTX
Java Data Types
PPT
User defined data type
PPTX
Data types in C language
PPTX
Data Types and Variables In C Programming
PPTX
Variables and data types in C++
PPTX
Datatype in c++ unit 3 -topic 2
PPT
constants, variables and datatypes in C
PPT
Primitive data types
Data types
Data types in c++
Variables in C++, data types in c++
data types in C programming
Concept of c data types
Lect 9(pointers) Zaheer Abbas
Data types
3 data-types-in-c
Data types in C
Data types in C
Java: Primitive Data Types
Java Data Types
User defined data type
Data types in C language
Data Types and Variables In C Programming
Variables and data types in C++
Datatype in c++ unit 3 -topic 2
constants, variables and datatypes in C
Primitive data types
Ad

Similar to Data Types (20)

PPT
Data structures and Alogarithims
PDF
New open document text (2)
PPTX
Data types
PPTX
Different types of sorting used in programming.pptx
PPT
Basics of data structure
PPTX
Database Concepts
PPTX
Database Concepts in Research Methodology .pptx
PPTX
Types in .net
DOCX
Primitive data types
PPT
Datamining
PDF
Synthesys Technical Overview
PDF
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II
PPTX
Object oriented database concepts
DOCX
Data
PPTX
DATA TYPES IN C Language.pptx
PDF
Programming in Civil Engineering_UNIT 2_NOTES
PDF
Graph-based Approaches for Organization Entity Resolution in MapReduce
PPTX
7.type system
PDF
Angels_in_our_Midst
Data structures and Alogarithims
New open document text (2)
Data types
Different types of sorting used in programming.pptx
Basics of data structure
Database Concepts
Database Concepts in Research Methodology .pptx
Types in .net
Primitive data types
Datamining
Synthesys Technical Overview
Unit i data structure FYCS MUMBAI UNIVERSITY SEM II
Object oriented database concepts
Data
DATA TYPES IN C Language.pptx
Programming in Civil Engineering_UNIT 2_NOTES
Graph-based Approaches for Organization Entity Resolution in MapReduce
7.type system
Angels_in_our_Midst
Ad

Recently uploaded (20)

PPTX
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
PDF
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
PDF
Java Basics-Introduction and program control
PPTX
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
PPT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
PDF
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
PPTX
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
PPTX
Information Storage and Retrieval Techniques Unit III
PPTX
Management Information system : MIS-e-Business Systems.pptx
PDF
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
PPTX
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
PPTX
"Array and Linked List in Data Structures with Types, Operations, Implementat...
PPTX
Amdahl’s law is explained in the above power point presentations
DOC
T Pandian CV Madurai pandi kokkaf illaya
PPTX
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
PDF
Computer organization and architecuture Digital Notes....pdf
PPTX
Measurement Uncertainty and Measurement System analysis
PDF
August -2025_Top10 Read_Articles_ijait.pdf
PPTX
Feature types and data preprocessing steps
PPTX
wireless networks, mobile computing.pptx
CN_Unite_1 AI&DS ENGGERING SPPU PUNE UNIVERSITY
Unit I -OPERATING SYSTEMS_SRM_KATTANKULATHUR.pptx.pdf
Java Basics-Introduction and program control
A Brief Introduction to IoT- Smart Objects: The "Things" in IoT
Chapter 1 - Introduction to Manufacturing Technology_2.ppt
LOW POWER CLASS AB SI POWER AMPLIFIER FOR WIRELESS MEDICAL SENSOR NETWORK
AUTOMOTIVE ENGINE MANAGEMENT (MECHATRONICS).pptx
Information Storage and Retrieval Techniques Unit III
Management Information system : MIS-e-Business Systems.pptx
UEFA_Carbon_Footprint_Calculator_Methology_2.0.pdf
Sorting and Hashing in Data Structures with Algorithms, Techniques, Implement...
"Array and Linked List in Data Structures with Types, Operations, Implementat...
Amdahl’s law is explained in the above power point presentations
T Pandian CV Madurai pandi kokkaf illaya
Chemical Technological Processes, Feasibility Study and Chemical Process Indu...
Computer organization and architecuture Digital Notes....pdf
Measurement Uncertainty and Measurement System analysis
August -2025_Top10 Read_Articles_ijait.pdf
Feature types and data preprocessing steps
wireless networks, mobile computing.pptx

Data Types

  • 2. What is Data Type ? For humans in their daily life it is easy to distinguish among different types of data they come across eg. if number is a percentage or a time, or a weight, or an amount of money. We do this through special symbols like %, :,kg, and $ that indicate the type of information we are referring to Similarly, a computer program needed special internal codes to keep track of the different types of data it is interacting with . In computer science and computer programming, a data type or simply type is a classification identifying one of various types of data, such as real, integer or Boolean, that determines the possible values for that type, the operations that can be done on values of that type, the meaning of the data, and the way values of that type can be stored “Wikipedia”
  • 3. What purpose they Solve ? In real Life we come across multiple type of statistical values like fractional data,count data,positive or negative data,categorical data,lists,words,alphabets,matrices. In a software code we define interfaces between different parts of a software code to be connected in a consistent way to interact with such informations or data and to interchange among themselves. The consistency gets evaluated(Type Enforcement) strategically either at compile time or at runtime of the code. With a consistent(the possible values for that type, the operations that can be done on values of that type) data types structs makes life alot easier for a software developer to stay aligned with the Type safety.
  • 4. Type Enforcement Type Enforcement is closely related to the Access control of the operating Systems which can be defined as the selective restriction in turn it allows the code to access the memory locations it is authorized to access. For example : an object can not read values from other objects private members.
  • 5. Type Safety Well-typed programs cannot "go wrong” Robin Miller The behaviors classified as type errors by a given programming language are usually those that result from attempts to perform operations on values that are not of the appropriate data type. “Wikipedia” Type safety a restriction on the ability to copy arbitrary bit patterns from one memory location to another . That may cause buffer overflow and dangling pointers . Think if we could allow an arbitrary integer to be used as a pointer catastrophic failure
  • 6. Classification Of Data Types Primitive Data Types Composite Data Types Data Types
  • 7. Primitive Data Types Characters,Integers, Floating point Numbers,Fixed Point Numbers ,Booleans, Characters, Strings, References, Tuples,List,Complex Numbers,Functions,Rational Numbers. A basic type is a data type provided by a programming language as a basic building block. Most languages allow more complicated composite types to be recursively constructed starting from basic types. A built-in type is a data type for which the programming language provides built-in support. “Wikipedia”
  • 8. Composite Data Types An array stores a number of elements of the same type in a specific order. Record ,tuple or struct is a value that contains other values, typically in fixed number and sequence and typically indexed by names. Union. A union type definition will specify which of a number of permitted primitive types may be stored in its instances, e.g. "float or long integer". Contrast with a record, which could be defined to contain a float and an integer; whereas, in a union, there is only one type allowed at a time.
  • 9. A tagged union (also called a variant, variant record, discriminated union, or disjoint union) contains an additional field indicating its current type A set is an abstract data structure that can store certain values, without any particular order, and no repeated values. An object contains a number of data fields, like a record, and also a number of subroutines for accessing or modifying them, called methods. “Wikipedia”