This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
A piece of code must store whole numeric values between negative and positive 1,000,000. Which is the best data type to be used?
1,000,000
float
double
int
The code for a game needs to store lots of fractional values representing x, y, and z positions in a large 3D space. It will likely need to perform physics calculations for trajectories and so on. Absolute precision isn't required, but it's important that the program runs as efficiently as possible. Which data type is best?
decimal
Which of the following statements is true?
Reference types are stored in the stack.
Value types can only store numbers.
Use the new operator to create a new instance of a reference type and return its address to the variable.
new
You must answer all questions before checking your work.
Continue
Was this page helpful?