Answer the following statements true (T) or false (F)

1. You can optionally initialize a List object when you declare it.
2. Each item stored in a List has a corresponding index.
3. You can use subscript notation to access items in a List, just as you can with an array.
4. An exception will occur if a List index is less than 0 or greater than the List’s Count property minus 1.
5.The only requirement for using a binary search is that the values in the array must be sorted in ascending or descending order.








1. TRUE
2. TRUE
3. TRUE
4. TRUE
5. TRUE

Computer Science & Information Technology

You might also like to view...

Write a statement that prints the 8th character of a String object called introduction.

What will be an ideal response?

Computer Science & Information Technology

Write an application that allows users to add appointments to an appointment book that uses the Java Speech API (Fig. 28.18). When the user clicks the Add JButton, the application adds the name, time and date of the appointment to three ArrayLists, respectively. When the user clicks the Get Appointments JButton, the application speaks the time and date of the appointment that the user has with that person.


a) Copying the template to your working directory. Copy the C:Examples Tutorial28ExercisesAppointmentBook directory to your C:SimplyJava direc- tory.
b) Opening the template file. Open the AppointmentBook.java file in your text editor. c) Importing the Java Speech API packages. Import the javax.speech and the
javax.speech.synthesis packages.
d) Declaring instance variables. At line 48, declare three instance variables of type ArrayList to store the date, time and person with which the user has an appoint- ment. Declare an instance variable of type Synthesizer, which will be used to speak text.
e) Creating a Synthesizer object. Inside the AppointmentBook constructor, create a
Synthesizer object, allocate the resource and get the synthesizer ready to speak.
f) Adding code to the addJButtonActionPerformed method. Find the addJButtonAc- tionPerformed method, which immediately follows createUserInterface. Add code to the addJButtonActionPerformed metho

Computer Science & Information Technology

The tools on the Ink Tools ____ tab are available only for touchscreens and screens that allow the use of a stylus to write.

A. Pen B. Pencil C. Write D. Annotate

Computer Science & Information Technology

Answer the following statement(s) true (T) or false (F)

For target drives, use only recently wiped media that have been reformatted and inspected for computer viruses.

Computer Science & Information Technology