You can access the items in an ArrayList in ____ time, using the set() and get() methods.

A. constant
B. logarithmic
C. linear
D. quadratic


Answer: A

Computer Science & Information Technology

You might also like to view...

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

1. In the following code fragment, x has the value of 3. int x = 3; 2. The body of a do-while loop always executes at least once. 3. The body of a while loop may never execute. 4. The opposite of (x >3 && x < 10) is (x < 3 && x > 10) 5. The integer 0 is considered true.

Computer Science & Information Technology

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

1. Unlike earlier versions of Microsoft Windows, the Windows XP graphical user interface does not incorporate a command line shell comparable to the MS-DOS user interface. 2. The standard Windows user interface is called the desktop. 3. The Windows Start button allows you to access a series of menus that lead to your system’s application programs, key data folders, and numerous support functions. 4. The Windows taskbar holds a button for each currently active program. 5. The Windows taskbar holds a button for each currently active program.The Windows notification area holds a button for each currently active program.

Computer Science & Information Technology

Choose statements to complete function printDigits so that it prints the digits of a positive integer in their normal left-to-right order separated by two asterisks.

``` void printDigits (int n) { if (n > 0) { ___________________ ___________________ } return; } a.printDigits (n / 10); cout << n % 10 << "**"; b. printDigits (n % 10); cout << n / 10 << "**"; c. cout << n % 10 << "**"; printDigits (n / 10); d. cout << n / 10 << "**"; printDigits (n % 10); e. This function cannot perform the task required. ```

Computer Science & Information Technology

Linux is an example of a(n) ____.

A. operating system B. computer platform C. GUI D. handheld device

Computer Science & Information Technology