Which line must be changed to sort the other way?

```
1. function bubbleIt(A, B)
2. {
3. var flag = 0; var temp = 0;
4. while (flag == 0)
5. {
6. flag = 1;
7. for (var count = 0; count <= (A – 2); count++)
8. {
9. if(myArray[count] < myArray[count + 1])
10. {
11. temp = myArray[count];
12. myArray[count] = myArray[count + 1];
13. myArray[count + 1} = temp;
14. flag = 0;
15. }
16. }
17. }
18. }
```

a. 4
b. 7
c. 9
d. lines 11 - 13


b. 7

Computer Science & Information Technology

You might also like to view...

JavaScript uses _______ dates.

Fill in the blank(s) with the appropriate word(s).

Computer Science & Information Technology

Match the following symbols with their descriptions:

I. [ ] II. ( ) III. { } IV. < > A. Curly brackets B. Square brackets C. Angle brackets D/ Parentheses

Computer Science & Information Technology

If a Cisco Gigabit Ethernet port is connected to a device that does not support IEEE autonegotiation, and the interface speed cannot be sensed, what speed is the interface defaulted into?

A) 1 Gbps B) 10 Mbps C) 100 Mbps D) None; the port is shut down

Computer Science & Information Technology

Intelligent searching involves applying some ____ to evaluate the differences between the present state and the goal state, and to move us to a new state that minimizes those differences.

A. heuristic B. brute force C. swarm intelligence D. back propagation

Computer Science & Information Technology