Answer the following statements true (T) or false (F)
a) To refer to a particular location or element within an array, we specify the name of the array and the value of the particular element.
b) An array declaration reserves space for the array.
c) To indicate that 100 locations should be reserved for integer array p, you write the declaration
d) An application that initializes the elements of a 15-element array to zero must contain at least one for statement.
e) An application that totals the elements of a two-dimensional array must contain nested for statements.
a) False. The name of the array and the index are specified. ANS: False. Arrays must be dynamically allocated with new in Java. p[100];
b) False. The correct declaration is int p[] = new int[100];
c) False. Numeric arrays are automatically initialized to zero. Also, a member initializer list can be used.
d) False. It is possible to total the elements of a two-dimensional array with nested while
statements, nested do…while statements or even individual totaling statements.
You might also like to view...
The ____ is the person who is ultimately responsible for ensuring that the products and services that are purchased by the IT function are trustworthy.
A. security architect B. CISO C. CIO D. security engineer
Special programs that facilitate communication between a device and the OS are called
a. APIs. b. device drivers. c. utility programs. d. hardware player.
When creating a table, a user should keep a record to a single instance of each set data that is broken down into its smallest usable parts called ________
Fill in the blank(s) with correct word
You have inherited a database with several macros. Explain why attaching macros to command buttons is a superior way to run a macro as compared to running it from the Database Tools tab on the Ribbon.
What will be an ideal response?