What is the number of iterations in the following loop?
```
for (int i = 1; i < n; i++) {
// iteration
}
```
a. 2*n
b. n
c. n - 1
d. n + 1
c. n - 1
The loop is executed n – 1 times for i from 1 to n – 1. So, the correct answer is C.
Computer Science & Information Technology
You might also like to view...
If your computer is thrashing, increase ________ to solve the problem
Fill in the blank(s) with correct word
Computer Science & Information Technology
A technician would use the _____ command to troubleshoot a startup file the technician suspects is infected with malicious software
Fill in the blank(s) with correct word
Computer Science & Information Technology
RADIUS uses port 1812
Indicate whether the statement is true or false
Computer Science & Information Technology
Which category (CAT) of UTP cabling is the fastest?
A. CAT 3 B. CAT 5 C. CAT 5e D. CAT 6
Computer Science & Information Technology