The code that will swap the first two elements of an array called friends is:
a) friends[0] = friends[1];
friends[1] = friends[0];
b) temp = friends[1];
friends[2] = friends[1];
friends[1] = temp;
c) temp = friends[0];
friends[1] = friends[0];
friends[0] = temp;
d) temp = friends[0];
friends[0] = friends[1];
friends[1] = temp;
d) temp = friends[0];
friends[0] = friends[1];
friends[1] = temp;
You might also like to view...
Processes use semaphores
A. to send small integer values to each other B. to coordinate access to shared resources
Answer the following statements true (T) or false (F)
1. The value of count is 0; limit is 10. Evaluate: count == 0 && limit < 20 2. The value of count is 0; limit is 10. Evaluate: (count != 0)||(limit < 20) 3. In a while loop, the Boolean_Expression is executed before each execution of the loop body. 4. In a do-while loop, a continue statement terminates the loop. 5. A break statement is used in loops only.
The default format that Excel applies to numbers is the:
a. comma format b. accounting format c. general format
Which of the following is NOT an area in the Fields areas?
A) FILTERS B) COLUMNS C) ROWS D) LIST