Which data type should you use?

You are creating the necessary variables for an application. The data you will store in these
variables has the following characteristics:
Consists of numbers
Includes numbers that have decimal points
Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?

You are creating the necessary variables for an application. The data you will store in these
variables has the following characteristics:
Consists of numbers
Includes numbers that have decimal points
Requires more than seven digits of precision
You need to use a data type that will minimize the amount of memory that is used.
Which data type should you use?

A.
decimal

B.
double

C.
byte

D.
float

Explanation:
The double keyword signifies a simple type that stores 64-bit floating-point values.
Precision: 15-16 digits
Incorrect:
Not D: The float keyword signifies a simple type that stores 32-bit floating-point values.
Precision: 7 digits



Leave a Reply 0

Your email address will not be published. Required fields are marked *