


















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!



















































tune ) in which incredible amounts of time and effort go to produce little noticeable improvement, often with the result that the code becomes incomprehensible."
8
Amount of data
Time for algorithm to complete
Actual
Simplified
Assumptions in For Counting Statements
A. 2 B. 5 C. 10 D. 15 E. 20
Counting Statements in Nested Loops Attendance Question 4
int total = 0; // assume limit is an int >= 0 for(int i = 0; i < limit; i++) for(int j = 0; j < limit; j++) total += 5; System.out.println( total );
A. 5
B. limit * limit
C. limit * limit * 5
D. 0
E. limit 5