CSC300: What's the result? [11/13] Previous pageContentsNext page

01
02
03
04
05
    for (long i = 4; i > 0; i = i-1) {
      for (long j = 0; j < 4; j = j+1) {
        result = result+1;
      }
    }

Choices:

  1. constant
  2. logarithmic
  3. log squared
  4. linear
  5. linearithmic
  6. quadratic
  7. cubic
  8. exponential

Previous pageContentsNext page