CS FundamentalsVery hardProduct-company placement · ISTQB-style
Feature X takes the 'happy path' through 5 screens. An alternate flow can occur at screen 2 (2 variants) and an exception flow at screen 4 (3 variants), independent of each other. If each test covers one complete scenario, how many scenarios are needed to cover every combination of flows?
- A. 12
- B. 6
- C. 10
- D. 5
Correct answer: A. 12
Screen 2 has 3 possibilities (basic + 2 alternates) and screen 4 has 4 (basic + 3 exceptions), so all combinations = 3 x 4 = 12. Covering each flow at least once would need only 4 scenarios, which is the cheaper criterion.
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 mobile app shows the error rate of a new release, rolled out to 10% of users as a canary, at 1.2% against 0.4% for the old version on…
- Assertion (A): A test suite that mocks every collaborator of every class can pass while the integrated system fails. Reason (R): Mocks…
- A single-page app makes 30 sequential API calls to render a dashboard, each taking about 40 ms of network round trip. The team cannot…
- A Scrum team's velocity over 6 sprints was 20, 22, 35, 21, 23 and 19 points; sprint 3 included a one-off batch of over-estimated stories…
- An enterprise service-level agreement promises 99.95% monthly availability with service credits, the internal SLO is 99.99%, and the…
- A team makes 'Developers must not deploy on Fridays' a rule after two weekend outages. A senior engineer argues the rule treats the…