double variables store integers with larger magnitude and finer detail ouble var
ID: 3726008 • Letter: D
Question
double variables store integers with larger magnitude and finer detail ouble variables store numbers with larger magnitude and finer detail double variables store numbers with smaller magnitude and coarser detail 16. What is the difference between a sleat and a double? a c. numbers d. double variables store integers and float variables store floating-point 17. Which of the following is not an algorithm? a. A recipe b. Operating instructions c. Shampoo instructions (lather, rinse, repeat) d. Textbook index 18. Which of the following is not a control structure? a. Declaration structure b. Sequence structure c. Selection structure d. Repetition structure 19. What type of methods allows a client of a class to assign values to a private instance variable? a. Get methods b. Replace methods c. Assign methods d. Set methods 20. What is the default initial value of a String instance variable? a. b. null c. "default" d. default 21. A default constructor has how many parameters? a. c. 2 d. a variable number 22. Which two Java primitive types store floating-point numbers? a. decimal and float b. point and double c. float and double d. decimal and pointExplanation / Answer
16) What is the difference between a float and a double?
Answer: b. double variables store numbers with larger magnitude and with finer detail.
Magnitude means that double can store numbers more than float and can store more precision decimal digits, thus finer detail.
17) Which of the following is not an algorithm?
Answer:
d. Textbook index is a not a process and thus not an algorithm. While the rest are algorithms as they follow a process.
18) Which of the following is not a control structure?
Answer: d. Repetition structure is not a control structure
19) What type of methods allows a client of a class to assign values to a private instance variable?
Answer: d. Set methods allow the client of a class to assign values to a private instance variable.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.