A(n) ____ sort causes a pass through the array to compare adjacent pairs of items.

A. selection
B. insertion
C. bubble
D. binary


Answer: C

Computer Science & Information Technology

You might also like to view...

Which of the following describes an AnchorPane?

a. Enables you to set the position of child nodes relative to the pane’s edges. Resizing the pane does not alter the layout of the nodes. b. Includes five areas—top, bottom, left, center and right—where you can place nodes. The top and bottom regions fill its width and are vertically sized to their children’s preferred heights. The left and right regions fill its height and are horizontally sized to their children’s preferred widths. The center area occupies all of its remaining space. You might use the different areas for tool bars, navigation, a main content area, etc. c. Lays out nodes consecutively—either horizontally or vertically. When the boundary for the pane is reached, the nodes wrap to a new line in a horizontal pane or a new column in a vertical pane. d. Creates a flexible grid for laying out nodes in rows and columns.

Computer Science & Information Technology

A case statement may be used instead of:

a. a group of nested decisions. b. a group of sequential decisions. c. a loop. d. initialization. e. None of the above.

Computer Science & Information Technology

Given the following array declaration, what is the value stored in the scores[1][1] element? ? int scores[3][3] = { {1, 2, 3} }; ?

A. 0 B. 1 C. 2 D. 3

Computer Science & Information Technology

What is the code contained between a function's opening and closing braces known as?

A. header B. body C. return D. comment

Computer Science & Information Technology