Describe two advantages to using arrays to store data.
What will be an ideal response?
1. It's easier and more efficient to treat related variables in an application as a group.
2. After the data is entered into an array, which is typically done at the beginning of a program, the program can use the data as many times as necessary without having to enter the data again.
You might also like to view...
When writing documentation comments for a method, you can provide a description of each parameter by using a __________.
a. comment tag b. doc tag c. param tag d. return tag
The fact that class Graphics is abstract contributes to Java’s portability because ________.
a. drawing is performed differently on every platform that supports Java. A subclass of Graphics must be created that uses the drawing capabilities of the current platform. b. objects of non-abstract classes can only be instantiated on the Windows platform. c. drawing should not be performed on non-Linux platforms. d. Class Graphics is not abstract.
Match the following terms to their meanings:
I. ROUND A. A function that rounds a number up or down to the number II. TODAY of digits indicated in the function III. ROUNDDOWN B. A function that rounds a number up away from zero to the IV. YEARFRAC number of digits indicated V. ROUNDUP C. A function that calculates the total number of years between two dates, including a fraction of a year D. A function that rounds a number down toward zero to the number of digits indicated E. A function that returns the current date
How many of the current suppliers do not provide food items to the resort and spa? How could the chef use this information?
What will be an ideal response?