1. Which phase of the software life-cycle is usually the most expensive? A. Anal
ID: 644929 • Letter: 1
Question
1. Which phase of the software life-cycle is usually the most expensive?
A. Analysis and specification of the task
B. Design
C. Implementation
D. Maintenance and evolution
2. Which of these is used to stop the program execution when a precondition is not met.
A. assert();
B. exit();
C. return();
D. void();
3. Which of these statements will always cause a program to halt? (x is an int variable).
A. assert(10 > 0);
B. assert(10 < 0);
C. assert(x < 0);
D. None of the above will always cause a program to halt.
4. Which of these is the correct big-O expression for 1+2+3+...+n?
A. O(log n)
B. O(n)
C. O(n log n)
D. O(n
Explanation / Answer
1. D. Maintenance and evolution
2. B. exit();
3. D. None of the above will always cause a program to halt.
4. B. O(n)
5. True
6. C. O(n)
7.C. In practice, a large proportion of errors arise from boundary values.
8.A. Pick values that are one step away from different behavior.
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.