Chapter 09 · Software Testing and Quality Assurance
សំណួរ 10
-
សំណួរទី 1
A developer writes <code>if (now > start)</code> instead of <code>if (now > start - 24h)</code>. What is that wrong line?
-
សំណួរទី 2
The team demonstrates the CLI to the club leader to check that it really solves the club's problem. This activity is…
-
សំណួរទី 3
A test runs <code>RegistrationService</code> together with <code>CsvRegistrationRepository</code> writing a real temporary file. Which level is it?
-
សំណួរទី 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"?
-
សំណួរទី 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)?
-
សំណួរទី 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?
-
សំណួរទី 7
Why does the test call <code>ASSERT_TRUE(reg.has_value())</code> before <code>EXPECT_EQ(reg->status, …)</code>?
-
សំណួរទី 8
Why does <code>RegistrationService</code> receive a <code>Clock</code> instead of calling <code>system_clock::now()</code>?
-
សំណួរទី 9
A bug is in state Fixed. The tester re-runs the test and it still fails. Which state comes next?
-
សំណួរទី 10
The team found 12 defects before release and the client found 3 afterwards. What share of defects escaped?