For a list of length n, selection sort makes ____ item assignments.
A. n(n - 1)/2
B. 3(n - 1)
C. 3(n)
D. 4(n + 1)
Answer: B
Computer Science & Information Technology
You might also like to view...
Header & Footer Elements do NOT include which of the following?
A) Workbook Name B) Current Date C) File Name D) Current Time
Computer Science & Information Technology
Write a single C++ statement to accomplish each of the following (assume that neither using declarations nor a using directive have been used):
Declare the variables c, thisIsAVariable, q76354 and number to be of type int (in one statement) and initialize each to 0.b) Prompt the user to enter an integer. End your prompting message with a colon (:) fol- lowed by a space and leave the cursor positioned after the space.
Computer Science & Information Technology