answersLogoWhite

0


Best Answer

Allows you to efficiently store data without waste

Allows you to write your application code without re-implementing standard data types

Allows code and subroutine parameters to be more expressive

User Avatar

Wiki User

11y ago
This answer is:
User Avatar
More answers
User Avatar

Wiki User

7y ago

Because not all data is the same or requires identical operations to manipulate it.

Each data type provides two things: a representation (or coding) for the data values & a set of operators and functions for manipulating these data values.

This answer is:
User Avatar

User Avatar

Wiki User

13y ago

To speed development of programs

and

To make code more easily understood

This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why do we have different type data types in computer languages?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

What are 3 different data types?

According to Wikipedia,"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-valued, 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.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."


Why is data type important?

All data is stored in a computer as 0s and 1s. In order to make this more efficient, certain sets of bits can mean different things depending on what the data type is. Some languages, such as Java, make sure the programmer doesn't confuse these types and mess up the data. However, other languages allow you to do things like multiply a string and an array. If you don't pay careful attention to data types, you can easily end up with useless data.


What are different types of data called?

Some different types of data are real-valued, integer, or Boolean. Boolean Data is data that represents true or false statements Fixed point data types are convenient for representing monetary values


What are the commonly used data types in programming languages?

Data types tell the compiler how many bytes will be allocated to the type and how those bytes will be interpreted. For instance, consider the following 64-bit value: 0100101001100001011011100111010101100001011100100111100100000000 In hexadecimal notation this would be written: 0x4a616e7561727900 But what does this value actually mean? Without knowing the type it's impossible to say. It could be any of the following: - a big-endian integer: 5,359,686,481,972,721,920 - a little-endian integer: 34,184,235,089,551,690 - a big-endian float: 2.03809e+050 - a little-endian float: 2.26484e-306 - a null-terminated string: "January" All of these are perfectly valid interpretations for the exact same binary sequence. So in order for the compiler to correctly interpret this binary sequence it has to know what data type is actually being represented by that sequence. If we tell it that the sequence is a string of 8 characters then the compiler will correctly interpret the value as the null-terminated string "January".


What are the Difference between primitive data types and wrapper classes?

A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.A primitive type is, in a way, built-in, in the language. This often includes different kinds of numbers, strings, and in some languages, dates and boolean. The other data type, other than primitive, is a compound, or user-defined, data type. For example, some languages allow the programmer to define compound data types, called a "struct" in C, or a "record" in Pascal, where the programmer can define (for example) a data of type point, consisting of x, y, and z coordinates. In object-oriented languages, these user-defined types are often defined as classes.

Related questions

What is data stored?

stored data is data that gets placed in different places on a computer but there is different types of stored data


What are 3 different data types?

According to Wikipedia,"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-valued, 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.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."


What data types are?

According to Wikipedia,"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-valued, 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.""Almost all programming languages explicitly include the notion of data type, though different languages may use different terminology. Common data types may include:integers,booleans,characters,floating-point numbers,alphanumeric strings."


What are the different types of memory areas for different programming languages?

Code (readable, executable) Constant data (readable) Variable data (readable, writeable)


What does data storage mean?

Data storage is the term for saving data by a computer or device. Different types of data storage work differently in a computing environment. Data storage is used to store data such as documented files, databases and for personal uses such as music and photos. Different types of data are stored in different places, depending on the type of data it is.


Pictures of different types of computers?

ComputersTypes | UsesPersonal computer / laptop ------ Home and office applicationsServer -------------------------------- Commercial use and data storageSuper computers -------------------- Military and weather forcasting


What different types of memory can hold a computer program?

two types of memory i.e. primary and secondary memory.


What is a database field format?

A database field format refers to the data type and structure used to define a specific field within a database table. It determines how data is stored, validated, and interpreted within that field, such as text, numbers, dates, or binary data. Common field formats include VARCHAR for variable-length text, INT for integers, and DATE for dates.


What are the different data types?

Theres two types of data, Continuous and discontinuous data.


Types of holographic data storage devices in Computer?

i want that holography data storage use in computer or not?


What type of graph is appropriate for a set of data?

Different types of graphs are appropriate for different types of data.


What does the ''Brain'' of the computer which processes the information is known as?

it's known as "CENTRAL PROCESSING UNIT" & it is a chip. it has different units to process different types of data