THINK FIRST·CODE LATER

← Software Engineering
Chapter 9 · Week 10

Verification and Validation II: Beyond Unit Tests

Answered 0/30 Correct 0
Sign in to save progress across devices
Q1

What is the main disadvantage of big-bang integration?

Q2

In top-down integration, what replaces lower-level components that are not ready yet?

Q3

The Android app expects the field authorDisplayName; Omar renames it to authorName in the backend. Which practice would catch this before release?

Q4

Which is a typical integration defect?

Q5

What does a stress test try to find out?

Q6

Ten response times (ms), sorted: 80, 90, 95, 100, 110, 120, 130, 150, 400, 2000. Using the nearest-rank method, what is the p90?

Q7

StudyBuddy receives 20 Buddy questions per second and each AI answer takes 5 s on average. By Little's law, about how many AI calls are in progress at once?

Q8

About how many users does Nielsen's classic guidance suggest for a small usability test round?

Q9

What does an A/B test mainly validate?

Q10

Why do CI pipelines run unit tests and static analysis before end-to-end tests?

Q11

A test fails about once in 20 runs on the same code. What is the right policy?

Q12

In mutation testing, what does it mean that a mutant survived?

Q13

A tool generated 50 mutants; 5 are equivalent; the tests killed 36. What is the mutation score?

Q14

Which is an equivalent mutant?

Q15

Tests achieve 100% branch coverage of isPassing(score) (return score >= 60;) with inputs 30 and 90. Which mutant survives?

Q16

Which is a valid property for a correct sort(list)?

Q17

What does shrinking do in property-based testing?

Q18

Which is a metamorphic relation for StudyBuddy's matching?

Q19

In design by contract, what is a precondition?

Q20

Where are formal methods such as model checking most justified?

Q21

What is a soak test designed to reveal?

Q22

Fagan-style inspections and code reviews find a large share of defects cheaply. Which kind of problem can a review find that tests usually cannot?

Q23

Why can't Buddy be tested with assertEquals(expectedAnswerText, buddy.answer(q))?

Q24

The team changes Buddy's prompt template. What should happen before release?

Q25

The team uses another AI model to grade Buddy's answers (LLM-as-judge). What must they also do?

Q26

What is red-teaming for Buddy?

Q27 Short answer

Explain mutation testing in 4–6 sentences: what mutants are, what killed/survived means, how the score is computed, and what to do with a surviving mutant. Give one StudyBuddy example of a mutant.

Q28 Short answer

Write three properties and two metamorphic relations for StudyBuddy's mergeSlots(List<TimeSlot>), which merges a student's overlapping free-time slots on one day.

Q29 Short answer

Design StudyBuddy's CI pipeline: list the stages in order, what each checks, which are blocking gates, and where Buddy's evaluation runs. Include the flaky-test policy.

Q30 Short answer

Buddy will get a new model version next month. Describe an evaluation plan that decides whether the new version may be released: the test set, metrics, thresholds, judging method and what happens after release.