What does the first pass of selection sort do?

a. Splits the array into two approximately equal pieces.
b. Orders the first two elements of the array.
c. Partitions the array into two unequal pieces depending on whether each element in the array is greater or less that some pivot element.
d. Locates the smallest element in the array and swaps it into the zeroth position.

d. Locates the smallest element in the array and swaps it into the zeroth position.

Computer Science & Information Technology

You might also like to view...

Eachna is showing a new security intern the log file from a firewall. Which of the following entries would she tell him do not need to be investigated?

a. Suspicious outbound connections b. IP addresses that are being rejected and dropped c. Successful logins d. IP addresses that are being rejected and dropped

Computer Science & Information Technology

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

1. Pseudocode is a graphic depiction of an algorithm. 2. The value of a character-string constant is usually enclosed in either single or double quotes. 3. There is no ANSI-approved standard for pseudocode. 4. The statements Write A and Write “A” will always produce the same output. 5. A connector symbol is placed at the entry point of an IFTHENELSE control structure.

Computer Science & Information Technology