answersLogoWhite

0


Best Answer

Integers- Used to store Numbers

for example

Dim X As Integer

X = 10

lblDisplay.Text = "The Integer value store in the variable is" & x

User Avatar

Wiki User

12y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What data type would you use for the value 40?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

The data type of an item price?

I am assuming that the question is "What would the best data type to represent a price".Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.I hope this answers your question.


Would you explain diff between int and integer?

In Java, int is a primitive data type that is used to hold numeric values. for example an int variable can be used to hold your age in a Java program. Integer is the Wrapper class for the int data type. In Java there are a lot of in built features that work only on objects. under such circumstances we can wrap the primitive data type in its wrapper and use it. For example: int x = 10; Integer xObj = newInteger(x); if you want to know the value contained in xObj, then we use the method intValue(). xObj.intValue() would return the value 10 contained in it.


Which data type will you use to store names of 100 students?

char data type


Which data type can store any data?

There is no such data type. However, when we use user-defined data types of our own type, then that type of data can be stored in a variable. So as a term, you may say that user-defined data type can store any data. As the data-type used in any variable will be depending upon us.


What data type would you use for the value 12.231?

Double/Decimal- Used to store number with decimal placesFor ExampleDim a As Doublea = 12.64lblDisplay.Text = "The Double value store in the variable is" & aEnd Sub

Related questions

What is the use of variables in c language?

Variable is of any Data Type and Data Type can be defined as a type of value that a Variable will hold.............means which type of value you want to store, eg: fractional value (3.5454), whole value (3,76,3,67), character value (a,v,c,f,b,z) etc.......... So The Use the Variable is to store a value of any kind (some mentioned above)


What use of void data type in c plus plus?

doesn't return the value.


What is the use of header file stdbool.h?

stdbool header file use for a new data type that is boolean value


Suggest the data type that can be used for initializing alphanumeric elements in a c programmed array .Also tell you the compiler that can understand the data type.?

Data Type : - It is used to identify the type of data. 'C' Language has a large no of data type, Thus it is also known by rich data type language: Data type are generally classified in three group: 1: Fundamental data type 2 Derived Data Type : 3 Use defined data type; 1 Fundamental data type: Fundamental data type includes i) The int data type: The data type int can store integer value only for eg. 14, 45, 78 declaration: int a,b; here we can store any value in variable a & b. ii) Char Data Type : The data type char can store character value only which is enclosed with single quote for e.g. 'c' declaration : char x = 'c' iii) Float Data Type:


What type of data would you use a circle graph show?

percentages


What is implicit and explicit data type conversion in C programming?

Implicit data type conversion happens automatically by the compiler when a value is assigned to a different data type. Explicit data type conversion, on the other hand, is done by the programmer using type casting to convert a value from one data type to another. It gives the programmer control over how the conversion is done.


What type of graph is best to use to organize numerical data based on their digits to compare value?

Stem and leaf plot


What is the definition of datatypes in programming?

A data type defines how data is represented. All data is obviously represented by a sequence of binary values, however, the data type determines how that value is to be interpreted by the language compiler. Object oriented programming languages use classes to define data types, which not only defines the representation of data but also which operations are valid for the type.


Would you use mean mode median to average the points?

mean is the average of numbers in the data set mode is the most frequently occurring value in a data set and median is the middle number of the data set so you would use mean


The data type of an item price?

I am assuming that the question is "What would the best data type to represent a price".Although this is open for debate, in Java I think that the best data type for a price is double and the best data type in C# to be decimal.I hope this answers your question.


What type of graph would you use for comparing 2 similar kinds of data?

It depends on the kind of data you have, but a scatter plot or bar graph would be best.


Would you explain diff between int and integer?

In Java, int is a primitive data type that is used to hold numeric values. for example an int variable can be used to hold your age in a Java program. Integer is the Wrapper class for the int data type. In Java there are a lot of in built features that work only on objects. under such circumstances we can wrap the primitive data type in its wrapper and use it. For example: int x = 10; Integer xObj = newInteger(x); if you want to know the value contained in xObj, then we use the method intValue(). xObj.intValue() would return the value 10 contained in it.