Chapter 09 · Software Testing and Quality Assurance
10 questions
-
Question 1
A developer writes <code>if (now > start)</code> instead of <code>if (now > start - 24h)</code>. What is that wrong line?
-
Question 2
The team demonstrates the CLI to the club leader to check that it really solves the club's problem. This activity is…
-
Question 3
A test runs <code>RegistrationService</code> together with <code>CsvRegistrationRepository</code> writing a real temporary file. Which level is it?
-
Question 4
Capacity is 30 and k is the number of seats already taken. Which set gives one representative for each valid partition, "seat free" and "full"?
-
Question 5
Cancellation is allowed up to and including 24 h before the start S. Which values does 2-value boundary value analysis test for this rule (1-minute resolution)?
-
Question 6
For <code>admit(taken, capacity, waitlistOn)</code> with two <code>if</code> decisions, the tests (10, 30, false) and (30, 30, true) are run. What is the branch coverage?
-
Question 7
Why does the test call <code>ASSERT_TRUE(reg.has_value())</code> before <code>EXPECT_EQ(reg->status, …)</code>?
-
Question 8
Why does <code>RegistrationService</code> receive a <code>Clock</code> instead of calling <code>system_clock::now()</code>?
-
Question 9
A bug is in state Fixed. The tester re-runs the test and it still fails. Which state comes next?
-
Question 10
The team found 12 defects before release and the client found 3 afterwards. What share of defects escaped?