CS FundamentalsVery hardService-company placement · ISTQB-style
Following Beizer's guidance for testing two nested loops, how should you start?
- A. Test the outer loop first at every boundary, holding the inner loop at its maximum
- B. Test every combination of iteration counts of both loops together
- C. Run both loops only at their maximum counts, since that finds most defects
- D. Innermost loop first, outer at minimum; then move outward, inner loops typical
Correct answer: D. Innermost loop first, outer at minimum; then move outward, inner loops typical
Testing all combinations explodes, so begin at the innermost loop (min, min+1, typical, max−1, max, and so on) with outer loops at minimum, then work outwards with already-tested inner loops held at typical values.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A team builds a thin, working path through every layer of a new system (UI, API, queue, database) with minimal features, and keeps that…
- Using the convention that each if, else-if, for, while, case, && and || adds 1 to the count of decision points, what is the cyclomatic…
- For a 32 KLOC project, the Basic COCOMO organic-mode equation Effort = 2.4 x (KLOC)^1.05 person-months gives approximately how much effort?
- Using basic COCOMO in the organic mode (effort = 2.4 × (KLOC)^1.05 person-months), the effort for a 50 KLOC product is closest to:
- A program consists of a main routine and one procedure. Their flow graphs are drawn as two separate connected components with a total of E…
- Three sequential activities lie on the critical path of a project. Their (optimistic, most likely, pessimistic) durations in days are A…