The following is a _____ loop:for (i = 0; i < 1000; i++)   sum = sum + i;

A. linear
B. logarithmic
C. quadratic
D. dependent quadratic


Answer: A

Computer Science & Information Technology

You might also like to view...

Which of the following statements doubles the value stored in answer?

A) answer += 2; B) answer *= 2; C) answer = answer * 2; D) All three of the above E) Both B and C, but not A

Computer Science & Information Technology

People who use the computer directly or use the information it provides are called computer users, end users, or sometimes, just users.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

A Step value in a For...Next loop can be positive or negative.

Answer the following statement true (T) or false (F)

Computer Science & Information Technology

int *ptNum = &miles; is ____.

A. always valid B. never valid C. only valid if miles is declared as an integer variable before ptNum is declared D. only valid if miles is declared as an array of integers before ptNum is declared

Computer Science & Information Technology