Question: Question 2 1 0 p t s If a variable needs to hold the following result out to 5 digits of precision, ( 3 .

Question 2
10pts
If a variable needs to hold the following result out to 5 digits of precision, (3.141592/2), what primitive data type would be best?
In order to be memory efficient, the double data type would be best.
In order to be memory efficient, the float data type would be best.
Since we are dividing by 2 this would cause integer division so the int data type would be best.
Since we are dividing by 2 this would cause integer division with a small result so the short data type would be best.
 Question 2 10pts If a variable needs to hold the following

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!