Þessi vafri er ekki lengur studdur.
Uppfærðu í Microsoft Edge til að nýta þér nýjustu eiginleika, öryggisuppfærslur og tæknilega aðstoð.
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.
Var þessi síða gagnleg?
Þarftu hjálp með þetta efni?
Viltu prófa að nota Ask Learn til að skýra eða leiðbeina þér í gegnum þetta efni?