Invoking _________ returns the first element in an ArrayList x.

a. x.first()
b. x.get(0)
c. x.get(1)
d. x.get()


b. x.get(0)

Computer Science & Information Technology

You might also like to view...

Which line in the following program will cause a compiler error?

``` 1 #include 2 using namespace std; 3 4 int main() 5 { 6 const int MY_VAL = 77; 7 MY_VAL = 99; 8 cout << MY_VAL << endl; 9 return 0; 10 } ``` a. line 6 b. line 7 c. line 8 d. line 9 e. there will be no compiler error

Computer Science & Information Technology

Consider the code segment below. Which of the following statements is false?

``` int[] g; g = new int[23]; ``` a. The value of g[3] is -1. b. The first statement declares an array reference. c. The second statement creates the array. d. g is a reference to an array of integers.

Computer Science & Information Technology

A distance-vector protocol sends updates to its neighbors that include the entire contents of its routing table.

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

Computer Science & Information Technology

After your invitation is accepted in LinkedIn, you can click the Contacts menu and then click ________ to see information about your contacts.

a. New People b. My Contacts c. My Connections d. My Profile

Computer Science & Information Technology