Exam (elaborations)
May/June 2020 COS2611 Programming: Data Structures
- Course
- Institution
Question 1 Program Analysis [10] For each of the following questions choose the correct alternative. Questions 1.1, 1.2 and 1.3 refer to the following code fragment. 1 for(int j = 10; j <= n; j++ ) 2 for(int k = 1; k <= n; k*=2 ) 3 sum++; 4 for(int p = n; p > 1; p/=2 ) 5 for(int q =...
[Show more]